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

QPEApplication Class Reference

The QPEApplication class implements various system services that are available to all Qtopia applications. More...

#include </home/clem/local/src/opie/library/qpeapplication.h>

Inheritance diagram for QPEApplication:

Inheritance graph
[legend]
Collaboration diagram for QPEApplication:

Collaboration graph
[legend]
List of all members.

Public Types

enum  StylusMode { LeftOnly, RightOnHold }
enum  InputMethodHint { Normal, AlwaysOff, AlwaysOn }
enum  screenSaverHint { Disable = 0, DisableLightOff = 1, DisableSuspend = 2, Enable = 100 }
enum  StylusMode { LeftOnly, RightOnHold }
enum  InputMethodHint { Normal, AlwaysOff, AlwaysOn }
enum  screenSaverHint { Disable = 0, DisableLightOff = 1, DisableSuspend = 2, Enable = 100 }

Signals

void clientMoused ()
void timeChanged ()
void clockChanged (bool pm)
void micChanged (bool muted)
void volumeChanged (bool muted)
void appMessage (const QCString &msg, const QByteArray &data)
void weekChanged (bool startOnMonday)
void dateFormatChanged (DateFormat)
void flush ()
void reload ()
void clientMoused ()
void timeChanged ()
void clockChanged (bool pm)
void micChanged (bool muted)
void volumeChanged (bool muted)
void appMessage (const QCString &msg, const QByteArray &data)
void weekChanged (bool startOnMonday)
void dateFormatChanged (DateFormat)
void flush ()
void reload ()

Public Member Functions

 QPEApplication (int &argc, char **argv, Type=GuiClient)
 ~QPEApplication ()
void applyStyle ()
void reset ()
void showMainWidget (QWidget *, bool nomax=FALSE)
void showMainDocumentWidget (QWidget *, bool nomax=FALSE)
bool keepRunning () const
bool keyboardGrabbed () const
int exec ()
 QPEApplication (int &argc, char **argv, Type=GuiClient)
 ~QPEApplication ()
void applyStyle ()
void showMainWidget (QWidget *, bool nomax=FALSE)
void showMainDocumentWidget (QWidget *, bool nomax=FALSE)
bool keepRunning () const
bool keyboardGrabbed () const
int exec ()
int x11ClientMessage (QWidget *, XEvent *, bool)

Static Public Member Functions

static QString qpeDir ()
static QString documentDir ()
static int defaultRotation ()
static void setDefaultRotation (int r)
static void setCurrentRotation (int r)
static void setCurrentMode (int x, int y, int depth)
static void grabKeyboard ()
static void ungrabKeyboard ()
static void setStylusOperation (QWidget *, StylusMode)
static StylusMode stylusOperation (QWidget *)
static void setInputMethodHint (QWidget *, InputMethodHint)
static InputMethodHint inputMethodHint (QWidget *)
static void showDialog (QDialog *, bool nomax=FALSE) QPE_WEAK_SYMBOL
static int execDialog (QDialog *, bool nomax=FALSE) QPE_WEAK_SYMBOL
static void showWidget (QWidget *, bool nomax=FALSE) QPE_WEAK_SYMBOL
static void setKeepRunning ()
static QString qpeDir ()
static QString documentDir ()
static int defaultRotation ()
static void setDefaultRotation (int r)
static void grabKeyboard ()
static void ungrabKeyboard ()
static void setStylusOperation (QWidget *, StylusMode)
static StylusMode stylusOperation (QWidget *)
static void setInputMethodHint (QWidget *, InputMethodHint)
static InputMethodHint inputMethodHint (QWidget *)
static void showDialog (QDialog *, bool nomax=FALSE)
static int execDialog (QDialog *, bool nomax=FALSE)
static void showWidget (QWidget *, bool nomax=FALSE)
static void setKeepRunning ()

Protected Member Functions

bool qwsEventFilter (QWSEvent *)
void internalSetStyle (const QString &style)
void prepareForTermination (bool willrestart)
virtual void restart ()
virtual void shutdown ()
bool eventFilter (QObject *, QEvent *)
void timerEvent (QTimerEvent *)
bool raiseAppropriateWindow ()
virtual void tryQuit ()
virtual void restart ()
virtual void shutdown ()
void prepareForTermination (bool willrestart)
bool eventFilter (QObject *, QEvent *)
void timerEvent (QTimerEvent *)
void raiseAppropriateWindow ()
virtual void tryQuit ()

Private Slots

void systemMessage (const QCString &msg, const QByteArray &data)
void pidMessage (const QCString &msg, const QByteArray &data)
void removeSenderFromStylusDict ()
void hideOrQuit ()
void hideOrQuit ()
void systemMessage (const QCString &, const QByteArray &)
void pidMessage (const QCString &, const QByteArray &)
void removeSenderFromStylusDict ()

Private Member Functions

void mapToDefaultAction (QWSKeyEvent *ke, int defKey)
void processQCopFile ()
void initTranslations ()
void internalSetStyle (const QString &)

Private Attributes

QPEApplicationData * d
bool reserved_sh
Privated
QCopChannelm_sys
QCopChannelm_pid

