Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
exceptionwindow.hpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #ifndef EXCEPTIONWINDOW_H
12 #define EXCEPTIONWINDOW_H
13 
14 #if _MSC_VER
15 #define TRACING 0
16 #else
17 #define TRACING 1
18 #endif
19 
20 #include <QDialog>
21 #include "core.hpp"
22 #if TRACING
23 //#include <execinfo.h>
24 #endif
25 #include "exception.hpp"
26 
27 namespace Ui
28 {
29  class ExceptionWindow;
30 }
31 
32 namespace Huggle
33 {
34  //! Recovery window
35  class ExceptionWindow : public QDialog
36  {
37  Q_OBJECT
38 
39  public:
40  explicit ExceptionWindow(Exception *e);
41  ~ExceptionWindow();
42 
43  private slots:
44  void on_pushButton_clicked();
45  void on_pushButton_3_clicked();
46 
47  private:
48  Ui::ExceptionWindow *ui;
49  };
50 }
51 
52 #endif // EXCEPTIONWINDOW_H
Every exception raised by huggle is defined by this class.
Definition: exception.hpp:20