MythTV  master
Public Member Functions | Private Attributes | List of all members
Event Class Reference

Event details. More...

#include <zmdefines.h>

Collaboration diagram for Event:
Collaboration graph
[legend]

Public Member Functions

 Event (int eventID, const QString &eventName, int monitorID, const QString &monitorName, const QDateTime &startTime, const QString &length)
 
 Event ()
 
int monitorID (void) const
 
int eventID (void) const
 
QString eventName (void) const
 
QString monitorName (void) const
 
QDateTime startTime (Qt::TimeSpec spec) const
 Returns time using specified Qt::TimeSpec. More...
 
QDateTime startTime (void) const
 Returns time with native Qt::TimeSpec (subject to revision). More...
 
QString length (void) const
 

Private Attributes

int m_monitorID
 
int m_eventID
 
QString m_eventName
 
QString m_monitorName
 
QString m_length
 
QDateTime m_startTime
 The start time is stored in local time interally since all uses are currently using local time and conversion to/from UTC would consume significant CPU cycles. More...
 

Detailed Description

Event details.

Definition at line 25 of file zmdefines.h.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( int  eventID,
const QString &  eventName,
int  monitorID,
const QString &  monitorName,
const QDateTime &  startTime,
const QString &  length 
)
inline

Definition at line 28 of file zmdefines.h.

◆ Event() [2/2]

Event::Event ( )
inline

Definition at line 43 of file zmdefines.h.

Member Function Documentation

◆ monitorID()

int Event::monitorID ( void  ) const
inline

Definition at line 45 of file zmdefines.h.

Referenced by ZMClient::getAnalyseFrame(), and ZMClient::getEventFrame().

◆ eventID()

int Event::eventID ( void  ) const
inline

Definition at line 47 of file zmdefines.h.

Referenced by ZMClient::getAnalyseFrame(), and ZMClient::getEventFrame().

◆ eventName()

QString Event::eventName ( void  ) const
inline

Definition at line 49 of file zmdefines.h.

◆ monitorName()

QString Event::monitorName ( void  ) const
inline

Definition at line 51 of file zmdefines.h.

◆ startTime() [1/2]

QDateTime Event::startTime ( Qt::TimeSpec  spec) const
inline

Returns time using specified Qt::TimeSpec.

Definition at line 54 of file zmdefines.h.

◆ startTime() [2/2]

QDateTime Event::startTime ( void  ) const
inline

Returns time with native Qt::TimeSpec (subject to revision).

Use only if the code using this functions properly with any timeSpec.

Definition at line 66 of file zmdefines.h.

◆ length()

QString Event::length ( void  ) const
inline

Definition at line 68 of file zmdefines.h.

Member Data Documentation

◆ m_monitorID

int Event::m_monitorID
private

Definition at line 71 of file zmdefines.h.

Referenced by monitorID().

◆ m_eventID

int Event::m_eventID
private

Definition at line 72 of file zmdefines.h.

Referenced by eventID().

◆ m_eventName

QString Event::m_eventName
private

Definition at line 73 of file zmdefines.h.

Referenced by eventName().

◆ m_monitorName

QString Event::m_monitorName
private

Definition at line 74 of file zmdefines.h.

Referenced by monitorName().

◆ m_length

QString Event::m_length
private

Definition at line 75 of file zmdefines.h.

Referenced by length().

◆ m_startTime

QDateTime Event::m_startTime
private

The start time is stored in local time interally since all uses are currently using local time and conversion to/from UTC would consume significant CPU cycles.

Definition at line 79 of file zmdefines.h.

Referenced by startTime().


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