author | zecke <zecke> | 2003-08-27 08:01:57 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-27 08:01:57 (UTC) |
commit | 151c319a9a67ae420136fb23cc987d23059737f6 (patch) (unidiff) | |
tree | 79d8bff48e2e05b0934a90463364d84632bf68b6 /library/applicationinterface.h | |
parent | dbd38957ae8a24bc29f45a6b80cc17f45d8776df (diff) | |
download | opie-151c319a9a67ae420136fb23cc987d23059737f6.zip opie-151c319a9a67ae420136fb23cc987d23059737f6.tar.gz opie-151c319a9a67ae420136fb23cc987d23059737f6.tar.bz2 |
Did I say I love C++ templates.
MetaProgramming is fun
Here is my template based on Lokis and Simons work to
quicklaunch applications
Diffstat (limited to 'library/applicationinterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | library/applicationinterface.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/library/applicationinterface.h b/library/applicationinterface.h new file mode 100644 index 0000000..b37a2c5 --- a/dev/null +++ b/library/applicationinterface.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* | ||
2 | * GPLv2 (C) 2002-2003 Trolltech | ||
3 | * (C) 2003 zecke@handhelds.org | ||
4 | */ | ||
5 | |||
6 | |||
7 | #ifndef APPLICATIONINTERFACE_H | ||
8 | #define APPLICATIONINTERFACE_H | ||
9 | |||
10 | #include <qstringlist.h> | ||
11 | #include <qtopia/qcom.h> | ||
12 | |||
13 | #ifndef QT_NO_COMPONENT | ||
14 | // {07E15B48-B947-4334-B866-D2AD58157D8C} | ||
15 | #ifndef IID_QtopiaApplication | ||
16 | #define IID_QtopiaApplication QUuid( 0x07e15b48, 0xb947, 0x4334, 0xb8, 0x66, 0xd2, 0xad, 0x58, 0x15, 0x7d, 0x8c) | ||
17 | #endif | ||
18 | #endif | ||
19 | |||
20 | struct ApplicationInterface : public QUnknownInterface | ||
21 | { | ||
22 | public: | ||
23 | virtual QWidget *createMainWindow( const QString &appName, QWidget *parent=0, | ||
24 | const char *name=0, Qt::WFlags f=0 ) = 0; | ||
25 | virtual QStringList applications() const = 0; | ||
26 | }; | ||
27 | |||
28 | /* | ||
29 | * Use an extended interface for QObejct, Opie::Part in the future | ||
30 | */ | ||
31 | |||
32 | #endif | ||