- QWidget* window = new MainWindow;
-
-#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==3)
- {
- QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk",
- "/ConfClerk",
- "at.priv.toastfreeware.confclerk.AlarmInterface",
- connection);
- interface->call("Alarm",atoi(argv[2]));
- return 0;
- }
- }
- }
-#endif