Changeset 21e0eb1 for src/app/main.cpp
- Timestamp:
- 10/17/12 23:19:41 (10 years ago)
- Branches:
- master, qt5
- Children:
- cdbdad7
- Parents:
- 3ecfbf0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/main.cpp
r3ecfbf0 r21e0eb1 25 25 #include "application.h" 26 26 27 #ifdef MAEMO28 //#include "alarmdialog.h"29 #include "alarmdbus.h"30 #include "alarmdbusadaptorp.h"31 #endif /* MAEMO */32 33 34 27 int main(int argc, char *argv[]) 35 28 { … … 48 41 QWidget* window = new MainWindow; 49 42 50 #ifdef MAEMO51 // Alarm Dbus52 CAlarmDBus *alarmDBus = new CAlarmDBus(window);53 new AlarmDBusAdaptor(alarmDBus);54 QDBusConnection connection = QDBusConnection::sessionBus();55 56 if(connection.registerObject("/ConfClerk", alarmDBus) == true)57 {58 if( connection.registerService("at.priv.toastfreeware.confclerk") == false)59 {60 if(argc==3)61 {62 QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk",63 "/ConfClerk",64 "at.priv.toastfreeware.confclerk.AlarmInterface",65 connection);66 interface->call("Alarm",atoi(argv[2]));67 return 0;68 }69 }70 }71 #endif72 73 43 // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm) 74 44 if (argc == 3) {
Note: See TracChangeset
for help on using the changeset viewer.