summaryrefslogtreecommitdiffstats
path: root/korganizer/korgac/koalarmclient.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/korgac/koalarmclient.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korganizer/korgac/koalarmclient.cpp')
-rw-r--r--korganizer/korgac/koalarmclient.cpp60
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() + ")";
}