Changeset ff9a2cb


Ignore:
Timestamp:
07/15/11 01:00:49 (10 years ago)
Author:
gregor herrmann <gregoa@…>
Branches:
master, qt5
Children:
d785a93
Parents:
664e8bd
Message:

Show event title instead of id in alarms.

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.cpp

    r664e8bd rff9a2cb  
    3030//#include <dbus-1.0/dbus/dbus-protocol.h>
    3131
    32 int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
     32int Alarm::addAlarm(int aEventId, QString aEventTitle, const QDateTime &aDateTime)
    3333{
    3434    cookie_t cookie = 0;
     
    4141
    4242    /* for Deleting purposes */
    43     alarm_event_set_message(eve, QString::number(aEventId).toLocal8Bit().data());
     43    // ?!
     44    //alarm_event_set_message(eve, QString::number(aEventId).toLocal8Bit().data());
     45    alarm_event_set_message(eve, aEventTitle.toLocal8Bit().data());
    4446
    4547    /* Use absolute time triggering */
  • src/alarm/alarm.h

    r664e8bd rff9a2cb  
    3737        Alarm() {}
    3838        ~Alarm() {}
    39         int addAlarm(int aEventId, const QDateTime &aDateTime);
     39        int addAlarm(int aEventId, QString aEventTitle, const QDateTime &aDateTime);
    4040        void deleteAlarm(int aEventId);
    4141        static bool hasEventAlarm(int aEventId);
  • src/gui/eventdialog.cpp

    r664e8bd rff9a2cb  
    118118        // add alarm to the 'alarmd'
    119119        Alarm alarm;
    120         int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10));
     120        int cookie = alarm.addAlarm(event.id(),event.title(),QDateTime::currentDateTime().addSecs(10));
    121121#endif /* MAEMO */
    122122    }
  • src/mvc/treeview.cpp

    r664e8bd rff9a2cb  
    116116                    Alarm alarm;
    117117                    //int cookie = alarm.addAlarm(event.id(),QDateTime::currentDateTime().addSecs(10)); // testing
    118                     int cookie = alarm.addAlarm(event.id(),event.start().addSecs(-15*60)); // 15 minutes before real start
     118                    int cookie = alarm.addAlarm(event.id(),event.title(),event.start().addSecs(-15*60)); // 15 minutes before real start
    119119#endif /* MAEMO */
    120120                }
Note: See TracChangeset for help on using the changeset viewer.