author | zecke <zecke> | 2004-02-06 15:48:42 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-02-06 15:48:42 (UTC) |
commit | d1c1ce295b6522e52244c970010a9e42c0b614ae (patch) (unidiff) | |
tree | 54e3fefdb0ea998e5c9117f245d6a615ce02200c /library/applicationinterface.h | |
parent | b033733924e5d3454bb0a810c6a70d4ff0531d2b (diff) | |
download | opie-d1c1ce295b6522e52244c970010a9e42c0b614ae.zip opie-d1c1ce295b6522e52244c970010a9e42c0b614ae.tar.gz opie-d1c1ce295b6522e52244c970010a9e42c0b614ae.tar.bz2 |
add api docu
Diffstat (limited to 'library/applicationinterface.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | library/applicationinterface.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/library/applicationinterface.h b/library/applicationinterface.h index b37a2c5..b7648f6 100644 --- a/library/applicationinterface.h +++ b/library/applicationinterface.h | |||
@@ -4,29 +4,62 @@ | |||
4 | */ | 4 | */ |
5 | 5 | ||
6 | 6 | ||
7 | #ifndef APPLICATIONINTERFACE_H | 7 | #ifndef APPLICATIONINTERFACE_H |
8 | #define APPLICATIONINTERFACE_H | 8 | #define APPLICATIONINTERFACE_H |
9 | 9 | ||
10 | #include <qstringlist.h> | 10 | #include <qstringlist.h> |
11 | #include <qtopia/qcom.h> | 11 | #include <qtopia/qcom.h> |
12 | 12 | ||
13 | #ifndef QT_NO_COMPONENT | 13 | #ifndef QT_NO_COMPONENT |
14 | // {07E15B48-B947-4334-B866-D2AD58157D8C} | 14 | // {07E15B48-B947-4334-B866-D2AD58157D8C} |
15 | #ifndef IID_QtopiaApplication | 15 | #ifndef IID_QtopiaApplication |
16 | #define IID_QtopiaApplication QUuid( 0x07e15b48, 0xb947, 0x4334, 0xb8, 0x66, 0xd2, 0xad, 0x58, 0x15, 0x7d, 0x8c) | 16 | #define IID_QtopiaApplication QUuid( 0x07e15b48, 0xb947, 0x4334, 0xb8, 0x66, 0xd2, 0xad, 0x58, 0x15, 0x7d, 0x8c) |
17 | #endif | 17 | #endif |
18 | #endif | 18 | #endif |
19 | 19 | ||
20 | |||
21 | /** | ||
22 | * \brief Application interface currently used by the quicklaunch framework | ||
23 | * | ||
24 | * This is the interface to be exposed by applications available as DSO | ||
25 | * Normally one would use the OApplicationFactory which does the magic of | ||
26 | * exposing the interface. | ||
27 | * | ||
28 | * | ||
29 | * Resulting dynamic shared objects (dso) need to go into the | ||
30 | * OPIEDIR/plugins/application. | ||
31 | * | ||
32 | * | ||
33 | * You can use this interface to load applications into your application. | ||
34 | * @todo Implement Services + Trader | ||
35 | * @since Opie 1.0.2 | ||
36 | */ | ||
20 | struct ApplicationInterface : public QUnknownInterface | 37 | struct ApplicationInterface : public QUnknownInterface |
21 | { | 38 | { |
22 | public: | 39 | public: |
40 | |||
41 | /** | ||
42 | * \brief create the mainwindow for the giving application name | ||
43 | * Create a main window for the giving application name | ||
44 | * | ||
45 | * @param appName The application widget to be created | ||
46 | * @param parent The parent of the newly created widget | ||
47 | * @param name The name of the QObject | ||
48 | * @param f Possible Window Flags | ||
49 | * | ||
50 | * @return the widget or 0l | ||
51 | */ | ||
23 | virtual QWidget *createMainWindow( const QString &appName, QWidget *parent=0, | 52 | virtual QWidget *createMainWindow( const QString &appName, QWidget *parent=0, |
24 | const char *name=0, Qt::WFlags f=0 ) = 0; | 53 | const char *name=0, Qt::WFlags f=0 ) = 0; |
54 | |||
55 | /** | ||
56 | * The list of application windows supported | ||
57 | */ | ||
25 | virtual QStringList applications() const = 0; | 58 | virtual QStringList applications() const = 0; |
26 | }; | 59 | }; |
27 | 60 | ||
28 | /* | 61 | /* |
29 | * Use an extended interface for QObejct, Opie::Part in the future | 62 | * Use an extended interface for QObejct, Opie::Part in the future |
30 | */ | 63 | */ |
31 | 64 | ||
32 | #endif | 65 | #endif |