summaryrefslogtreecommitdiffstats
path: root/kradio3/src/include/alarm.h
diff options
context:
space:
mode:
Diffstat (limited to 'kradio3/src/include/alarm.h')
-rw-r--r--kradio3/src/include/alarm.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/kradio3/src/include/alarm.h b/kradio3/src/include/alarm.h
index 45cb397..14b4abc 100644
--- a/kradio3/src/include/alarm.h
+++ b/kradio3/src/include/alarm.h
@@ -22,7 +22,7 @@
#include <config.h>
#endif
-#include <qdatetime.h>
+#include <tqdatetime.h>
#include <vector>
/**
@@ -36,13 +36,13 @@ public:
enum AlarmType { StartPlaying, StopPlaying, StartRecording, StopRecording };
protected:
- QDateTime m_time;
+ TQDateTime m_time;
bool m_daily;
int m_weekdayMask;
bool m_enabled;
- QString m_stationID;
+ TQString m_stationID;
float m_volumePreset; // < 0: disabled
AlarmType m_type;
@@ -53,16 +53,16 @@ protected:
public:
Alarm();
- Alarm(const QDateTime &time, bool daily, bool enabled);
+ Alarm(const TQDateTime &time, bool daily, bool enabled);
Alarm(const Alarm &);
~Alarm();
bool isEnabled() const { return m_enabled; }
bool isDaily() const { return m_daily; }
int weekdayMask() const { return m_weekdayMask; }
- QDateTime alarmTime () const { return m_time; }
- QDateTime nextAlarm (bool ignoreEnable = false) const;
- const QString &stationID () const { return m_stationID; }
+ TQDateTime alarmTime () const { return m_time; }
+ TQDateTime nextAlarm (bool ignoreEnable = false) const;
+ const TQString &stationID () const { return m_stationID; }
float volumePreset () const { return m_volumePreset; }
AlarmType alarmType() const { return m_type; }
@@ -71,10 +71,10 @@ public:
void setEnabled (bool enable = true) { m_enabled = enable; }
void setDaily (bool d = true) { m_daily = d; }
void setWeekdayMask(int m = 0x7F) { m_weekdayMask = m; }
- void setDate (const QDate &d) { m_time.setDate(d); }
- void setTime (const QTime &d) { m_time.setTime(d); }
+ void setDate (const TQDate &d) { m_time.setDate(d); }
+ void setTime (const TQTime &d) { m_time.setTime(d); }
void setVolumePreset(float v) { m_volumePreset = v; }
- void setStationID(const QString &id) { m_stationID = id;}
+ void setStationID(const TQString &id) { m_stationID = id;}
void setAlarmType(AlarmType t) { m_type = t; }