From 151c319a9a67ae420136fb23cc987d23059737f6 Mon Sep 17 00:00:00 2001 From: zecke Date: Wed, 27 Aug 2003 08:01:57 +0000 Subject: Did I say I love C++ templates. MetaProgramming is fun Here is my template based on Lokis and Simons work to quicklaunch applications --- (limited to 'library') 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 @@ +/* + * GPLv2 (C) 2002-2003 Trolltech + * (C) 2003 zecke@handhelds.org + */ + + +#ifndef APPLICATIONINTERFACE_H +#define APPLICATIONINTERFACE_H + +#include +#include + +#ifndef QT_NO_COMPONENT +// {07E15B48-B947-4334-B866-D2AD58157D8C} +#ifndef IID_QtopiaApplication +#define IID_QtopiaApplication QUuid( 0x07e15b48, 0xb947, 0x4334, 0xb8, 0x66, 0xd2, 0xad, 0x58, 0x15, 0x7d, 0x8c) +#endif +#endif + +struct ApplicationInterface : public QUnknownInterface +{ +public: + virtual QWidget *createMainWindow( const QString &appName, QWidget *parent=0, + const char *name=0, Qt::WFlags f=0 ) = 0; + virtual QStringList applications() const = 0; +}; + +/* + * Use an extended interface for QObejct, Opie::Part in the future + */ + +#endif -- cgit v0.9.0.2