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, QString eventName, int monitorID, QString monitorName, const QDateTime &startTime, QString length)
 
 Event ()=default
 
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 { -1 }
 
int m_eventID { -1 }
 
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 26 of file zmdefines.h.

Constructor & Destructor Documentation

◆ Event() [1/2]

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

Definition at line 29 of file zmdefines.h.

◆ Event() [2/2]

Event::Event ( )
default

Member Function Documentation

◆ monitorID()

int Event::monitorID ( void  ) const
inline

Definition at line 46 of file zmdefines.h.

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

◆ eventID()

int Event::eventID ( void  ) const
inline

Definition at line 48 of file zmdefines.h.

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

◆ eventName()

QString Event::eventName ( void  ) const
inline

Definition at line 50 of file zmdefines.h.

◆ monitorName()

QString Event::monitorName ( void  ) const
inline

Definition at line 52 of file zmdefines.h.

◆ startTime() [1/2]

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

Returns time using specified Qt::TimeSpec.

Definition at line 55 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 67 of file zmdefines.h.

◆ length()

QString Event::length ( void  ) const
inline

Definition at line 69 of file zmdefines.h.

Member Data Documentation

◆ m_monitorID

int Event::m_monitorID { -1 }
private

Definition at line 72 of file zmdefines.h.

Referenced by monitorID().

◆ m_eventID

int Event::m_eventID { -1 }
private

Definition at line 73 of file zmdefines.h.

Referenced by eventID().

◆ m_eventName

QString Event::m_eventName
private

Definition at line 74 of file zmdefines.h.

Referenced by eventName().

◆ m_monitorName

QString Event::m_monitorName
private

Definition at line 75 of file zmdefines.h.

Referenced by monitorName().

◆ m_length

QString Event::m_length
private

Definition at line 76 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 80 of file zmdefines.h.

Referenced by startTime().


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