27 #include <tdeaboutdata.h>
28 #include <tdeapplication.h>
30 #include <tdelocale.h>
31 #include <tdecmdlineargs.h>
32 #include <tdeconfig.h>
33 #include <kstandarddirs.h>
35 #include "alarmdialog.h"
37 int main( int argc, char **argv)
39 TDEAboutData aboutData( "testkabc",I18N_NOOP( "TestKabc"), "0.1");
40 TDECmdLineArgs::init(argc,argv,&aboutData);
44 TDEConfig c( locate( "config", "korganizerrc" ) );
45 c.setGroup( "Time & Date" );
46 TQString tz = c.readEntry( "TimeZoneId" );
51 TQDateTime now = TQDateTime::currentDateTime();
56 a-> setAudioAlarm( "/data/kde/share/apps/korganizer/sounds/spinout.wav" );
80 t2-> setSummary( "Something big is due today" );
98 AlarmDialog dlg( mCalendar, 0 );
99 app.setMainWidget( &dlg );
100 dlg.addIncidence( e2, TQDateTime::currentDateTime().addSecs( 60 ),
102 dlg.addIncidence( t1, TQDateTime::currentDateTime().addSecs( 300 ),
103 TQString( "THIS IS DISPLAY TEXT" ) );
104 dlg.addIncidence( e4, TQDateTime::currentDateTime().addSecs( 120 ),
105 TQString( "Fred and Barney get cloned" ) );
106 dlg.addIncidence( e3, TQDateTime::currentDateTime().addSecs( 240 ),
108 dlg.addIncidence( e1, TQDateTime::currentDateTime().addSecs( 180 ),
110 dlg.addIncidence( t2, TQDateTime::currentDateTime().addSecs( 600 ),
111 TQString( "THIS IS DISPLAY TEXT" ) );
112 dlg.addIncidence( t3, TQDateTime::currentDateTime().addSecs( 360 ),
115 dlg.eventNotification();
void setAudioAlarm(const TQString &audioFile=TQString())
bool addEvent(Event *event)
void setDtEnd(const TQDateTime &dtEnd)
void setSummary(const TQString &summary)
virtual void setDtStart(const TQDateTime &dtStart)
void setDtDue(const TQDateTime &dtDue, bool first=false)
|