Classes

class  Private

Detailed Description

The QPEApplication class implements various system services that are available to all Qtopia applications.

Simply by using QPEApplication instead of QApplication, a standard Qt application becomes a Qtopia application. It automatically follows style changes, quits and raises, and in the case of document-oriented applications, changes the currently displayed document in response to the environment.

To create a document-oriented application use showMainDocumentWidget(); to create a non-document-oriented application use showMainWidget(). The keepRunning() function indicates whether the application will continue running after it's processed the last QCop message. This can be changed using setKeepRunning().

A variety of signals are emitted when certain events occur, for example, timeChanged(), clockChanged(), weekChanged(), dateFormatChanged() and volumeChanged(). If the application receives a QCop message on the application's QPE/Application/{appname} channel, the appMessage() signal is emitted. There are also flush() and reload() signals, which are emitted when synching begins and ends respectively - upon these signals, the application should save and reload any data files that are involved in synching. Most of these signals will initially be received and unfiltered through the appMessage() signal.

This class also provides a set of useful static functions. The qpeDir() and documentDir() functions return the respective paths. The grabKeyboard() and ungrabKeyboard() functions are used to control whether the application takes control of the device's physical buttons (e.g. application launch keys). The stylus' mode of operation is set with setStylusOperation() and retrieved with stylusOperation(). There are also setInputMethodHint() and inputMethodHint() functions.

Definition at line 80 of file qpeapplication.h.


Member Enumeration Documentation

enum QPEApplication::InputMethodHint
 

Enumeration values:
Normal 
AlwaysOff 
AlwaysOn 

Definition at line 38 of file qpeapplication.h.

enum QPEApplication::InputMethodHint
 

Normal the application sometimes needs text input (the default). AlwaysOff the application never needs text input. AlwaysOn the application always needs text input.

Enumeration values:
Normal 
AlwaysOff 
AlwaysOn 

Definition at line 106 of file qpeapplication.h.

enum QPEApplication::screenSaverHint
 

Enumeration values:
Disable 
DisableLightOff 
DisableSuspend 
Enable 

Definition at line 60 of file qpeapplication.h.

enum QPEApplication::screenSaverHint
 

Enumeration values:
Disable 
DisableLightOff 
DisableSuspend 
Enable 

Definition at line 112 of file qpeapplication.h.

enum QPEApplication::StylusMode
 

Enumeration values:
LeftOnly 
RightOnHold 

Definition at line 31 of file qpeapplication.h.

enum QPEApplication::StylusMode
 

LeftOnly the stylus only generates LeftButton events (the default). RightOnHold the stylus generates RightButton events if the user uses the press-and-hold gesture.

See also:
setStylusOperation() stylusOperation()
Enumeration values:
LeftOnly 
RightOnHold 

Definition at line 98 of file qpeapplication.h.


Constructor & Destructor Documentation

QPEApplication::QPEApplication int &  arg,
char **  argv,
Type  t = GuiClient
 

Constructs a QPEApplication just as you would construct a QApplication, passing argc, argv, and t.

For applications, t should be the default, GuiClient. Only the Qtopia server passes GuiServer.

Definition at line 816 of file qpeapplication.cpp.

References applyStyle(), QDataStream::atEnd(), QFile::close(), d, f, FALSE, QFile::handle(), hideOrQuit(), QPEMenuToolFocusManager::initialize(), IO_ReadOnly, QIODevice::isOpen(), FontDatabase::loadRenderers(), QFile::open(), pidMessage(), qstrcmp(), qtopia_loadTranslations(), qtopiaMsgHandler(), QFile::remove(), QCString::replace(), AppLnk::setBigIconSize(), AppLnk::setSmallIconSize(), systemMessage(), TRUE, and type.

QPEApplication::~QPEApplication  ) 
 

Destroys the QPEApplication.

Definition at line 1204 of file qpeapplication.cpp.

References d, and ungrabKeyboard().

QPEApplication::QPEApplication int &  argc,
char **  argv,
Type  = GuiClient
 

QPEApplication::~QPEApplication  ) 
 


Member Function Documentation

void QPEApplication::applyStyle  ) 
 

void QPEApplication::applyStyle  ) 
 

For internal use only.

Definition at line 1356 of file qpeapplication.cpp.

References d, dec(), Disabled, internalSetStyle(), Config::readBoolEntry(), Config::readEntry(), Config::readNumEntry(), Config::setGroup(), and TRUE.

Referenced by QPEApplication(), reset(), and systemMessage().

void QPEApplication::appMessage const QCString msg,
const QByteArray data
[signal]
 

void QPEApplication::appMessage const QCString msg,
const QByteArray data
[signal]
 

This signal is emitted when a message is received on this application's QPE/Application/appname QCop channel.

The slot to which you connect this signal uses msg and data in the following way:

     void MyWidget::receive( const QCString& msg, const QByteArray& data )
     {
       QDataStream stream( data, IO_ReadOnly );
       if ( msg == "someMessage(int,int,int)" ) {
            int a,b,c;
            stream >> a >> b >> c;
            ...
       } else if ( msg == "otherMessage(QString)" ) {
           ...
       }
    }

