summaryrefslogtreecommitdiff
path: root/libopie2/opiecore/oapplication.h
Unidiff
Diffstat (limited to 'libopie2/opiecore/oapplication.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/oapplication.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/libopie2/opiecore/oapplication.h b/libopie2/opiecore/oapplication.h
index a3f2201..72a659e 100644
--- a/libopie2/opiecore/oapplication.h
+++ b/libopie2/opiecore/oapplication.h
@@ -25,32 +25,32 @@
25    --        :-=` this library; see the file COPYING.LIB. 25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation, 26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330, 27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
29*/ 29*/
30 30
31#ifndef OAPPLICATION_H 31#ifndef OAPPLICATION_H
32#define OAPPLICATION_H 32#define OAPPLICATION_H
33 33
34#define oApp OApplication::oApplication() 34#define oApp OApplication::oApplication()
35 35
36 36
37#include "opieapplication.h" 37#include <qpe/qpeapplication.h>
38 38
39 39
40class OApplicationPrivate; 40class OApplicationPrivate;
41class OConfig; 41class OConfig;
42 42
43 43
44class OApplication : public OpieApplication 44class OApplication : public QPEApplication
45{ 45{
46 Q_OBJECT 46 Q_OBJECT
47 47
48 public: 48 public:
49 /** 49 /**
50 * Constructor. Parses command-line arguments and sets the window caption. 50 * Constructor. Parses command-line arguments and sets the window caption.
51 * 51 *
52 * @param rAppName application name. Will be used for finding the 52 * @param rAppName application name. Will be used for finding the
53 * associated message, icon and configuration files 53 * associated message, icon and configuration files
54 * 54 *
55 */ 55 */
56 OApplication( int& argc, char** argv, const QCString& rAppName ); 56 OApplication( int& argc, char** argv, const QCString& rAppName );
@@ -83,28 +83,23 @@ class OApplication : public OpieApplication
83 /** 83 /**
84 * Shows the main @a widget and sets the name of the application as window caption. 84 * Shows the main @a widget and sets the name of the application as window caption.
85 */ 85 */
86 virtual void showMainWidget( QWidget* widget, bool nomax = false ); 86 virtual void showMainWidget( QWidget* widget, bool nomax = false );
87 /** 87 /**
88 * Set the application title. The application title will be concatenated 88 * Set the application title. The application title will be concatenated
89 * to the application name given in the constructor. 89 * to the application name given in the constructor.
90 * 90 *
91 * @param title the title. If not given, resets caption to appname 91 * @param title the title. If not given, resets caption to appname
92 */ 92 */
93 virtual void setTitle( const QString& title = QString::null ) const; 93 virtual void setTitle( const QString& title = QString::null ) const;
94 94
95 /**
96 * see qpeDir()
97 */
98 static QString opieDir() {return qpeDir();};
99
100 protected: 95 protected:
101 void init(); 96 void init();
102 97
103 private: 98 private:
104 const QCString _appname; 99 const QCString _appname;
105 static OApplication* _instance; 100 static OApplication* _instance;
106 OConfig* _config; 101 OConfig* _config;
107 OApplicationPrivate* d; 102 OApplicationPrivate* d;
108}; 103};
109 104
110#endif // OAPPLICATION_H 105#endif // OAPPLICATION_H