kradio4  r778
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Alarm Class Reference

#include <alarm.h>

Public Types

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
 
const QString & recordingTemplate () 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)
 
void setRecordingTemplate (const QString &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
 
QString m_recordingTemplate
 
int m_ID
 

Static Protected Attributes

static int m_LastID
 

Detailed Description

Author
Martin Witte

Definition at line 33 of file alarm.h.

Member Enumeration Documentation

Enumerator
StartPlaying 
StopPlaying 
StartRecording 
StopRecording 

Definition at line 37 of file alarm.h.

Constructor & Destructor Documentation

Alarm::Alarm ( )
Alarm::Alarm ( const QDateTime &  time,
bool  daily,
bool  enabled 
)
Alarm::Alarm ( const Alarm )
Alarm::~Alarm ( )

Member Function Documentation

QDateTime Alarm::alarmTime ( ) const
inline

Definition at line 65 of file alarm.h.

AlarmType Alarm::alarmType ( ) const
inline

Definition at line 69 of file alarm.h.

int Alarm::ID ( ) const
inline

Definition at line 72 of file alarm.h.

bool Alarm::isDaily ( ) const
inline

Definition at line 63 of file alarm.h.

bool Alarm::isEnabled ( ) const
inline

Definition at line 62 of file alarm.h.

QDateTime Alarm::nextAlarm ( bool  ignoreEnable = false) const
bool Alarm::operator!= ( const Alarm x) const
inline

Definition at line 97 of file alarm.h.

bool Alarm::operator== ( const Alarm x) const
inline
const QString& Alarm::recordingTemplate ( ) const
inline

Definition at line 70 of file alarm.h.

void Alarm::setAlarmType ( AlarmType  t)
inline

Definition at line 81 of file alarm.h.

void Alarm::setDaily ( bool  d = true)
inline

Definition at line 75 of file alarm.h.

void Alarm::setDate ( const QDate &  d)
inline

Definition at line 77 of file alarm.h.

void Alarm::setEnabled ( bool  enable = true)
inline

Definition at line 74 of file alarm.h.

void Alarm::setRecordingTemplate ( const QString &  t)
inline

Definition at line 82 of file alarm.h.

void Alarm::setStationID ( const QString &  id)
inline

Definition at line 80 of file alarm.h.

void Alarm::setTime ( const QTime &  d)
inline

Definition at line 78 of file alarm.h.

void Alarm::setVolumePreset ( float  v)
inline

Definition at line 79 of file alarm.h.

void Alarm::setWeekdayMask ( int  m = 0x7F)
inline

Definition at line 76 of file alarm.h.

const QString& Alarm::stationID ( ) const
inline

Definition at line 67 of file alarm.h.

float Alarm::volumePreset ( ) const
inline

Definition at line 68 of file alarm.h.

int Alarm::weekdayMask ( ) const
inline

Definition at line 64 of file alarm.h.

Member Data Documentation

bool Alarm::m_daily
protected

Definition at line 42 of file alarm.h.

Referenced by operator==().

bool Alarm::m_enabled
protected

Definition at line 45 of file alarm.h.

Referenced by operator==().

int Alarm::m_ID
protected

Definition at line 52 of file alarm.h.

Referenced by operator==().

int Alarm::m_LastID
staticprotected

Definition at line 54 of file alarm.h.

QString Alarm::m_recordingTemplate
protected

Definition at line 50 of file alarm.h.

Referenced by operator==().

QString Alarm::m_stationID
protected

Definition at line 46 of file alarm.h.

Referenced by operator==().

QDateTime Alarm::m_time
protected

Definition at line 40 of file alarm.h.

Referenced by operator==().

AlarmType Alarm::m_type
protected

Definition at line 49 of file alarm.h.

Referenced by operator==().

float Alarm::m_volumePreset
protected

Definition at line 47 of file alarm.h.

Referenced by operator==().

int Alarm::m_weekdayMask
protected

Definition at line 43 of file alarm.h.

Referenced by operator==().


The documentation for this class was generated from the following file: