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

ServerApplication Class Reference

#include </home/clem/local/src/opie/core/launcher/serverapp.h>

Inheritance diagram for ServerApplication:

Inheritance graph
[legend]
Collaboration diagram for ServerApplication:

Collaboration graph
[legend]
List of all members.

Public Slots

virtual void systemMessage (const QCString &msg, const QByteArray &)
virtual void launcherMessage (const QCString &msg, const QByteArray &)
void rereadVolumes ()

Signals

void menu ()
void home ()
void launch ()
void power ()
void backlight ()
void symbol ()
void numLockStateToggle ()
void capsLockStateToggle ()
void prepareForRestart ()
void activate (const Opie::Core::ODeviceButton *, bool)

Public Member Functions

 ServerApplication (int &argc, char **argv, Type t)
 ~ServerApplication ()
void restart ()
int exec ()

Static Public Member Functions

static bool screenLocked ()
static void login (bool at_poweron)
static bool isStarting ()
static void switchLCD (bool on)
static void soundAlarm ()

Static Public Attributes

static bool doRestart = FALSE
static bool allowRestart = TRUE

Protected Slots

void shutdown (ShutdownImpl::Type)
void apmTimeout ()
void showSafeMode ()
void clearSafeMode ()
void togglePower ()
void toggleLight ()

Protected Member Functions

bool eventFilter (QObject *, QEvent *)
void shutdown ()
void checkMemory ()
bool recoverMemory ()
void keyClick (int keycode, bool press, bool repeat)
void screenClick (bool press)

Private Member Functions

void reloadPowerWarnSettings ()

Static Private Member Functions

static ServerApplicationme ()

Private Attributes

KeyFilterkf
DesktopPowerAlerterpa
PowerStatusm_ps
PowerStatusm_ps_last
OpieScreenSaverm_screensaver
QTimer * m_apm_timer
QDateTime m_suspendTime
int m_powerVeryLow
int m_powerCritical
int m_currentPowerLevel
bool m_keyclick_sound: 1
bool m_screentap_sound: 1
bool m_alarm_sound: 1

Static Private Attributes

static bool ms_is_starting = TRUE

Friends

class KeyFilter

Constructor & Destructor Documentation

ServerApplication::ServerApplication int &  argc,
char **  argv,
Type  t
 

Definition at line 310 of file serverapp.cpp.

References activate(), apmTimeout(), backlight(), capsLockStateToggle(), channel, clearSafeMode(), QPEApplication::grabKeyboard(), KeyFilter, kf, launch(), launcherMessage(), m_apm_timer, m_ps, m_ps_last, m_screensaver, ms_is_starting, numLockStateToggle(), pa, power(), qApp, reloadPowerWarnSettings(), rereadVolumes(), OpieScreenSaver::setInterval(), QWSServer::setScreenSaver(), showSafeMode(), symbol(), systemMessage(), toggleLight(), togglePower(), and QPEApplication::volumeChanged().

ServerApplication::~ServerApplication  ) 
 

Definition at line 381 of file serverapp.cpp.

References m_ps, m_ps_last, pa, and QPEApplication::ungrabKeyboard().


Member Function Documentation

void ServerApplication::activate const Opie::Core::ODeviceButton ,
bool 
[signal]
 

Referenced by ServerApplication().

void ServerApplication::apmTimeout  )  [protected, slot]
 

Definition at line 390 of file serverapp.cpp.

References PowerStatus::acStatus(), DesktopPowerAlerter::alert(), checkMemory(), m_powerCritical, m_powerVeryLow, m_ps, m_ps_last, m_screensaver, QString::null, PowerStatus::Online, pa, PowerStatusManager::readStatus(), tr, TRUE, and PowerStatus::VeryLow.

Referenced by ServerApplication().

void ServerApplication::backlight  )  [signal]
 

Referenced by ServerApplication().

void ServerApplication::capsLockStateToggle  )  [signal]
 

Referenced by ServerApplication().

void ServerApplication::checkMemory  )  [protected]
 

Definition at line 782 of file serverapp.cpp.

References FALSE, MemLow, MemNormal, memstate, MemUnknown, MemVeryLow, recoverMemory(), tr, TRUE, and warning().

Referenced by apmTimeout().

void ServerApplication::clearSafeMode  )  [protected, slot]
 