See also:
qcop.html Note that messages received here may be processed by qpe application and emitted as signals, such as flush() and reload().

Referenced by pidMessage().

void QPEApplication::clientMoused  )  [signal]
 

void QPEApplication::clientMoused  )  [signal]
 

Referenced by qwsEventFilter().

void QPEApplication::clockChanged bool  pm  )  [signal]
 

void QPEApplication::clockChanged bool  pm  )  [signal]
 

Referenced by systemMessage().

void QPEApplication::dateFormatChanged DateFormat   )  [signal]
 

void QPEApplication::dateFormatChanged DateFormat   )  [signal]
 

Referenced by systemMessage().

static int QPEApplication::defaultRotation  )  [static]
 

int QPEApplication::defaultRotation  )  [static]
 

For internal use only.

Definition at line 1264 of file qpeapplication.cpp.

References QString::contains(), and d.

Referenced by RotateApplet::activated(), AppLnk::execute(), and initEnvironment().

static QString QPEApplication::documentDir  )  [static]
 

QString QPEApplication::documentDir  )  [static]
 

Returns the user's current Document directory. There is a trailing "/". .. well, it does now,, and there's no trailing '/'

Definition at line 1250 of file qpeapplication.cpp.

Referenced by optionsDialog::BrowseSelected(), OFileViewFileListView::cdDoc(), Opie::Ui::Internal::OFileViewFileListView::cdDoc(), Global::createDocDir(), TabDialog::createIconTab(), Dir_DirLister::defaultPath(), OpieFtp::docButtonPushed(), AdvancedFm::docButtonPushed(), DocumentListPrivate::initialize(), Opie::Core::OGlobal::isDocumentFileName(), lastUsedDir(), DocLnkSearch::load(), mainWindowWidget::mainWindowWidget(), OFileSelector::OFileSelector(), Opie::Ui::OFileSelector::OFileSelector(), OpenEtext::open(), ImageViewer::openFile(), TextEdit::saveAs(), Output::saveOutput(), ODocumentFileView::selectedPath(), Opie::Ui::Internal::ODocumentFileView::selectedPath(), NotesControl::slotDeleteButton(), VMemo::startRecording(), OpieObex::OtherHandler::targetName(), Gutenbrowser::toggleButtonIcons(), SoundSettings::updateStorageCombo(), PlayListWidget::writeDefaultPlaylist(), and PlayListWidget::writem3u().

bool QPEApplication::eventFilter QObject *  ,
QEvent * 
[protected]
 

Reimplemented in ServerApplication, and OQWSServer.

bool QPEApplication::eventFilter QObject *  o,
QEvent *  e
[protected]
 

Reimplemented in ServerApplication, and OQWSServer.

Definition at line 1985 of file qpeapplication.cpp.

References d, FALSE, KeyPress, KeyRelease, printf, RightOnHold, and TRUE.

Referenced by OQWSServer::eventFilter(), and ServerApplication::eventFilter().

int QPEApplication::exec  ) 
 

Reimplemented in ServerApplication.

int QPEApplication::exec  ) 
 

Reimplemented in ServerApplication.

Definition at line 2135 of file qpeapplication.cpp.

References d.

Referenced by ServerApplication::exec(), fileviewer(), main(), UI::MainLoop(), and AppLnkSearch::search().

static int QPEApplication::execDialog QDialog *  ,
bool  nomax = FALSE
[static]
 

int QPEApplication::execDialog QDialog *  ,
bool  nomax = FALSE
[static]
 

Definition at line 43 of file widget_showing.cpp.

References showDialog().

