- Timestamp:
- 10/17/12 20:49:16 (10 years ago)
- Branches:
- master, qt5
- Children:
- 908b4ce
- Parents:
- 95257a6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/main.cpp
r95257a6 r8bd618c 45 45 QCoreApplication::setApplicationName("ConfClerk"); 46 46 QCoreApplication::setApplicationVersion(VERSION); 47 48 QWidget *window;49 window = new MainWindow;50 47 48 QWidget* window = new MainWindow; 51 49 52 50 #ifdef MAEMO … … 60 58 if( connection.registerService("at.priv.toastfreeware.confclerk") == false) 61 59 { 62 if(argc>1)60 if(argc==3) 63 61 { 64 62 QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk", … … 66 64 "at.priv.toastfreeware.confclerk.AlarmInterface", 67 65 connection); 68 interface->call("Alarm",atoi(argv[1]));66 interface->call("Alarm",atoi(argv[2])); 69 67 return 0; 70 68 } 71 69 } 72 70 } 71 #endif 73 72 74 if(argc > 1) 75 { 76 EventDialog dialog(atoi(argv[1]), window); 73 // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm) 74 if (argc == 3) { 75 QString conferenceIdStr = argv[1]; 76 QString eventIdStr = argv[2]; 77 EventDialog dialog(conferenceIdStr.toInt(), eventIdStr.toInt(), window); 77 78 dialog.exec(); 78 79 } 79 #endif80 81 80 window->show(); 82 81
Note: See TracChangeset
for help on using the changeset viewer.