27 #include <kaboutdata.h>
28 #include <kapplication.h>
31 #include <kcmdlineargs.h>
33 #include <kstandarddirs.h>
35 #include "alarmdialog.h"
37 int main( int argc, char **argv)
39 KAboutData aboutData( "testkabc",I18N_NOOP( "TestKabc"), "0.1");
40 KCmdLineArgs::init(argc,argv,&aboutData);
44 KConfig 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();
|