Changeset 17cb895 for src


Ignore:
Timestamp:
02/02/10 10:38:32 (12 years ago)
Author:
hanzes <hanzes@…>
Branches:
master, qt5
Children:
d29ee50
Parents:
ba48d2f
Message:

Alarm modifications

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/alarm/alarm.cpp

    rba48d2f r17cb895  
    77#include <QFileInfo>
    88
    9 #include <dbus-1.0/dbus/dbus-protocol.h>
     9//#include <dbus-1.0/dbus/dbus-protocol.h>
    1010
    1111int Alarm::addAlarm(int aEventId, const QDateTime &aDateTime)
     
    2323
    2424    /* Use absolute time triggering */
    25     eve->alarm_time = time(0) + 5; //aDateTime.toTime_t();
     25    eve->alarm_time = aDateTime.toTime_t();
    2626    eve->flags = ALARM_EVENT_BOOT;
    2727
  • src/app/alarmdbus.h

    rba48d2f r17cb895  
    1 #ifndef SINGLE_INSTANCE_H
    2 #define SINGLE_INSTANCE_H
     1#ifndef ALARM_DBUS_H
     2#define ALARM_DBUS_H
    33
    44#include <QObject>
     
    2222
    2323
    24 #endif // SINGLE_INSTANCE_H
     24#endif // ALARM_DBUS_H
  • src/app/alarmdbusadaptor.cpp

    rba48d2f r17cb895  
    1 /*
    2  * This file was generated by dbusxml2cpp version 0.6
    3  * Command line was: dbusxml2cpp -c CarAdaptor -a car_adaptor_p.h:car_adaptor.cpp car.xml
    4  *
    5  * dbusxml2cpp is Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
    6  *
    7  * This is an auto-generated file.
    8  * Do not edit! All changes made to it will be lost.
    9  */
    101
    112#include "alarmdbusadaptorp.h"
     
    189#include <QtCore/QVariant>
    1910
    20 /*
    21  * Implementation of adaptor class CarAdaptor
    22  */
    2311
    2412AlarmDBusAdaptor::AlarmDBusAdaptor(QObject *parent)
     
    3624void AlarmDBusAdaptor::Alarm(int aEventId)
    3725{
    38     // handle method call com.trolltech.Examples.CarInterface.accelerate
    3926    QMetaObject::invokeMethod(parent(), "Alarm",Q_ARG(int, aEventId));
    4027}
  • src/app/alarmdbusadaptorp.h

    rba48d2f r17cb895  
    1 /*
    2  * This file was generated by dbusxml2cpp version 0.6
    3  * Command line was: dbusxml2cpp -c CarAdaptor -a car_adaptor_p.h:car_adaptor.cpp car.xml
    4  *
    5  * dbusxml2cpp is Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
    6  *
    7  * This is an auto-generated file.
    8  * This file may have been hand-edited. Look for HAND-EDIT comments
    9  * before re-generating it.
    10  */
    11 
    121#ifndef ALARM_DBUS_ADAPTOR_P_H
    132#define ALARM_DBUS_ADAPTOR_P_H
     
    2514QT_END_NAMESPACE
    2615
    27 /*
    28  * Adaptor class for interface com.trolltech.Examples.CarInterface
    29  */
     16
    3017class AlarmDBusAdaptor: public QDBusAbstractAdaptor
    3118{
Note: See TracChangeset for help on using the changeset viewer.