Alarm Class Reference

#include <alarm.h>

List of all members.

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
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


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 64 of file alarm.h.

AlarmType Alarm::alarmType (  )  const [inline]

Definition at line 68 of file alarm.h.

int Alarm::ID (  )  const [inline]

Definition at line 70 of file alarm.h.

bool Alarm::isDaily (  )  const [inline]

Definition at line 62 of file alarm.h.

bool Alarm::isEnabled (  )  const [inline]

Definition at line 61 of file alarm.h.

QDateTime Alarm::nextAlarm ( bool  ignoreEnable = false  )  const

bool Alarm::operator!= ( const Alarm x  )  const [inline]

Definition at line 93 of file alarm.h.

bool Alarm::operator== ( const Alarm x  )  const [inline]

Definition at line 82 of file alarm.h.

References m_daily, m_enabled, m_ID, m_stationID, m_time, m_type, m_volumePreset, and m_weekdayMask.

void Alarm::setAlarmType ( AlarmType  t  )  [inline]

Definition at line 79 of file alarm.h.

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

Definition at line 73 of file alarm.h.

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

Definition at line 75 of file alarm.h.

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

Definition at line 72 of file alarm.h.

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

Definition at line 78 of file alarm.h.

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

Definition at line 76 of file alarm.h.

void Alarm::setVolumePreset ( float  v  )  [inline]

Definition at line 77 of file alarm.h.

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

Definition at line 74 of file alarm.h.

const QString& Alarm::stationID (  )  const [inline]

Definition at line 66 of file alarm.h.

float Alarm::volumePreset (  )  const [inline]

Definition at line 67 of file alarm.h.

int Alarm::weekdayMask (  )  const [inline]

Definition at line 63 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 51 of file alarm.h.

Referenced by operator==().

int Alarm::m_LastID [static, protected]

Definition at line 53 of file alarm.h.

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:

Generated on Tue Jun 2 19:19:59 2009 for kradio4 by  doxygen 1.5.8