| 1 | /* |
| 2 | * midisnoop - MIDI monitor and prober |
| 3 | * Copyright (C) 2012 Devin Anderson |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify it |
| 6 | * under the terms of the GNU General Public License as published by the Free |
| 7 | * Software Foundation; either version 2 of the License, or (at your option) |
| 8 | * any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, but WITHOUT |
| 11 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 12 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 13 | * more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along with |
| 16 | * this program; if not, write to the Free Software Foundation, Inc., 675 Mass |
| 17 | * Ave, Cambridge, MA 02139, USA. |
| 18 | */ |
| 19 | |
| 20 | #include <stdexcept> |
| 21 | |
| 22 | #include "application.h"cxx . . $ `<file>/src/application.h`/ |
| 23 | #include "error.h"cxx . . $ `<file>/src/error.h`/ |
| 24 | |
| 25 | Applicationcxx . . $ Application#::Applicationcxx . . $ Application#Application(90b35a5c77e1789d).(int &argc, char **argv): |
| 26 | QApplicationcxx . . $ QApplication#QApplication(6e9b1c7df49e191d).(argc, argv) |
| 27 | { |
| 28 | // Empty |
| 29 | } |
| 30 | |
| 31 | Applicationcxx . . $ Application#::~cxx . . $ Application#`~Application`(ced63f7c635d850d).Applicationcxx . . $ Application#() |
| 32 | { |
| 33 | // Empty |
| 34 | } |
| 35 | |
| 36 | bool |
| 37 | Applicationcxx . . $ Application#::notifycxx . . $ Application#notify(978aa4af1d030efa).(QObjectcxx . . $ QObject# *receiver, QEventcxx . . $ QEvent# *event) |
| 38 | { |
| 39 | try { |
| 40 | return QApplicationcxx . . $ QApplication#::notifycxx . . $ QApplication#notify(978aa4af1d030efa).(receiver, event); |
| 41 | } catch (Errorcxx . . $ Error# &e) { |
| 42 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! eventErrorcxx . . $ Application#eventError(3520e46b33348bf6).(e.getMessagecxx . . $ Error#getMessage(4365c3963150523e).()); |
| 43 | } catch (stdcxx . . $ std/::exception &e) { |
| 44 | emitcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:97:10`! eventErrorcxx . . $ Application#eventError(3520e46b33348bf6).(ecxx . . $ QString#QString(85c52e162fed56f9)..what()); |
| 45 | } |
| 46 | return false; |
| 47 | } |