-#ifdef MAEMO
- // Alarm Dbus
- CAlarmDBus *alarmDBus = new CAlarmDBus(window);
- new AlarmDBusAdaptor(alarmDBus);
- QDBusConnection connection = QDBusConnection::sessionBus();
-
- if(connection.registerObject("/ConfClerk", alarmDBus) == true)
- {
- if( connection.registerService("at.priv.toastfreeware.confclerk") == false)
- {
- if(argc>1)
- {
- QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk",
- "/ConfClerk",
- "at.priv.toastfreeware.confclerk.AlarmInterface",
- connection);
- interface->call("Alarm",atoi(argv[1]));
- return 0;
- }
- }
- }
-
- if(argc > 1)
- {
- EventDialog dialog(atoi(argv[1]),window);
+ // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm)
+ if (argc >= 3) {
+ QString conferenceIdStr = argv[1];
+ QString eventIdStr = argv[2];
+ EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), &window);