Referenced by MainWindowImp::addClicked(), PPPModule::addNewInterface(), DocumentListPrivate::appendDocpath(), DateBook::appMessage(), Clock::appMessage(), ModemTransfer::ati_done(), BackupAndRestore::backupUserData(), LightSettings::calibrateSensor(), LightSettings::calibrateSensorAC(), TextEdit::changeFont(), KateView::configDialog(), PcmciaManager::configure(), OPackageManager::configureDlg(), MHfolderItem::createFolder(), MHviewItem::createFolder(), IMAPfolderItem::createNewFolder(), IMAPviewItem::createNewFolder(), Bartender::doBac(), AdvancedFm::doProperties(), DevicesWidget::doTab(), AccountWidget::doTab(), DateBook::duplicateEvent(), ButtonSettings::edit(), Todo::Editor::edit(), TabsSettings::editClicked(), AddressbookWindow::editEntry(), DateBook::editEvent(), mainWindowWidget::editFile(), ZSafe::editPwd(), Appearance::editSchemeClicked(), PcmciaManager::executeAction(), DrawPad::exportPage(), Bartender::fileNew(), AdvancedFm::filePerms(), AdvancedFm::fileStatus(), Opie::Ui::OFileDialog::getDirectory(), AddressPicker::getNames(), Opie::Ui::OFileDialog::getOpenFileName(), Opie::Ui::OFileDialog::getSaveFileName(), EntryDlg::getText(), DrawPad::importPage(), PlayListWidget::listDelete(), main(), ModemWidget2::modemcmdsbutton(), KVNC::newConnection(), OpieTooth::RfcommAssignDialog::newDevice(), ZSafe::newPwd(), Todo::Editor::newTodo(), MainWindow::openBook(), KVNC::openConnection(), DialWidget::pppdargsbutton(), Launcher::properties(), OpieMail::reEditMail(), BackupAndRestore::restore(), OpieTooth::BlueBase::rfcommDialog(), AdvancedFm::runCommand(), TextEdit::saveAs(), ScQtFileEditDlg::ScQtFileEditDlg(), ImageViewer::settings(), WellenreiterMainWindow::showConfigure(), SettingsImpl::showDlg(), Bartender::showDrink(), Bartender::showSearchResult(), ConfigDialog::slotAdd(), ModemConfigWidget::slotAT(), OpieTooth::RfcCommPopup::slotBind(), MainWindow::slotClicked(), PMainWindow::slotConfig(), PiecesTable::slotConfigure(), Opie::Ui::OKeyConfigWidget::slotConfigure(), MainWindow::slotConfigure(), AddressbookWindow::slotConfigure(), Datebook::MainWindow::slotConfigureDesc(), Datebook::MainWindow::slotConfigureLocs(), Datebook::MainWindow::slotConfigureTemp(), OpieTooth::RfcCommPopup::slotConnect(), OIpkgConfigDlg::slotDestEdit(), OIpkgConfigDlg::slotDestNew(), ModemConfigWidget::slotDial(), ConfigDialog::slotEdit(), EditAccounts::slotEditAccount(), OpieMail::slotEditAccounts(), MainWindow::slotEditConfigure(), DateEntry::slotEditNote(), OpieMail::slotEditSettings(), Checkbook::slotEditTran(), MainWindow::slotFilter(), MainWindow::slotFilterChange(), ViewMail::slotForward(), ViewMail::slotItemClicked(), ContactEditor::slotName(), MainWindow::slotNew(), EditAccounts::slotNewAccount(), DateBook::slotNewEntry(), Checkbook::slotNewTran(), ContactEditor::slotNote(), AbEditor::slotNote(), OpieTooth::ObexPopup::slotPush(), DateEntry::slotRepeat(), ViewMail::slotReply(), OpieMail::slotSendQueued(), OIpkgConfigDlg::slotServerEdit(), OIpkgConfigDlg::slotServerNew(), DateBook::slotSettings(), MainWindow::slotShowRecord(), MainWindow::slotTextOpen(), OpieMail::slotwriteMail(), Today::startConfig(), Appearance::styleSettingsClicked(), and NNTPviewItem::subscribeGroups().

void QPEApplication::flush  )  [signal]
 

void QPEApplication::flush  )  [signal]
 

Referenced by pidMessage().

static void QPEApplication::grabKeyboard  )  [static]
 

void QPEApplication::grabKeyboard  )  [static]
 

Grabs the physical keyboard keys, e.g. the application's launching keys. Instead of launching applications when these keys are pressed the signals emitted are sent to this application instead. Some games programs take over the launch keys in this way to make interaction easier.

See also:
ungrabKeyboard()

Definition at line 2127 of file qpeapplication.cpp.

References d, and qApp.

Referenced by ButtonSettings::ButtonSettings(), Gutenbrowser::cleanUp(), KAstTopLevel::KAstTopLevel(), konsoleInit(), main(), Opie::Core::OKeyConfigManager::OKeyConfigManager(), ParaShoot::ParaShoot(), and ServerApplication::ServerApplication().

void QPEApplication::hideOrQuit  )  [private, slot]
 

void QPEApplication::hideOrQuit  )  [private, slot]
 

For internal use only.

User initiated quit. Makes the window 'Go Away'. If preloaded this means hiding the window. If not it means quitting the application. As this is user initiated we don't need to check state.

Definition at line 2189 of file qpeapplication.cpp.

References d.

Referenced by pidMessage(), and QPEApplication().

void QPEApplication::initTranslations  )  [private]
 

Definition at line 341 of file qpeapplication.cpp.

References QValueList< T >::begin(), d, QValueList< T >::end(), and qpeDir().

static InputMethodHint QPEApplication::inputMethodHint QWidget *   )  [static]
 

QPEApplication::InputMethodHint QPEApplication::inputMethodHint QWidget *  w  )  [static]
 

Returns the currently set hint to the system as to whether widget w has any use for text input methods.

See also:
setInputMethodHint() InputMethodHint

Definition at line 995 of file qpeapplication.cpp.

References Normal.

Referenced by qwsEventFilter().

void QPEApplication::internalSetStyle const QString  )  [private]
 

void QPEApplication::internalSetStyle const QString style  )  [protected]
 

For internal use only.

Definition at line 1812 of file qpeapplication.cpp.

References IID_Style, lower(), QLibrary, qpeDir(), and QS_OK.

Referenced by applyStyle().

bool QPEApplication::keepRunning  )  const
 

bool QPEApplication::keepRunning  )  const
 

Returns TRUE if the application will quit after processing the current list of qcop messages; otherwise returns FALSE.

