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

Opie::Core::OApplication Class Reference

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

Inheritance diagram for Opie::Core::OApplication:

Inheritance graph
[legend]
Collaboration diagram for Opie::Core::OApplication:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 OApplication (int &argc, char **argv, Type type=GuiClient)
 OApplication (int &argc, char **argv, const QCString &rAppName)
virtual ~OApplication ()
const QCStringappName () const
OConfigconfig ()
virtual void showMainWidget (QWidget *widget, bool nomax=false)
virtual void setTitle (const QString &title=QString::null) const

Static Public Member Functions

static OApplicationoApplication ()

Protected Member Functions

void init ()

Private Attributes

const QCString _appname
OConfig_config
Internal::OApplicationPrivated

Static Private Attributes

static OApplication_instance = 0

Constructor & Destructor Documentation

Opie::Core::OApplication::OApplication int &  argc,
char **  argv,
Type  type = GuiClient
 

Constructor. Compatible to QPEApplication

Definition at line 60 of file oapplication.cpp.

References init().

Opie::Core::OApplication::OApplication int &  argc,
char **  argv,
const QCString rAppName
 

Constructor. Parses command-line arguments and sets the window caption.

Parameters:
rAppName application name. Will be used for finding the associated message, icon and configuration files

Definition at line 68 of file oapplication.cpp.

References init().

Opie::Core::OApplication::~OApplication  )  [virtual]
 

Destructor. Destroys the application object and its children.

Definition at line 77 of file oapplication.cpp.

References _config, and d.


Member Function Documentation

const QCString& Opie::Core::OApplication::appName  )  const [inline]
 

Returns the application name as given during creation.

Returns:
a reference to the application name

Definition at line 85 of file oapplication.h.

References _appname.

OConfig * Opie::Core::OApplication::config  ) 
 

Returns:
the application session config object.
See also:
OConfig

Definition at line 88 of file oapplication.cpp.

References _appname, and _config.

Referenced by main().

void Opie::Core::OApplication::init  )  [protected]
 

Definition at line 98 of file oapplication.cpp.

References d, oendl, and ofatal.

Referenced by OApplication().

static OApplication* Opie::Core::OApplication::oApplication  )  [inline, static]
 

Returns:
the process-wide application object
This is similar to the global QApplication pointer qApp. It allows access to the single global OApplication object, since more than one cannot be created in the same application. It saves you the trouble of having to pass the pointer explicitly to every function that may require it.

Definition at line 79 of file oapplication.h.

References _instance.

void Opie::Core::OApplication::setTitle const QString title = QString::null  )  const [virtual]
 

Set the application title. The application title will be concatenated to the application name given in the constructor.

Parameters:
title the title. If not given, resets caption to appname

Definition at line 130 of file oapplication.cpp.

References _appname.

void Opie::Core::OApplication::showMainWidget QWidget *  widget,
bool  nomax = false
[virtual]
 

Shows the main widget and sets the name of the application as window caption.

Reimplemented from QPEApplication.

Definition at line 123 of file oapplication.cpp.

References _appname, and QPEApplication::showMainWidget().

Referenced by DemoApp::DemoApp(), and main().


Member Data Documentation

const QCString Opie::Core::OApplication::_appname [private]
 

Definition at line 108 of file oapplication.h.

Referenced by appName(), config(), setTitle(), and showMainWidget().

OConfig* Opie::Core::OApplication::_config [private]
 

Definition at line 110 of file oapplication.h.

Referenced by config(), and ~OApplication().

OApplication * OApplication::_instance = 0 [static, private]
 

Definition at line 40 of file oapplication.cpp.

Referenced by oApplication().

Internal::OApplicationPrivate* Opie::Core::OApplication::d [private]
 

Reimplemented from QPEApplication.

Definition at line 111 of file oapplication.h.

Referenced by init(), and ~OApplication().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:35 2005 for OPIE by  doxygen 1.4.2