From 2c26bb12add88b531ef49f725d0c48f421cb4d83 Mon Sep 17 00:00:00 2001 From: kergoth Date: Tue, 13 May 2003 20:03:14 +0000 Subject: Example of the use of new plugin interface, disabled by default. --- (limited to 'core/pim/today/plugin.cpp') 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 @@ +#include "today.h" +#include +#include +#include + +#define Q_BASEINSTANCE( i ) \ + QUnknownInterface* iface = 0; \ + i->queryInterface( IID_QUnknown, &iface ); \ + return iface + +Q_EXPORT_INTERFACE() +{ + Today *t = new Today; + t->setCaption( Today::tr("Today") ); + OAppPlugin *comp = new OAppPlugin(t); + Q_BASEINSTANCE( comp ); +} -- cgit v0.9.0.2