See also:
setKeepRunning()

Definition at line 1804 of file qpeapplication.cpp.

References d.

bool QPEApplication::keyboardGrabbed  )  const
 

bool QPEApplication::keyboardGrabbed  )  const
 

For internal use only.

Definition at line 2103 of file qpeapplication.cpp.

References d.

void QPEApplication::mapToDefaultAction QWSKeyEvent *  ke,
int  defKey
[private]
 

Definition at line 1042 of file qpeapplication.cpp.

References Qt::Key_Return.

Referenced by qwsEventFilter().

void QPEApplication::micChanged bool  muted  )  [signal]
 

void QPEApplication::micChanged bool  muted  )  [signal]
 

Referenced by systemMessage().

void QPEApplication::pidMessage const QCString ,
const QByteArray
[private, slot]
 

void QPEApplication::pidMessage const QCString msg,
const QByteArray data
[private, slot]
 

Definition at line 1667 of file qpeapplication.cpp.

References appMessage(), d, FALSE, flush(), hideOrQuit(), IO_ReadOnly, processQCopFile(), raiseAppropriateWindow(), reload(), Global::setDocument(), stream, TRUE, and tryQuit().

Referenced by QPEApplication().

void QPEApplication::prepareForTermination bool  willrestart  )  [protected]
 

void QPEApplication::prepareForTermination bool  willrestart  )  [protected]
 

For internal use only.

Definition at line 1900 of file qpeapplication.cpp.

References tr.

Referenced by ServerApplication::restart(), and ServerApplication::shutdown().

void QPEApplication::processQCopFile  )  [private]
 

Referenced by pidMessage(), and systemMessage().

static QString QPEApplication::qpeDir  )  [static]
 

QString QPEApplication::qpeDir  )  [static]
 

Returns $OPIEDIR/.

Definition at line 1224 of file qpeapplication.cpp.

References QString::append(), QString::isNull(), QString::length(), and QDir::separator().

Referenced by ConfigDlg::accept(), SysTray::addApplets(), ZSafe::addCategory(), UserDialog::addUser(), AppLnkWrapper::AppLnkWrapper(), MimeType::appsFolderName(), BackGammon::BackGammon(), Bartender::Bartender(), BenchmarkInfo::BenchmarkInfo(), calc::calc(), CalculatorImpl::CalculatorImpl(), CfgDlg::CfgDlg(), ConfigDlg::ConfigDlg(), Appearance::createColorTab(), Appearance::createDecoTab(), AppLauncher::createQuickLauncher(), Appearance::createStyleTab(), BackGammon::deletegame(), Appearance::deleteSchemeClicked(), BackGammon::deletetheme(), BuzzWord::drawGrid(), ZSafe::editCategory(), TabManager::editItem(), OpenEtext::editTitle(), UserDialog::editUser(), AppLauncher::execute(), ThemeDialog::fillBox(), TheNSResources::findAvailableNetNodes(), FirstUse::FirstUse(), optionsDialog::ftpSiteDlg(), FunctionKeyboardConfig::FunctionKeyboardConfig(), NetworkNetNode::generateFile(), AUSB::generateFileEmbedded(), AProfile::generateFileEmbedded(), FileDialog::getCurrentDir(), OpenEtext::getTitles(), HelpMe::help(), HelpMe::HelpMe(), TaskbarSettings::init(), MenuSettings::init(), NationalHolidayConfigWidget::init(), initTranslations(), InputMethods::installTranslator(), Opie::Core::OGenericPluginLoader::installTranslators(), internalSetStyle(), PSEWidget::inverseColor(), IrServer::IrServer(), SlMisc::isExecutable(), JezzGame::JezzGame(), MultiKey::Keys::Keys(), LanguageSettings::LanguageSettings(), ZkbConfig::load(), AppLnkSearch::load(), NationalHoliday::load_days(), KeyTrans::loadAll(), StartMenu::loadApplets(), QIMPenProfile::loadData(), MimeType::loadExtensions(), BackGammon::loadgame(), QPEApplication::Private::loadImageCodecs(), InputMethods::loadInputMethods(), MainWindowImp::loadModules(), Network::loadPlugin(), MultiauthConfig::loadPlugins(), MediaPlayerState::loadPlugins(), QIMPenSetup::loadProfiles(), QIMPenInput::loadProfiles(), FontDatabase::loadRenderers(), ConfigDlg::loadSw(), QPEApplication::Private::loadTextCodecs(), BackGammon::loadtheme(), main(), MainWindowImp::MainWindowImp(), Multikey::message(), MultiauthConfig::MultiauthConfig(), Opie::Core::OGenericPluginLoader::OGenericPluginLoader(), Opie::Net::OManufacturerDB::OManufacturerDB(), OThemeBase::OThemeBase(), InputMethods::plugins(), PlayListWidget::populateSkinsMenu(), PSEWidget::PSEWidget(), AdvancedFm::QPEButtonPushed(), QtDasherPlugin::QtDasherPlugin(), qtopia_loadTranslations(), QuickPrivate::PluginLoader::queryInterface(), Config::read(), MultiauthConfig::readConfig(), KMolCalc::readElstable(), KAsteroidsView::readSprites(), FirstUse::reloadLanguages(), Resource::allSounds(), Resource::findPixmap(), ServerApplication::restart(), Opie::Security::Internal::runPlugins(), BackGammon::savegame(), Appearance::saveSchemeClicked(), SettingsTabWidget::saveSettings(), BackGammon::savetheme(), ZSafe::setCategoryDialogFields(), OxydataWidget::setElement(), SettingsTabWidget::SettingsTabWidget(), SyntaxDocument::setupModeList(), Clock::slotBrowseMp3File(), TimeZoneSelector::slotExecute(), Server::startSoundServer(), SystemFile::SystemFile(), ThemeSettings::ThemeSettings(), Gutenbrowser::toggleButtonIcons(), VideoWidget::VideoWidget(), PlayListWidget::viewPressed(), MultiauthConfig::writeConfig(), OpieTooth::BlueBase::writeToHciConfig(), and ZSafe::ZSafe().

