#include <qstring.h>#include <qmetaobject.h>#include <qtopia/qcom.h>#include <qtopia/applicationinterface.h>#include <opie2/odebug.h>#include <qpe/qpeapplication.h>#include <opie2/oapplication.h>Include dependency graph for oapplicationfactory.h:

Go to the source code of this file.
Namespaces | |
| namespace | Opie |
| namespace | Opie::Core |
Defines | |
| #define | OPIE_EXPORT_APP(Factory) |
| #define | OPIE_EXPORT_APP_V2(Factory, name) |
| #define | OPIE_EXPORT_APPNAME static QString appName() { return QString::fromLatin1( QUICKAPP_NAME ); } |
|
|
Value: int main( int argc, char **argv ) { \ QPEApplication a(argc, argv ); \ QWidget *mw = 0;\ \ /* method from TT */ \ QString executableName = QString::fromLatin1( argv[0] ); \ executableName = executableName.right(executableName.length() \ - executableName.findRev('/') - 1); \ \ Factory f; \ QStringList list = f.applications(); \ if (list.contains(executableName) ) \ mw = f.createMainWindow(executableName, 0, 0, 0 ); \ else \ mw = f.createMainWindow( list[0], 0, 0, 0 ); \ \ if( mw ) { \ if ( mw->metaObject()->slotNames().contains("setDocument(const QString&)" ) ) \ a.showMainDocumentWidget( mw ); \ else \ a.showMainWidget( mw ); \ \ int rv = a.exec(); \ delete mw; \ return rv; \ }else \ return -1; \ } Definition at line 273 of file oapplicationfactory.h. |
|
|
Value: int main( int argc, char **argv ) { \ Opie::Core::OApplication a(argc, argv, name ); \ QWidget *mw = 0;\ \ /* method from TT */ \ QString executableName = QString::fromLatin1( argv[0] ); \ executableName = executableName.right(executableName.length() \ - executableName.findRev('/') - 1); \ \ Factory f; \ QStringList list = f.applications(); \ if (list.contains(executableName) ) \ mw = f.createMainWindow(executableName, 0, 0, 0 ); \ else \ mw = f.createMainWindow( list[0], 0, 0, 0 ); \ \ if( mw ) { \ if ( mw->metaObject()->slotNames().contains("setDocument(const QString&)" ) ) \ a.showMainDocumentWidget( mw ); \ else \ a.showMainWidget( mw ); \ \ int rv = a.exec(); \ delete mw; \ return rv; \ }else \ return -1; \ } Definition at line 310 of file oapplicationfactory.h. |
|
|
Definition at line 342 of file oapplicationfactory.h. |
1.4.2