ivi-main-loop
ivi::EventSource Class Referenceabstract

Any event source inherits from this class. More...

#include <ivi-main-loop-common.h>

Inheritance diagram for ivi::EventSource:

Public Types

enum  ReportStatus { ReportStatus::KEEP_ENABLED, ReportStatus::DISABLE }
 

Public Member Functions

virtual void enable ()=0
 Enables the source. More...
 
virtual void disable ()=0
 Disables the source. More...
 
virtual bool isEnabled () const =0
 Returns true if the source is currently enabled, false otherwise. More...
 

Detailed Description

Any event source inherits from this class.

Definition at line 29 of file ivi-main-loop-common.h.

Member Enumeration Documentation

Enumerator
KEEP_ENABLED 

Returning that value from a source's callback function causes the source to remain enabled.

DISABLE 

Returning that value from a source's callback function causes the source to be disabled.

Definition at line 32 of file ivi-main-loop-common.h.

33  {
34  /// Returning that value from a source's callback function causes the source to remain enabled
35  KEEP_ENABLED,
36 
37  /// Returning that value from a source's callback function causes the source to be disabled
38  DISABLE
39  };

Member Function Documentation

virtual void ivi::EventSource::enable ( )
pure virtual
virtual void ivi::EventSource::disable ( )
pure virtual
virtual bool ivi::EventSource::isEnabled ( ) const
pure virtual

Returns true if the source is currently enabled, false otherwise.

Implemented in ivi::GLibChannelWatchEventSource, ivi::GLibTimeOutEventSource, and ivi::GLibIdleEventSource.


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