- Timestamp:
- 10/17/12 23:19:41 (10 years ago)
- Branches:
- master, qt5
- Children:
- cdbdad7
- Parents:
- 3ecfbf0
- Location:
- src
- Files:
-
- 4 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/alarm/alarm.cpp
r3ecfbf0 r21e0eb1 27 27 28 28 #include <QDebug> 29 30 //#include "dbus-1.0/dbus/dbus-protocol.h"31 29 32 30 int Alarm::addAlarm(int conferenceId, int eventId, QString eventTitle, const QDateTime &alarmDateTime) { … … 65 63 alarmAction->flags |= ALARM_ACTION_EXEC_ADD_COOKIE; // adds assigned cookie at the end of command string 66 64 67 // // setup this action to be a "DBus command"68 // act->flags |= ALARM_ACTION_WHEN_RESPONDED;69 // act->flags |= ALARM_ACTION_TYPE_DBUS;70 //71 // // DBus params for this action72 // alarm_action_set_dbus_interface(act, "at.priv.toastfreeware.confclerk.AlarmInterface");73 // alarm_action_set_dbus_service(act, "at.priv.toastfreeware.confclerk");74 // alarm_action_set_dbus_path(act, "/ConfClerk");75 // alarm_action_set_dbus_name(act, "Alarm");76 //77 // // DBus arguments for the action78 // alarm_action_set_dbus_args(act, DBUS_TYPE_INT32, &aEventId, DBUS_TYPE_INVALID);79 80 // act->flags |= ALARM_ACTION_TYPE_EXEC;81 // alarm_action_set_exec_command(act, command.toLocal8Bit().data());82 // alarm_event_set_icon(eve, "fosdem");83 // alarm_event_set_title(eve, "ConfClerk");84 // adds assigned cookie at the end of command string85 // act->flags |= ALARM_ACTION_EXEC_ADD_COOKIE;86 87 65 /* Add stop button action */ 88 /* TODO: send a DBus message to remove that alarm from database */89 66 alarmAction = alarm_event_add_actions(alarmEvent, 1); 90 67 alarm_action_set_label(alarmAction, "Stop"); -
src/alarm/alarm.pro
r3ecfbf0 r21e0eb1 2 2 TARGET = qalarm 3 3 DESTDIR = ../bin 4 CONFIG += static qdbus5 QT += sql dbus4 CONFIG += static 5 QT += sql 6 6 QMAKE_CLEAN += ../bin/libqalarm.a 7 7 … … 18 18 ../orm \ 19 19 ../sql 20 21 22 -
src/app/app.pro
r3ecfbf0 r21e0eb1 5 5 QT += sql xml network 6 6 CONFIG(maemo5) { 7 QT += maemo5 dbus7 QT += maemo5 8 8 } 9 9 … … 18 18 DEPENDPATH += ../alarm 19 19 POST_TARGETDEPS += $$DESTDIR/libqalarm.a 20 HEADERS += alarmdbus.h \21 alarmdbusadaptorp.h22 SOURCES += alarmdbus.cpp \23 alarmdbusadaptor.cpp24 20 } 25 21 -
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.