[89] | 1 | // %pacpus:license{
|
---|
| 2 | // This file is part of the PACPUS framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %pacpus:license}
|
---|
| 5 | /// @file
|
---|
| 6 | /// @author Marek Kurdej <firstname.surname@utc.fr>
|
---|
| 7 | /// @date March, 2013
|
---|
| 8 | /// @version $Id$
|
---|
| 9 | /// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
|
---|
| 10 | /// @brief Generic ComponentBase class. This is an abstract class.
|
---|
| 11 | ///
|
---|
| 12 | /// Detailed description.
|
---|
| 13 |
|
---|
| 14 | #ifndef PACPUSAPPLICATION_H
|
---|
| 15 | #define PACPUSAPPLICATION_H
|
---|
| 16 |
|
---|
| 17 | #include <QApplication>
|
---|
| 18 |
|
---|
[141] | 19 | #include <Pacpus/kernel/pacpus.h>
|
---|
| 20 |
|
---|
[89] | 21 | namespace pacpus {
|
---|
| 22 |
|
---|
| 23 | class PACPUSLIB_API PacpusApplication
|
---|
| 24 | : public QApplication
|
---|
| 25 | {
|
---|
| 26 | public:
|
---|
| 27 | #ifndef qdoc
|
---|
| 28 | PacpusApplication(int &argc, char **argv, int = ApplicationFlags);
|
---|
| 29 | // PacpusApplication(int &argc, char **argv, bool GUIenabled, int = ApplicationFlags);
|
---|
| 30 | // PacpusApplication(int &argc, char **argv, Type, int = ApplicationFlags);
|
---|
| 31 | #if defined(Q_WS_X11)
|
---|
| 32 | PacpusApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE cmap = 0, int = ApplicationFlags);
|
---|
| 33 | PacpusApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0, int = ApplicationFlags);
|
---|
| 34 | #endif
|
---|
| 35 | #if defined(Q_OS_SYMBIAN)
|
---|
| 36 | PacpusApplication(QApplication::QS60MainApplicationFactory factory, int &argc, char **argv, int = ApplicationFlags);
|
---|
| 37 | #endif
|
---|
| 38 | #endif
|
---|
| 39 |
|
---|
| 40 | virtual ~PacpusApplication();
|
---|
| 41 |
|
---|
| 42 | virtual bool notify(QObject * receiver, QEvent * ev);
|
---|
[165] | 43 |
|
---|
| 44 | private:
|
---|
| 45 | void installSignalHandler();
|
---|
[89] | 46 | };
|
---|
| 47 |
|
---|
| 48 | } //namespace pacpus
|
---|
| 49 |
|
---|
| 50 | #endif // PACPUSAPPLICATION_H
|
---|