Changeset 11d3189 in confclerk_git for src/alarm/alarm.h


Ignore:
Timestamp:
03/21/12 21:42:02 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
a9eca6f
Parents:
9a896cc
Message:

Hopefully fixed bug #38: As the alarm message was used to identify the event by setting it to the eventId and in r1359 the alarm message was changed to show the event title, alarms could not be deleted anymore. Therefore, two alarm attributes (int values) were introduced with this commit: "conferenceId" and "eventId" to identify the event and therefore, deleting alarms should work again. Additionally a second (not reported) bug was fixed: Activating an alarm in the treeview set the alarm to the current time plus 10 seconds.

However, I don't know for sure whether this commit fixed bug #38 becaus I don't have a maemo device to test it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.h

    r9a896cc r11d3189  
    2929}
    3030
    31 #define APPID "fosdem-alarm"
     31#define APPID "confclerk-alarm"
     32const int PRE_EVENT_ALARM_SEC = -15*60; // alarm goes off 15 minutes before start of event
    3233
    3334class Alarm : public QObject
     
    3738        Alarm() {}
    3839        ~Alarm() {}
    39         int addAlarm(int aEventId, QString aEventTitle, const QDateTime &aDateTime);
    40         void deleteAlarm(int aEventId);
    41         static bool hasEventAlarm(int aEventId);
    42     signals:
    43         void alarmAdded(int aEventId);
    44         void addAlarmFailed(int aEventId);
    45         void alarmDeleted(int aEventId);
    46         void deleteAlarmFailed(int aEventId);
     40        int addAlarm(int conferenceId, int eventId, QString eventTitle, const QDateTime& alarmDateTime);
     41        void deleteAlarm(int conferenceId, int eventId);
    4742};
    4843
Note: See TracChangeset for help on using the changeset viewer.