Definition at line 685 of file serverapp.cpp.

References Config::readEntry(), Config::setGroup(), and Config::writeEntry().

Referenced by ServerApplication().

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

Reimplemented from QPEApplication.

Definition at line 622 of file serverapp.cpp.

References KeyFilter::checkButtonAction(), QPEApplication::eventFilter(), KeyPress, KeyRelease, and kf.

int ServerApplication::exec  ) 
 

Reimplemented from QPEApplication.

Definition at line 856 of file serverapp.cpp.

References QPEApplication::exec(), ms_is_starting, odebug, and oendl.

Referenced by initApplication().

void ServerApplication::home  )  [signal]
 

bool ServerApplication::isStarting  )  [static]
 

Definition at line 851 of file serverapp.cpp.

References ms_is_starting.

void ServerApplication::keyClick int  keycode,
bool  press,
bool  repeat
[protected]
 

Definition at line 828 of file serverapp.cpp.

References m_keyclick_sound.

Referenced by KeyFilter::checkButtonAction().

void ServerApplication::launch  )  [signal]
 

Referenced by ServerApplication().

void ServerApplication::launcherMessage const QCString msg,
const QByteArray
[virtual, slot]
 

Definition at line 496 of file serverapp.cpp.

References KeyFilter::checkButtonAction(), IO_ReadOnly, keycode, kf, and stream.

Referenced by ServerApplication().

void ServerApplication::login bool  at_poweron  )  [static]
 

Definition at line 521 of file serverapp.cpp.

References Opie::Security::MultiauthPassword::authenticate(), Opie::Security::IfPowerOn, Opie::Security::IfResume, loggedin, and Global::terminateBuiltin().

Referenced by Server::show(), and togglePower().

ServerApplication * ServerApplication::me  )  [static, private]
 

Definition at line 846 of file serverapp.cpp.

References qApp.

Referenced by switchLCD().

void ServerApplication::menu  )  [signal]
 

void ServerApplication::numLockStateToggle  )  [signal]
 

Referenced by ServerApplication().

void ServerApplication::power  )  [signal]
 

Referenced by ServerApplication(), and systemMessage().

void ServerApplication::prepareForRestart  )  [signal]
 

bool ServerApplication::recoverMemory  )  [protected]
 

Definition at line 823 of file serverapp.cpp.

References FALSE.

Referenced by checkMemory().

void ServerApplication::reloadPowerWarnSettings  )  [private]
 

Definition at line 481 of file serverapp.cpp.

References m_apm_timer, m_powerCritical, m_powerVeryLow, and start.

Referenced by ServerApplication(), and systemMessage().

void ServerApplication::rereadVolumes  )  [slot]
 

Definition at line 771 of file serverapp.cpp.

References m_alarm_sound, m_keyclick_sound, and m_screentap_sound.

Referenced by ServerApplication().

void ServerApplication::restart  )  [virtual]
 

For internal use only.

Reimplemented from QPEApplication.

Definition at line 743 of file serverapp.cpp.

References allowRestart, doRestart, NULL, QPEApplication::prepareForTermination(), QPEApplication::qpeDir(), and TRUE.

Referenced by initApplication(), and shutdown().

void ServerApplication::screenClick bool  press  )  [protected]
 

Definition at line 835 of file serverapp.cpp.

References m_screentap_sound.

bool ServerApplication::screenLocked  )  [static]
 

Definition at line 516 of file serverapp.cpp.

References loggedin.

Referenced by Server::systemMsg().

void ServerApplication::showSafeMode  )  [protected, slot]
 

Definition at line 671 of file serverapp.cpp.

References Global::execute(), tr, and warning().

Referenced by ServerApplication().

void ServerApplication::shutdown ShutdownImpl::Type   )  [protected, slot]
 

Definition at line 710 of file serverapp.cpp.

References FALSE, Opie::Core::perror(), QPEApplication::prepareForTermination(), ShutdownImpl::RebootSystem, restart(), ShutdownImpl::RestartDesktop, ShutdownImpl::ShutdownSystem, and ShutdownImpl::TerminateDesktop.

void ServerApplication::shutdown  )  [protected, virtual]
 

For internal use only.

Reimplemented from QPEApplication.

Definition at line 700 of file serverapp.cpp.

References sd, QPEApplication::showWidget(), and type.

