Changeset d4a8bbf for src/alarm


Ignore:
Timestamp:
01/20/10 16:27:11 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
a5c1179
Parents:
f2ef735
Message:

MAEMO: work on alarm

  • snooze alarm
  • cancel alarm
  • run application which automatically display Event dialog for given Event ID
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.cpp

    rf2ef735 rd4a8bbf  
    22
    33#include <QDateTime>
     4
     5#include <QApplication>
     6#include <QDir>
    47
    58int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
     
    1922    /* Add exec command action */
    2023    action = alarm_event_add_actions(event, 1);
    21     QString command = QString("/home/maemo/work/fosdem-maemo/bin/fosdem %1").arg(QString::number(aEventId));
     24    QString command = QDir::currentPath() + "/" + *qApp->argv() + QString(" %1").arg(QString::number(aEventId));
    2225    alarm_action_set_exec_command(action, command.toLocal8Bit().data());
    2326    action->flags |= ALARM_ACTION_TYPE_EXEC;
Note: See TracChangeset for help on using the changeset viewer.