- Timestamp:
- 01/19/10 14:45:57 (13 years ago)
- Branches:
- master, qt5
- Children:
- cfd615d
- Parents:
- 0c658c1
- Location:
- src/mvc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/mvc.pro
r0c658c1 r6bd729b 1 include(../global.pri) 1 2 TEMPLATE = lib 2 3 TARGET = mvc … … 10 11 DEPENDPATH += . ../orm 11 12 TARGETDEPS += $$DESTDIR/liborm.a 13 maemo { 14 LIBS += -L$$DESTDIR -lqalarm -lalarm 15 INCLUDEPATH += ../alarm 16 DEPENDPATH += ../alarm 17 TARGETDEPS += $$DESTDIR/libqalarm.a 18 } 12 19 13 20 HEADERS += \ -
src/mvc/treeview.cpp
r0c658c1 r6bd729b 5 5 #include "event.h" 6 6 #include "eventmodel.h" 7 8 #ifdef MAEMO 9 #include <alarm.h> 10 #endif 7 11 8 12 #include <QDebug> … … 63 67 static_cast<Event*>(aIndex.internalPointer())->setHasAlarm(false); // list of events 64 68 event.setHasAlarm(false); // update DB 69 #ifdef MAEMO 70 // remove alarm from the 'alarmd' alrms list 71 Alarm alarm; 72 alarm.deleteAlarm(event.id()); 73 // TODO: test if removing was successfull 74 #endif /* MAEMO */ 65 75 } 66 76 else … … 68 78 static_cast<Event*>(aIndex.internalPointer())->setHasAlarm(true); // list of events 69 79 event.setHasAlarm(true); 80 #ifdef MAEMO 81 // add alarm to the 'alarmd' 82 Alarm alarm; 83 int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); 84 qDebug() << "cookie: " << cookie; 85 #endif /* MAEMO */ 70 86 } 71 87 qDebug() << " ALARM [" << qVariantValue<QString>(aIndex.data()) << "] -> " << event.hasAlarm();
Note: See TracChangeset
for help on using the changeset viewer.