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

Opie::Core::OApplicationFactory< Product > Struct Template Reference

#include </home/clem/local/src/opie/libopie2/opiecore/oapplicationfactory.h>

Inheritance diagram for Opie::Core::OApplicationFactory< Product >:

Inheritance graph
[legend]
Collaboration diagram for Opie::Core::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 Opie::Core::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 116 of file oapplicationfactory.h.


Member Function Documentation

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

The list of application windows supported

Implements ApplicationInterface.

Definition at line 142 of file oapplicationfactory.h.

References list.

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

template<class Product>
virtual QWidget* Opie::Core::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 129 of file oapplicationfactory.h.

References l, odebug, and oendl.

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

Implements QUnknownInterface.

Definition at line 117 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 18:00:36 2005 for OPIE by  doxygen 1.4.2