bool QPEApplication::qwsEventFilter QWSEvent *  e  )  [protected]
 

For internal use only.

Reimplemented in OConsoleApplication.

Definition at line 1066 of file qpeapplication.cpp.

References HackDialog::acceptIt(), active, AlwaysOff, AlwaysOn, clientMoused(), d, Global::hideInputMethod(), inputMethodHint(), Qt::Key_Escape, Qt::Key_F1, Qt::Key_F29, Qt::Key_F30, Qt::Key_F33, Qt::Key_Return, Qt::Key_Space, KeyPress, KeyRelease, mapToDefaultAction(), qApp, HackDialog::rejectIt(), Global::showInputMethod(), TRUE, and type.

Referenced by OConsoleApplication::qwsEventFilter().

void QPEApplication::raiseAppropriateWindow  )  [protected]
 

bool QPEApplication::raiseAppropriateWindow  )  [protected]
 

For internal use only.

Definition at line 1592 of file qpeapplication.cpp.

References d, FALSE, and TRUE.

Referenced by pidMessage().

void QPEApplication::reload  )  [signal]
 

void QPEApplication::reload  )  [signal]
 

Referenced by pidMessage().

void QPEApplication::removeSenderFromStylusDict  )  [private, slot]
 

void QPEApplication::removeSenderFromStylusDict  )  [private, slot]
 

Definition at line 2092 of file qpeapplication.cpp.

References d.

Referenced by setStylusOperation().

void QPEApplication::reset  ) 
 

Definition at line 1338 of file qpeapplication.cpp.

References applyStyle(), and QString::null.

Referenced by systemMessage().

virtual void QPEApplication::restart  )  [protected, virtual]
 

Reimplemented in ServerApplication.

void QPEApplication::restart  )  [protected, virtual]
 

For internal use only.

Reimplemented in ServerApplication.

Definition at line 1925 of file qpeapplication.cpp.

Referenced by systemMessage().

void QPEApplication::setCurrentMode int  x,
int  y,
int  depth
[static]
 

Definition at line 1316 of file qpeapplication.cpp.

References qApp, and qws_clearLoadedFonts().

Referenced by systemMessage().

void QPEApplication::setCurrentRotation int  r  )  [inline, static]
 

Definition at line 205 of file qpeapplication.h.

References DegToTrans(), driver, QCString::find(), QCString::left(), qApp, and setDefaultRotation().

Referenced by systemMessage().

static void QPEApplication::setDefaultRotation int  r  )  [static]
 

void QPEApplication::setDefaultRotation int  r  )  [static]
 

For internal use only.

Definition at line 1287 of file qpeapplication.cpp.

References driver, QCString::find(), QCString::left(), qApp, Config::setGroup(), and Config::writeEntry().

Referenced by setCurrentRotation(), and systemMessage().

static void QPEApplication::setInputMethodHint QWidget *  ,
InputMethodHint 
[static]
 

void QPEApplication::setInputMethodHint QWidget *  w,
InputMethodHint  mode
[static]
 

Hints to the system that widget w has use for text input methods as specified by mode.

See also:
inputMethodHint() InputMethodHint

Definition at line 1016 of file qpeapplication.cpp.

References createInputMethodDict(), and Normal.

Referenced by main(), MindBreaker::MindBreaker(), MineSweep::MineSweep(), ParaShoot::ParaShoot(), and SnakeGame::SnakeGame().

static void QPEApplication::setKeepRunning  )  [static]
 

void QPEApplication::setKeepRunning  )  [static]
 

If an application is started via a QCop message, the application will process the QCop message and then quit. If the application calls this function while processing a QCop message, after processing its outstanding QCop messages the application will start 'properly' and show itself.

See also:
keepRunning()

Definition at line 1790 of file qpeapplication.cpp.

References d, qApp, and TRUE.

Referenced by OPimMainWindow::appMessage(), Opie::OPimMainWindow::appMessage(), DateBook::appMessage(), AddressbookWindow::appMessage(), HelpBrowser::appMessage(), Clock::appMessage(), MainWindowImp::receive(), SlaveReciever::recieveAnswer(), and DrawPad::slotAppMessage().

