author | kergoth <kergoth> | 2003-05-13 20:03:14 (UTC) |
---|---|---|
committer | kergoth <kergoth> | 2003-05-13 20:03:14 (UTC) |
commit | 2c26bb12add88b531ef49f725d0c48f421cb4d83 (patch) (unidiff) | |
tree | 5d29b6f022eba93fea101745f3711a15ed464f14 /core/pim/today/plugin.cpp | |
parent | 4dd58bba07b8bf3a52c3a0464675c39cc5153c85 (diff) | |
download | opie-2c26bb12add88b531ef49f725d0c48f421cb4d83.zip opie-2c26bb12add88b531ef49f725d0c48f421cb4d83.tar.gz opie-2c26bb12add88b531ef49f725d0c48f421cb4d83.tar.bz2 |
Example of the use of new plugin interface, disabled by default.
-rw-r--r-- | core/pim/today/plugin.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/core/pim/today/plugin.cpp b/core/pim/today/plugin.cpp new file mode 100644 index 0000000..349413b --- a/dev/null +++ b/core/pim/today/plugin.cpp | |||
@@ -0,0 +1,17 @@ | |||
1 | #include "today.h" | ||
2 | #include <qwidget.h> | ||
3 | #include <qcombobox.h> | ||
4 | #include <oappplugin.h> | ||
5 | |||
6 | #define Q_BASEINSTANCE( i ) \ | ||
7 | QUnknownInterface* iface = 0; \ | ||
8 | i->queryInterface( IID_QUnknown, &iface ); \ | ||
9 | return iface | ||
10 | |||
11 | Q_EXPORT_INTERFACE() | ||
12 | { | ||
13 | Today *t = new Today; | ||
14 | t->setCaption( Today::tr("Today") ); | ||
15 | OAppPlugin *comp = new OAppPlugin(t); | ||
16 | Q_BASEINSTANCE( comp ); | ||
17 | } | ||