Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OApplicationFactory< Product > Struct Template Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/oapplicationfactory.h>

Inheritance diagram for OApplicationFactory< Product >:

Inheritance graph
[legend]
Collaboration diagram for OApplicationFactory< Product >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QRESULT queryInterface (const QUuid &uuid, QUnknownInterface **iface)
virtual QWidget * createMainWindow (const QString &appName, QWidget *parent, const char *name, Qt::WFlags f)
 create the mainwindow for the giving application name Create a main window for the giving application name
virtual QStringList applications () const

Detailed Description

template<class Product>
struct OApplicationFactory< Product >

To allow your application to be quick launched some one needs to create the QWidget. This is this factory. Make surce your widget has static QString Widget::appName() as one of its functions.

This template takes one QWidget and initialized it in the form of MyWidget::MyWidget( QWidget* parent, const char* name, WFlags f );

To use it on your app do that: typedef OApplicationFactory<MyWidget> MyFactory; OPIE_EXPORT_APP( MyFactory )

Definition at line 85 of file oapplicationfactory.h.


Member Function Documentation

template<class Product>
virtual QStringList OApplicationFactory< Product >::applications  )  const [inline, virtual]
 

The list of application windows supported

Implements ApplicationInterface.

Definition at line 106 of file oapplicationfactory.h.

References list.

Referenced by OApplicationFactory< Opie::Typelist< Product, ProductListTail > >::createMainWindow().

template<class Product>
virtual QWidget* OApplicationFactory< Product >::createMainWindow const QString appName,
QWidget *  parent,
const char *  name,
Qt::WFlags  f
[inline, virtual]
 

create the mainwindow for the giving application name Create a main window for the giving application name

Parameters:
appName The application widget to be created
parent The parent of the newly created widget
name The name of the QObject
f Possible Window Flags
Returns:
the widget or 0l

Implements ApplicationInterface.

Definition at line 98 of file oapplicationfactory.h.

References l.

template<class Product>
QRESULT OApplicationFactory< Product >::queryInterface const QUuid uuid,
QUnknownInterface **  iface
[inline, virtual]
 

Implements QUnknownInterface.

Definition at line 86 of file oapplicationfactory.h.

References IID_QtopiaApplication, IID_QUnknown, QS_FALSE, and QS_OK.


The documentation for this struct was generated from the following file:
Generated on Sat Nov 5 17:41:43 2005 for OPIE by  doxygen 1.4.2