static void QPEApplication::setStylusOperation QWidget *  ,
StylusMode 
[static]
 

void QPEApplication::setStylusOperation QWidget *  w,
StylusMode  mode
[static]
 

Causes widget w to receive mouse events according to the stylus mode.

See also:
stylusOperation() StylusMode

Definition at line 1966 of file qpeapplication.cpp.

References createDict(), LeftOnly, qApp, and removeSenderFromStylusDict().

Referenced by Bartender::Bartender(), BatteryMeter::BatteryMeter(), OpieTooth::BlueBase::BlueBase(), MainWindow::buildList(), FileSelector::FileSelector(), Gutenbrowser::Gutenbrowser(), ImageView::ImageView(), QtRec::init(), AdvancedFm::init(), OpieFtp::initializeGui(), MainWindow::initMainWidget(), MainWindow::initPackageList(), Checkbook::initTransactions(), IRCChannelTab::IRCChannelTab(), LauncherView::LauncherView(), ModulesInfo::ModulesInfo(), MScanListView::MScanListView(), Multikey::Multikey(), NetworkSettings::NetworkSettings(), NotesControl::NotesControl(), OFileViewFileListView::OFileViewFileListView(), Opie::Ui::Internal::OFileViewFileListView::OFileViewFileListView(), OpieStumbler::OpieStumbler(), PlayListWidget::PlayListWidget(), PlayListWidgetGui::PlayListWidgetGui(), ProcessInfo::ProcessInfo(), Todo::TableView::TableView(), TextEdit::TextEdit(), and ZSafe::ZSafe().

static void QPEApplication::showDialog QDialog *  ,
bool  nomax = FALSE
[static]
 

void QPEApplication::showDialog QDialog *  ,
bool  nomax = FALSE
[static]
 

Definition at line 38 of file widget_showing.cpp.

References showWidget().

Referenced by LearnTab::add(), AI_Dialog::AI_Dialog(), CategoryFilterImpl::CategoryFilterImpl(), ConfigDlg::ConfigDlg(), MainWindowImp::configureClicked(), Bartender::doEdit(), FormatterApp::doFormat(), FormatterApp::doFsck(), execDialog(), FileDialog::FileDialog(), InstallOptionsDlgImpl::InstallOptionsDlgImpl(), IRCServerEditor::IRCServerEditor(), IRCServerList::IRCServerList(), IRCSettings::IRCSettings(), Menu::InstEditDialog::InstEditDialog(), Menu::ScaleEditDialog::ScaleEditDialog(), OHighscoreDialog::OHighscoreDialog(), OpieTooth::PinDlg::PinDlg(), PlayerDialog::PlayerDialog(), RulesDialog::RulesDialog(), SearchMethodDlg::SearchMethodDlg(), AccountView::setupFolderselect(), QPEApplication::Private::show_mx(), ZSafe::showInfo(), MainWindow::slotDataFindReplace(), MainWindow::slotDataSort(), MainWindow::slotFormatCells(), OpieTooth::BlueBase::startScan(), ThemeDialog::ThemeDialog(), TVEditView::TVEditView(), TVFilterView::TVFilterView(), TVKeyEdit::TVKeyEdit(), and UserDialog::UserDialog().

void QPEApplication::showMainDocumentWidget QWidget *  ,
bool  nomax = FALSE
 

void QPEApplication::showMainDocumentWidget QWidget *  mw,
bool  m = FALSE
 

Sets widget mw as the mainWidget() and shows it. For small windows, consider passing TRUE for nomaximize rather than the default FALSE.

This calls designates the application as a document-oriented application.

The mw widget must have this slot: setDocument(const QString&).

See also:
showMainWidget()

Definition at line 1769 of file qpeapplication.cpp.

References d, QString::fromUtf8(), and Global::setDocument().

Referenced by QuickLauncher::exec(), and main().

void QPEApplication::showMainWidget QWidget *  ,
bool  nomax = FALSE
 

Reimplemented in Opie::Core::OApplication.

void QPEApplication::showMainWidget QWidget *  wid,
bool  b = FALSE
 

Sets widget mw as the mainWidget() and shows it. For small windows, consider passing TRUE for nomaximize rather than the default FALSE.

See also:
showMainDocumentWidget()

Reimplemented in Opie::Core::OApplication.

Definition at line 1752 of file qpeapplication.cpp.

References d.

Referenced by QuickLauncher::exec(), main(), UI::make_mainwin(), and Opie::Core::OApplication::showMainWidget().

static void QPEApplication::showWidget QWidget *  ,
bool  nomax = FALSE
[static]
 

void QPEApplication::showWidget QWidget *  ,
bool  nomax = FALSE
[static]
 

Definition at line 49 of file widget_showing.cpp.

References qApp, qt_maxWindowRect, and TRUE.

