#include <alarm.h>
Public Types | |
StartPlaying | |
StopPlaying | |
StartRecording | |
StopRecording | |
enum | AlarmType { StartPlaying, StopPlaying, StartRecording, StopRecording } |
Public Member Functions | |
Alarm () | |
Alarm (const QDateTime &time, bool daily, bool enabled) | |
Alarm (const Alarm &) | |
~Alarm () | |
bool | isEnabled () const |
bool | isDaily () const |
int | weekdayMask () const |
QDateTime | alarmTime () const |
QDateTime | nextAlarm (bool ignoreEnable=false) const |
const QString & | stationID () const |
float | volumePreset () const |
AlarmType | alarmType () const |
int | ID () const |
void | setEnabled (bool enable=true) |
void | setDaily (bool d=true) |
void | setWeekdayMask (int m=0x7F) |
void | setDate (const QDate &d) |
void | setTime (const QTime &d) |
void | setVolumePreset (float v) |
void | setStationID (const QString &id) |
void | setAlarmType (AlarmType t) |
bool | operator== (const Alarm &x) const |
bool | operator!= (const Alarm &x) const |
Protected Attributes | |
QDateTime | m_time |
bool | m_daily |
int | m_weekdayMask |
bool | m_enabled |
QString | m_stationID |
float | m_volumePreset |
AlarmType | m_type |
int | m_ID |
Static Protected Attributes | |
static int | m_LastID |
Definition at line 32 of file alarm.h.
enum Alarm::AlarmType |
Alarm::Alarm | ( | ) |
Alarm::Alarm | ( | const QDateTime & | time, | |
bool | daily, | |||
bool | enabled | |||
) |
Alarm::Alarm | ( | const Alarm & | ) |
Alarm::~Alarm | ( | ) |
QDateTime Alarm::alarmTime | ( | ) | const [inline] |
AlarmType Alarm::alarmType | ( | ) | const [inline] |
bool Alarm::isEnabled | ( | ) | const [inline] |
QDateTime Alarm::nextAlarm | ( | bool | ignoreEnable = false |
) | const |
bool Alarm::operator!= | ( | const Alarm & | x | ) | const [inline] |
bool Alarm::operator== | ( | const Alarm & | x | ) | const [inline] |
Definition at line 81 of file alarm.h.
References m_daily, m_enabled, m_ID, m_stationID, m_time, m_type, m_volumePreset, and m_weekdayMask.
Referenced by operator!=().
void Alarm::setAlarmType | ( | AlarmType | t | ) | [inline] |
void Alarm::setDaily | ( | bool | d = true |
) | [inline] |
void Alarm::setDate | ( | const QDate & | d | ) | [inline] |
void Alarm::setEnabled | ( | bool | enable = true |
) | [inline] |
void Alarm::setStationID | ( | const QString & | id | ) | [inline] |
void Alarm::setTime | ( | const QTime & | d | ) | [inline] |
void Alarm::setVolumePreset | ( | float | v | ) | [inline] |
void Alarm::setWeekdayMask | ( | int | m = 0x7F |
) | [inline] |
const QString& Alarm::stationID | ( | ) | const [inline] |
float Alarm::volumePreset | ( | ) | const [inline] |
int Alarm::weekdayMask | ( | ) | const [inline] |
bool Alarm::m_daily [protected] |
bool Alarm::m_enabled [protected] |
int Alarm::m_ID [protected] |
int Alarm::m_LastID [static, protected] |
QString Alarm::m_stationID [protected] |
QDateTime Alarm::m_time [protected] |
Definition at line 39 of file alarm.h.
Referenced by alarmTime(), operator==(), setDate(), and setTime().
AlarmType Alarm::m_type [protected] |
float Alarm::m_volumePreset [protected] |
Definition at line 46 of file alarm.h.
Referenced by operator==(), setVolumePreset(), and volumePreset().
int Alarm::m_weekdayMask [protected] |
Definition at line 42 of file alarm.h.
Referenced by operator==(), setWeekdayMask(), and weekdayMask().