From 22108a3617e8b79acaddea61c1f7f6a0a5117306 Mon Sep 17 00:00:00 2001 From: sandman Date: Sun, 17 Nov 2002 02:32:39 +0000 Subject: - another QT_QWS_EBX -> QT_QWS_SHARP - since OZ is going to use opieatd/opiealarm, we can ditch the "custom atd" support --- (limited to 'library/alarmserver.cpp') diff --git a/library/alarmserver.cpp b/library/alarmserver.cpp index 7e6e515..5e4dd18 100644 --- a/library/alarmserver.cpp +++ b/library/alarmserver.cpp @@ -156,16 +156,7 @@ static bool triggerAtd( bool writeHWClock = FALSE ) { QFile trigger(QString(atdir) + "trigger"); if ( trigger.open(IO_WriteOnly|IO_Raw) ) { - - const char* data = -#ifdef QT_QWS_SHARP - //custom atd only writes HW Clock if we write a 'W' - ( writeHWClock ) ? "W\n" : -#endif - data = "\n"; - int len = strlen(data); - int total_written = trigger.writeBlock(data,len); - if ( total_written != len ) { + if ( trigger.writeBlock("\n",2) != 2 ) { QMessageBox::critical( 0, QObject::tr( "Out of Space" ), QObject::tr( "Unable to schedule alarm.\nFree some memory and try again." ) ); trigger.close(); -- cgit v0.9.0.2