qalarm.h 710 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef QALARM_H
  2. #define QALARM_H
  3. #include <QObject>
  4. class QAlarmPrivate;
  5. class QAlarm : public QObject
  6. {
  7. Q_OBJECT
  8. Q_CLASSINFO("Author", "Sebastiano Galazzo")
  9. Q_CLASSINFO("Email", "sebastiano.galazzo@gmail.com")
  10. Q_DECLARE_PRIVATE(QAlarm)
  11. public:
  12. explicit QAlarm(QObject *parent = 0);
  13. virtual ~QAlarm();
  14. enum Type {
  15. RepeatDaily
  16. };
  17. //int add(QString message, QAlarm::Type type);
  18. Q_INVOKABLE int add(QString message, int interval);
  19. signals:
  20. public slots:
  21. private:
  22. QAlarmPrivate *d; //pointer to implementation
  23. //private: // Friend class definitions
  24. //friend class QAlarmPrivate;
  25. };
  26. #endif // QALARM_H