author | tille <tille> | 2002-10-31 21:15:33 (UTC) |
---|---|---|
committer | tille <tille> | 2002-10-31 21:15:33 (UTC) |
commit | 9453519728734e52aac9ea81a4ca3a867f013bda (patch) (side-by-side diff) | |
tree | fc5a36cd1f01401f580a76d86fd087e0e41440cb | |
parent | 00a211621ea11ed73d803a3e52c09ce1e76864eb (diff) | |
download | opie-9453519728734e52aac9ea81a4ca3a867f013bda.zip opie-9453519728734e52aac9ea81a4ca3a867f013bda.tar.gz opie-9453519728734e52aac9ea81a4ca3a867f013bda.tar.bz2 |
remove netsystemtime
-rw-r--r-- | core/launcher/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/core/launcher/main.cpp b/core/launcher/main.cpp index 715239f..b517c7d 100644 --- a/core/launcher/main.cpp +++ b/core/launcher/main.cpp @@ -91,70 +91,65 @@ int initApplication( int argc, char ** argv ) AlarmServer::initialize(); Desktop *d = new Desktop(); QObject::connect( &a, SIGNAL(menu()), d, SLOT(raiseMenu()) ); QObject::connect( &a, SIGNAL(datebook()), d, SLOT(raiseDatebook()) ); QObject::connect( &a, SIGNAL(contacts()), d, SLOT(raiseContacts()) ); QObject::connect( &a, SIGNAL(launch()), d, SLOT(raiseLauncher()) ); QObject::connect( &a, SIGNAL(email()), d, SLOT(raiseEmail()) ); QObject::connect( &a, SIGNAL(power()), d, SLOT(togglePower()) ); QObject::connect( &a, SIGNAL(backlight()), d, SLOT(toggleLight()) ); QObject::connect( &a, SIGNAL(symbol()), d, SLOT(toggleSymbolInput()) ); QObject::connect( &a, SIGNAL(numLockStateToggle()), d, SLOT(toggleNumLockState()) ); QObject::connect( &a, SIGNAL(capsLockStateToggle()), d, SLOT(toggleCapsLockState()) ); QObject::connect( &a, SIGNAL(prepareForRestart()), d, SLOT(terminateServers()) ); (void)new SysFileMonitor(d); Network::createServer(d); #if defined(QT_QWS_CASSIOPEIA) || defined(QT_QWS_IPAQ) || defined(QT_QWS_EBX) if ( !QFile::exists( "/etc/pointercal" ) ) { // Make sure calibration widget starts on top. Calibrate *cal = new Calibrate; cal->exec(); delete cal; } #endif d->show(); if ( QDate::currentDate ( ). year ( ) < 2000 ) { if ( QMessageBox::information ( 0, DesktopApplication::tr( "Information" ), DesktopApplication::tr( "<p>The system date doesn't seem to be valid.\n(%1)</p><p>Do you want to correct the clock ?</p>" ). arg( TimeString::dateString ( QDate::currentDate ( ))), QMessageBox::Yes, QMessageBox::No ) == QMessageBox::Yes ) { - QCString app; - if ( QFile::exists ( QPEApplication::qpeDir ( ) + "/bin/netsystemtime" )) - app = "netsystemtime"; - else - app = "systemtime"; - QCopEnvelope e ( "QPE/Application/" + app, "setDocument(QString)" ); + QCopEnvelope e ( "QPE/Application/systemtime", "setDocument(QString)" ); e << QString ( ); } } int rv = a.exec(); delete d; ODevice::inst ( )-> setSoftSuspend ( false ); return rv; } static const char *pidfile_path = "/var/run/opie.pid"; void create_pidfile ( ) { FILE *f; if (( f = ::fopen ( pidfile_path, "w" ))) { ::fprintf ( f, "%d", getpid ( )); ::fclose ( f ); } } void remove_pidfile ( ) { ::unlink ( pidfile_path ); } void handle_sigterm ( int /* sig */ ) { |