diff options
Diffstat (limited to 'korganizer/korgac/koalarmclient.cpp')
-rw-r--r-- | korganizer/korgac/koalarmclient.cpp | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/korganizer/korgac/koalarmclient.cpp b/korganizer/korgac/koalarmclient.cpp index c4ef2de82..a4298d7aa 100644 --- a/korganizer/korgac/koalarmclient.cpp +++ b/korganizer/korgac/koalarmclient.cpp @@ -37,28 +37,28 @@ #include <kapplication.h> #include <kwin.h> -#include <qpushbutton.h> +#include <tqpushbutton.h> -KOAlarmClient::KOAlarmClient( QObject *parent, const char *name ) - : DCOPObject( "ac" ), QObject( parent, name ), mDialog( 0 ) +KOAlarmClient::KOAlarmClient( TQObject *parent, const char *name ) + : DCOPObject( "ac" ), TQObject( parent, name ), mDialog( 0 ) { kdDebug(5890) << "KOAlarmClient::KOAlarmClient()" << endl; mDocker = new AlarmDockWindow; mDocker->show(); - connect( this, SIGNAL( reminderCount( int ) ), mDocker, SLOT( slotUpdate( int ) ) ); - connect( mDocker, SIGNAL( quitSignal() ), SLOT( slotQuit() ) ); + connect( this, TQT_SIGNAL( reminderCount( int ) ), mDocker, TQT_SLOT( slotUpdate( int ) ) ); + connect( mDocker, TQT_SIGNAL( quitSignal() ), TQT_SLOT( slotQuit() ) ); KConfig c( locate( "config", "korganizerrc" ) ); c.setGroup( "Time & Date" ); - QString tz = c.readEntry( "TimeZoneId" ); + TQString tz = c.readEntry( "TimeZoneId" ); kdDebug(5890) << "TimeZone: " << tz << endl; mCalendar = new CalendarResources( tz ); mCalendar->readConfig(); mCalendar->load(); - connect( &mCheckTimer, SIGNAL( timeout() ), SLOT( checkAlarms() ) ); + connect( &mCheckTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( checkAlarms() ) ); KConfig *config = kapp->config(); config->setGroup( "Alarms" ); @@ -72,10 +72,10 @@ KOAlarmClient::KOAlarmClient( QObject *parent, const char *name ) int numReminders = config->readNumEntry( "Reminders", 0 ); for ( int i=1; i<=numReminders; ++i ) { - QString group( QString( "Incidence-%1" ).arg( i ) ); + TQString group( TQString( "Incidence-%1" ).arg( i ) ); config->setGroup( group ); - QString uid = config->readEntry( "UID" ); - QDateTime dt = config->readDateTimeEntry( "RemindAt" ); + TQString uid = config->readEntry( "UID" ); + TQDateTime dt = config->readDateTimeEntry( "RemindAt" ); if ( !uid.isEmpty() ) createReminder( mCalendar->incidence( uid ), dt ); config->deleteGroup( group ); @@ -104,32 +104,32 @@ void KOAlarmClient::checkAlarms() cfg->setGroup( "General" ); if ( !cfg->readBoolEntry( "Enabled", true ) ) return; - QDateTime from = mLastChecked.addSecs( 1 ); - mLastChecked = QDateTime::currentDateTime(); + TQDateTime from = mLastChecked.addSecs( 1 ); + mLastChecked = TQDateTime::currentDateTime(); kdDebug(5891) << "Check: " << from.toString() << " - " << mLastChecked.toString() << endl; - QValueList<Alarm *> alarms = mCalendar->alarms( from, mLastChecked ); + TQValueList<Alarm *> alarms = mCalendar->alarms( from, mLastChecked ); - QValueList<Alarm *>::ConstIterator it; + TQValueList<Alarm *>::ConstIterator it; for( it = alarms.begin(); it != alarms.end(); ++it ) { kdDebug(5891) << "REMINDER: " << (*it)->parent()->summary() << endl; Incidence *incidence = mCalendar->incidence( (*it)->parent()->uid() ); - createReminder( incidence, QDateTime::currentDateTime() ); + createReminder( incidence, TQDateTime::currentDateTime() ); } } -void KOAlarmClient::createReminder( KCal::Incidence *incidence, QDateTime dt ) +void KOAlarmClient::createReminder( KCal::Incidence *incidence, TQDateTime dt ) { if ( !incidence ) return; if ( !mDialog ) { mDialog = new AlarmDialog(); - connect( mDialog, SIGNAL(reminderCount(int)), mDocker, SLOT(slotUpdate(int)) ); - connect( mDocker, SIGNAL(suspendAllSignal()), mDialog, SLOT(suspendAll()) ); - connect( mDocker, SIGNAL(dismissAllSignal()), mDialog, SLOT(dismissAll()) ); - connect( this, SIGNAL( saveAllSignal() ), mDialog, SLOT( slotSave() ) ); + connect( mDialog, TQT_SIGNAL(reminderCount(int)), mDocker, TQT_SLOT(slotUpdate(int)) ); + connect( mDocker, TQT_SIGNAL(suspendAllSignal()), mDialog, TQT_SLOT(suspendAll()) ); + connect( mDocker, TQT_SIGNAL(dismissAllSignal()), mDialog, TQT_SLOT(dismissAll()) ); + connect( this, TQT_SIGNAL( saveAllSignal() ), mDialog, TQT_SLOT( slotSave() ) ); } mDialog->addIncidence( incidence, dt ); @@ -175,27 +175,27 @@ void KOAlarmClient::dumpDebug() KConfig *cfg = kapp->config(); cfg->setGroup( "Alarms" ); - QDateTime lastChecked = cfg->readDateTimeEntry( "CalendarsLastChecked" ); + TQDateTime lastChecked = cfg->readDateTimeEntry( "CalendarsLastChecked" ); kdDebug(5890) << "Last Check: " << lastChecked << endl; } -QStringList KOAlarmClient::dumpAlarms() +TQStringList KOAlarmClient::dumpAlarms() { - QDateTime start = QDateTime( QDateTime::currentDateTime().date(), - QTime( 0, 0 ) ); - QDateTime end = start.addDays( 1 ).addSecs( -1 ); + TQDateTime start = TQDateTime( TQDateTime::currentDateTime().date(), + TQTime( 0, 0 ) ); + TQDateTime end = start.addDays( 1 ).addSecs( -1 ); - QStringList lst; + TQStringList lst; // Don't translate, this is for debugging purposes. - lst << QString("AlarmDeamon::dumpAlarms() from ") + start.toString()+ " to " + + lst << TQString("AlarmDeamon::dumpAlarms() from ") + start.toString()+ " to " + end.toString(); - QValueList<Alarm*> alarms = mCalendar->alarms( start, end ); - QValueList<Alarm*>::ConstIterator it; + TQValueList<Alarm*> alarms = mCalendar->alarms( start, end ); + TQValueList<Alarm*>::ConstIterator it; for( it = alarms.begin(); it != alarms.end(); ++it ) { Alarm *a = *it; - lst << QString(" ") + a->parent()->summary() + " (" + lst << TQString(" ") + a->parent()->summary() + " (" + a->time().toString() + ")"; } |