Rename DBus service. Hopefully successful.
authorgregor herrmann <gregoa@debian.org>
Thu, 23 Jun 2011 20:19:24 +0000 (20:19 +0000)
committergregor herrmann <gregoa@debian.org>
Thu, 23 Jun 2011 20:19:24 +0000 (20:19 +0000)
src/alarm/alarm.cpp
src/app/alarmdbus.h
src/app/alarmdbusadaptorp.h
src/app/main.cpp

index a8d3b5d..d5fa7fe 100644 (file)
@@ -54,7 +54,7 @@ int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
 
     /* Add exec command action */
     act = alarm_event_add_actions(eve, 1);
-    alarm_action_set_label(act, "FOSDEM'10");
+    alarm_action_set_label(act, "ConfClerk");
 
     QString command = QFileInfo(*qApp->argv()).absoluteFilePath() + QString(" %1").arg(QString::number(aEventId));
     qDebug() << "Setting alarm: " << command;
@@ -68,9 +68,9 @@ int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
 //    act->flags |= ALARM_ACTION_TYPE_DBUS;
 //
 //    // DBus params for this action
-//    alarm_action_set_dbus_interface(act, "org.fosdem.schedule.AlarmInterface");
-//    alarm_action_set_dbus_service(act, "org.fosdem.schedule");
-//    alarm_action_set_dbus_path(act, "/Fosdem");
+//    alarm_action_set_dbus_interface(act, "at.priv.toastfreeware.confclerk.AlarmInterface");
+//    alarm_action_set_dbus_service(act, "at.priv.toastfreeware.confclerk");
+//    alarm_action_set_dbus_path(act, "/ConfClerk");
 //    alarm_action_set_dbus_name(act, "Alarm");
 //
 //    // DBus arguments for the action
@@ -79,7 +79,7 @@ int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
     //    act->flags |= ALARM_ACTION_TYPE_EXEC;
     //     alarm_action_set_exec_command(act, command.toLocal8Bit().data());
     //    alarm_event_set_icon(eve, "fosdem");
-    //    alarm_event_set_title(eve, "FOSDEM'10");
+    //    alarm_event_set_title(eve, "ConfClerk");
     // adds assigned cookie at the end of command string
     //    act->flags |= ALARM_ACTION_EXEC_ADD_COOKIE;
 
index 043ce4f..41b0e00 100644 (file)
@@ -26,7 +26,7 @@
 class CAlarmDBus: public QObject
 {
     Q_OBJECT
-    Q_CLASSINFO("D-Bus Interface", "org.fosdem.schedule")
+    Q_CLASSINFO("D-Bus Interface", "at.priv.toastfreeware.confclerk")
 
 public:
        CAlarmDBus(QWidget * aParent);
index f134aca..5d73678 100644 (file)
@@ -36,9 +36,9 @@ QT_END_NAMESPACE
 class AlarmDBusAdaptor: public QDBusAbstractAdaptor
 {
     Q_OBJECT
-    Q_CLASSINFO("D-Bus Interface", "org.fosdem.schedule.AlarmInterface")
+    Q_CLASSINFO("D-Bus Interface", "at.priv.toastfreeware.confclerk.AlarmInterface")
     Q_CLASSINFO("D-Bus Introspection", ""
-"  <interface name=\"org.fosdem.schedule.AlarmInterface\" >\n"
+"  <interface name=\"at.priv.toastfreeware.confclerk.AlarmInterface\" >\n"
 "  <method name=\"Alarm\">\n"
 "        <arg name=\"aEventId\" type=\"i\" direction=\"in\"/>\n"
 "  </method>\n"
index aa29694..1dc940a 100644 (file)
@@ -53,15 +53,15 @@ int main(int argc, char *argv[])
     new AlarmDBusAdaptor(alarmDBus);
     QDBusConnection connection = QDBusConnection::sessionBus();
 
-    if(connection.registerObject("/Fosdem", alarmDBus) == true)
+    if(connection.registerObject("/ConfClerk", alarmDBus) == true)
     {
-       if( connection.registerService("org.fosdem.schedule") == false)
+       if( connection.registerService("at.priv.toastfreeware.confclerk") == false)
        {
                if(argc>1)
                {
-                       QDBusInterface *interface = new QDBusInterface("org.fosdem.schedule",
-                                                                      "/Fosdem",
-                                                                      "org.fosdem.schedule.AlarmInterface",
+                       QDBusInterface *interface = new QDBusInterface("at.priv.toastfreeware.confclerk",
+                                                                      "/ConfClerk",
+                                                                      "at.priv.toastfreeware.confclerk.AlarmInterface",
                                                                       connection);
                        interface->call("Alarm",atoi(argv[1]));
                        return 0;