void ServerApplication::soundAlarm  )  [static]
 

Definition at line 841 of file serverapp.cpp.

References m_alarm_sound.

Referenced by Server::receiveTaskBar().

void ServerApplication::switchLCD bool  on  )  [static]
 

Definition at line 291 of file serverapp.cpp.

References m_screensaver, me(), and qApp.

Referenced by togglePower().

void ServerApplication::symbol  )  [signal]
 

Referenced by ServerApplication().

void ServerApplication::systemMessage const QCString msg,
const QByteArray
[virtual, slot]
 

Reimplemented from QPEApplication.

Definition at line 433 of file serverapp.cpp.

References QFile::exists(), IO_ReadOnly, m_screensaver, power(), reloadPowerWarnSettings(), stream, and tr.

Referenced by ServerApplication().

void ServerApplication::toggleLight  )  [protected, slot]
 

Definition at line 608 of file serverapp.cpp.

Referenced by ServerApplication().

void ServerApplication::togglePower  )  [protected, slot]
 

Definition at line 567 of file serverapp.cpp.

References QDateTime::currentDateTime(), execAutoStart(), fillRect(), g, height, loggedin, login(), m_suspendTime, Opie::Security::MultiauthPassword::needToAuthenticate(), QWSServer::screenSaverActivate(), switchLCD(), and width.

Referenced by ServerApplication().


Friends And Related Function Documentation

friend class KeyFilter [friend]
 

Definition at line 166 of file serverapp.h.

Referenced by ServerApplication().


Member Data Documentation

bool ServerApplication::allowRestart = TRUE [static]
 

Definition at line 288 of file serverapp.cpp.

Referenced by FirstUse::FirstUse(), FirstUse::nextDialog(), restart(), and FirstUse::~FirstUse().

bool ServerApplication::doRestart = FALSE [static]
 

Definition at line 287 of file serverapp.cpp.

Referenced by main(), and restart().

KeyFilter* ServerApplication::kf [private]
 

Definition at line 147 of file serverapp.h.

Referenced by eventFilter(), launcherMessage(), and ServerApplication().

bool ServerApplication::m_alarm_sound [private]
 

Definition at line 162 of file serverapp.h.

Referenced by rereadVolumes(), and soundAlarm().

QTimer* ServerApplication::m_apm_timer [private]
 

Definition at line 154 of file serverapp.h.

Referenced by reloadPowerWarnSettings(), and ServerApplication().

int ServerApplication::m_currentPowerLevel [private]
 

Definition at line 158 of file serverapp.h.

bool ServerApplication::m_keyclick_sound [private]
 

Definition at line 160 of file serverapp.h.

Referenced by keyClick(), and rereadVolumes().

int ServerApplication::m_powerCritical [private]
 

Definition at line 157 of file serverapp.h.

Referenced by apmTimeout(), and reloadPowerWarnSettings().

int ServerApplication::m_powerVeryLow [private]
 

Definition at line 156 of file serverapp.h.

Referenced by apmTimeout(), and reloadPowerWarnSettings().

PowerStatus* ServerApplication::m_ps [private]
 

Definition at line 152 of file serverapp.h.

Referenced by apmTimeout(), ServerApplication(), and ~ServerApplication().

PowerStatus * ServerApplication::m_ps_last [private]
 

Definition at line 152 of file serverapp.h.

Referenced by apmTimeout(), ServerApplication(), and ~ServerApplication().

OpieScreenSaver* ServerApplication::m_screensaver [private]
 

Definition at line 153 of file serverapp.h.

Referenced by apmTimeout(), ServerApplication(), switchLCD(), and systemMessage().

bool ServerApplication::m_screentap_sound [private]
 

Definition at line 161 of file serverapp.h.

Referenced by rereadVolumes(), and screenClick().

QDateTime ServerApplication::m_suspendTime [private]
 

Definition at line 155 of file serverapp.h.

Referenced by togglePower().

bool ServerApplication::ms_is_starting = TRUE [static, private]
 

Definition at line 289 of file serverapp.cpp.

Referenced by exec(), isStarting(), and ServerApplication().

DesktopPowerAlerter* ServerApplication::pa [private]
 

Definition at line 151 of file serverapp.h.

Referenced by apmTimeout(), ServerApplication(), and ~ServerApplication().


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