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

main.cpp File Reference

#include "calibrate.h"
#include "server.h"
#include "serverapp.h"
#include "stabmon.h"
#include "firstuse.h"
#include <opie2/odebug.h>
#include <opie2/odevice.h>
#include <opie2/oglobal.h>
#include <qtopia/network.h>
#include <qtopia/alarmserver.h>
#include <qdir.h>
#include <qmessagebox.h>
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void create_pidfile ()
void remove_pidfile ()
static void cleanup ()
void initEnvironment ()
static void initKeyboard ()
static bool firstUse ()
int initApplication (int argc, char **argv)
void handle_sigterm (int sig)
int main (int argc, char **argv)

Variables

static const char * pidfile_path = "/var/run/opie.pid"


Function Documentation

static void cleanup  )  [static]
 

Definition at line 56 of file main.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QDir::entryList(), and QDir::remove().

Referenced by initApplication(), and liblist().

void create_pidfile  ) 
 

Definition at line 201 of file main.cpp.

References f, odebug, oendl, and pidfile_path.

Referenced by initApplication().

static bool firstUse  )  [static]
 

Definition at line 119 of file main.cpp.

References QFile::exists(), FALSE, Config::readBoolEntry(), FirstUse::restartNeeded(), Config::setGroup(), and TRUE.

Referenced by initApplication().

void handle_sigterm int  sig  ) 
 

Definition at line 220 of file main.cpp.

References qApp, and qDebug().

Referenced by main().

int initApplication int  argc,
char **  argv
 

Definition at line 144 of file main.cpp.

References cleanup(), create_pidfile(), Network::createServer(), QDate::currentDate(), TimeString::dateString(), ServerApplication::exec(), firstUse(), initEnvironment(), AlarmServer::initialize(), initKeyboard(), odebug, oendl, remove_pidfile(), ServerApplication::restart(), s, QWSServer::setDesktopBackground(), Server::show(), and tr.

Referenced by main().

void initEnvironment  ) 
 

Definition at line 67 of file main.cpp.

References QPEApplication::defaultRotation(), Opie::Core::ODevice::inst(), QString::isEmpty(), QString::isNull(), odebug, oendl, Config::readEntry(), Config::setGroup(), t, Config::write(), and Config::writeEntry().

Referenced by initApplication().

static void initKeyboard  )  [static]
 

Definition at line 104 of file main.cpp.

References Config::readEntry(), Config::readNumEntry(), Config::setGroup(), and Server::setKeyboardLayout().

Referenced by initApplication().

int main int  argc,
char **  argv
 

Definition at line 232 of file main.cpp.

References ServerApplication::doRestart, handle_sigterm(), initApplication(), QPEApplication::qpeDir(), and remove_pidfile().

void remove_pidfile  ) 
 

Definition at line 215 of file main.cpp.

References pidfile_path.

Referenced by initApplication(), and main().


Variable Documentation

const char* pidfile_path = "/var/run/opie.pid" [static]
 

Definition at line 199 of file main.cpp.

Referenced by create_pidfile(), and remove_pidfile().


Generated on Sat Nov 5 16:19:26 2005 for OPIE by  doxygen 1.4.2