Changeset 21e0eb1 for src/app/main.cpp


Ignore:
Timestamp:
10/17/12 23:19:41 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
cdbdad7
Parents:
3ecfbf0
Message:

Rip out unused DBUS stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/app/main.cpp

    r3ecfbf0 r21e0eb1  
    2525#include "application.h"
    2626
    27 #ifdef MAEMO
    28 //#include "alarmdialog.h"
    29 #include "alarmdbus.h"
    30 #include "alarmdbusadaptorp.h"
    31 #endif /* MAEMO */
    32 
    33 
    3427int main(int argc, char *argv[])
    3528{
     
    4841    QWidget* window = new MainWindow;
    4942
    50 #ifdef MAEMO
    51     // Alarm Dbus
    52     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 #endif
    72 
    7343    // If we were started with the parameters confernceid and eventid, show the corresponding event (alarm)
    7444    if (argc == 3) {
Note: See TracChangeset for help on using the changeset viewer.