Referenced by AboutApplet::activated(), InterfaceInformationImp::advanced(), BackupAndRestore::BackupAndRestore(), MainWindowImp::configureClicked(), SFCave::dealWithMenuSelection(), OpieObex::ObexHandler::doSend(), fileviewer(), MainWindowImp::informationClicked(), input(), main(), VideoWidget::makeVisible(), myMessageBox(), WLANModule::receive(), AudioWidget::setDisplayType(), PlayListWidget::setView(), AudioWidget::setView(), showDialog(), ServerApplication::shutdown(), MainWindow::slotDisplayPackage(), DrawPad::thumbnailView(), TicTacGameBoard::TicTacGameBoard(), TicTacToe::TicTacToe(), ModulesInfo::viewModules(), and ProcessInfo::viewProcess().

virtual void QPEApplication::shutdown  )  [protected, virtual]
 

Reimplemented in ServerApplication.

void QPEApplication::shutdown  )  [protected, virtual]
 

For internal use only.

Reimplemented in ServerApplication.

Definition at line 1917 of file qpeapplication.cpp.

Referenced by systemMessage().

static StylusMode QPEApplication::stylusOperation QWidget *   )  [static]
 

QPEApplication::StylusMode QPEApplication::stylusOperation QWidget *  w  )  [static]
 

Returns the current StylusMode for widget w.

See also:
setStylusOperation() StylusMode

Definition at line 1942 of file qpeapplication.cpp.

References LeftOnly.

void QPEApplication::systemMessage const QCString ,
const QByteArray
[private, slot]
 

Reimplemented in ServerApplication.

void QPEApplication::systemMessage const QCString msg,
const QByteArray data
[private, slot]
 

Reimplemented in ServerApplication.

Definition at line 1408 of file qpeapplication.cpp.

References active, AlarmServer::addAlarm(), applyStyle(), clockChanged(), d, dateFormatChanged(), AlarmServer::deleteAlarm(), depth, FALSE, IO_ReadOnly, Key_C, QPEMenuToolFocusManager::manager(), micChanged(), processQCopFile(), reset(), restart(), setCurrentMode(), setCurrentRotation(), setDefaultRotation(), shutdown(), stream, t, timeChanged(), TRUE, tryQuit(), type, v, volumeChanged(), and weekChanged().

Referenced by QPEApplication().

void QPEApplication::timeChanged  )  [signal]
 

void QPEApplication::timeChanged  )  [signal]
 

Referenced by systemMessage().

void QPEApplication::timerEvent QTimerEvent *   )  [protected]
 

void QPEApplication::timerEvent QTimerEvent *  e  )  [protected]
 

Definition at line 2075 of file qpeapplication.cpp.

References d, and TRUE.

virtual void QPEApplication::tryQuit  )  [protected, virtual]
 

void QPEApplication::tryQuit  )  [protected, virtual]
 

For internal use only.

External request for application to quit. Quits if possible without loosing state.

Definition at line 2164 of file qpeapplication.cpp.

References d.

Referenced by pidMessage(), and systemMessage().

static void QPEApplication::ungrabKeyboard  )  [static]
 

void QPEApplication::ungrabKeyboard  )  [static]
 

Reverses the effect of grabKeyboard(). This is called automatically on program exit.

Definition at line 2113 of file qpeapplication.cpp.

References d, and qApp.

Referenced by Gutenbrowser::cleanUp(), ButtonSettings::~ButtonSettings(), Opie::Core::OKeyConfigManager::~OKeyConfigManager(), ~QPEApplication(), and ServerApplication::~ServerApplication().

void QPEApplication::volumeChanged bool  muted  )  [signal]
 

void QPEApplication::volumeChanged bool  muted  )  [signal]
 

Referenced by ServerApplication::ServerApplication(), and systemMessage().

void QPEApplication::weekChanged bool  startOnMonday  )  [signal]
 

void QPEApplication::weekChanged bool  startOnMonday  )  [signal]
 

Referenced by systemMessage().

int QPEApplication::x11ClientMessage QWidget *  ,
XEvent *  ,
bool 
 

Definition at line 735 of file qpeapplication.cpp.

References qWarning().


Member Data Documentation

Private* QPEApplication::d [private]
 

Reimplemented in Opie::Core::OApplication.

Definition at line 100 of file qpeapplication.h.

QPEApplicationData* QPEApplication::d [private]
 

Reimplemented in Opie::Core::OApplication.

Definition at line 177 of file qpeapplication.h.

Referenced by applyStyle(), defaultRotation(), eventFilter(), exec(), grabKeyboard(), hideOrQuit(), initTranslations(), keepRunning(), keyboardGrabbed(), pidMessage(), QPEApplication(), qwsEventFilter(), raiseAppropriateWindow(), removeSenderFromStylusDict(), setKeepRunning(), showMainDocumentWidget(), showMainWidget(), systemMessage(), timerEvent(), TransToDeg(), tryQuit(), ungrabKeyboard(), and ~QPEApplication().

QCopChannel* QPEApplication::m_pid [private]
 

Definition at line 103 of file qpeapplication.h.

QCopChannel* QPEApplication::m_sys [private]
 

Definition at line 102 of file qpeapplication.h.

bool QPEApplication::reserved_sh [private]
 

Definition at line 179 of file qpeapplication.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:48:07 2005 for OPIE by  doxygen 1.4.2