Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
CEventLog Class Reference

#include <EventLog.h>

Public Member Functions

 CEventLog ()=default
 
 CEventLog (const CEventLog &)=delete
 
CEventLogoperator= (CEventLog const &)=delete
 
 ~CEventLog ()=default
 
Events Get () const
 
Events Get (EventLevel level, bool includeHigherLevels=false) const
 
EventPtr Get (const std::string &eventIdentifier) const
 
void Add (const EventPtr &event)
 
void Add (const EventPtr &event, bool withNotification, bool withSound=true)
 
void AddWithNotification (const EventPtr &event, unsigned int displayTime=NOTIFICATION_DISPLAY_TIME, unsigned int messageTime=NOTIFICATION_MESSAGE_TIME, bool withSound=true)
 
void AddWithNotification (const EventPtr &event, bool withSound)
 
void Remove (const EventPtr &event)
 
void Remove (const std::string &eventIdentifier)
 
void Clear ()
 
void Clear (EventLevel level, bool includeHigherLevels=false)
 
bool Execute (const std::string &eventIdentifier)
 
void ShowFullEventLog (EventLevel level=EventLevel::Basic, bool includeHigherLevels=true)
 

Static Public Member Functions

static std::string EventLevelToString (EventLevel level)
 
static EventLevel EventLevelFromString (const std::string &level)
 

Constructor & Destructor Documentation

◆ CEventLog() [1/2]

CEventLog::CEventLog ( )
default

◆ CEventLog() [2/2]

CEventLog::CEventLog ( const CEventLog )
delete

◆ ~CEventLog()

CEventLog::~CEventLog ( )
default

Member Function Documentation

◆ Add() [1/2]

void CEventLog::Add ( const EventPtr event)

◆ Add() [2/2]

void CEventLog::Add ( const EventPtr event,
bool  withNotification,
bool  withSound = true 
)

◆ AddWithNotification() [1/2]

void CEventLog::AddWithNotification ( const EventPtr event,
bool  withSound 
)

◆ AddWithNotification() [2/2]

void CEventLog::AddWithNotification ( const EventPtr event,
unsigned int  displayTime = NOTIFICATION_DISPLAY_TIME,
unsigned int  messageTime = NOTIFICATION_MESSAGE_TIME,
bool  withSound = true 
)

◆ Clear() [1/2]

void CEventLog::Clear ( )

◆ Clear() [2/2]

void CEventLog::Clear ( EventLevel  level,
bool  includeHigherLevels = false 
)

◆ EventLevelFromString()

EventLevel CEventLog::EventLevelFromString ( const std::string &  level)
static

◆ EventLevelToString()

std::string CEventLog::EventLevelToString ( EventLevel  level)
static

◆ Execute()

bool CEventLog::Execute ( const std::string &  eventIdentifier)

◆ Get() [1/3]

Events CEventLog::Get ( ) const

◆ Get() [2/3]

EventPtr CEventLog::Get ( const std::string &  eventIdentifier) const

◆ Get() [3/3]

Events CEventLog::Get ( EventLevel  level,
bool  includeHigherLevels = false 
) const

◆ operator=()

CEventLog & CEventLog::operator= ( CEventLog const &  )
delete

◆ Remove() [1/2]

void CEventLog::Remove ( const EventPtr event)

◆ Remove() [2/2]

void CEventLog::Remove ( const std::string &  eventIdentifier)

◆ ShowFullEventLog()

void CEventLog::ShowFullEventLog ( EventLevel  level = EventLevel::Basic,
bool  includeHigherLevels = true 
)

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