MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
PulseHandler Class Reference

#include <audiopulsehandler.h>

Collaboration diagram for PulseHandler:
Collaboration graph
[legend]

Public Types

enum  PulseAction { kPulseSuspend = 0, kPulseResume, kPulseCleanup }

Public Member Functions

 ~PulseHandler (void)
bool Valid (void)

Static Public Member Functions

static bool Suspend (enum PulseAction action)

Public Attributes

pa_context_state m_ctx_state
pa_context * m_ctx
int m_pending_operations

Static Public Attributes

static PulseHandlerg_pulseHandler = NULL
static bool g_pulseHandlerActive = false

Private Member Functions

 PulseHandler (void)
bool Init (void)
bool SuspendInternal (bool suspend)

Private Attributes

pa_mainloop * m_loop
bool m_initialised
bool m_valid
QThread * m_thread

Detailed Description

Definition at line 8 of file audiopulsehandler.h.

Member Enumeration Documentation

Enumerator:
kPulseSuspend 
kPulseResume 
kPulseCleanup 

Definition at line 11 of file audiopulsehandler.h.

Constructor & Destructor Documentation

PulseHandler::~PulseHandler ( void  )

Definition at line 180 of file audiopulsehandler.cpp.

PulseHandler::PulseHandler ( void  )
private

Definition at line 173 of file audiopulsehandler.cpp.

Referenced by Suspend().

Member Function Documentation

bool PulseHandler::Suspend ( enum PulseAction  action)
static
bool PulseHandler::Valid ( void  )

Definition at line 200 of file audiopulsehandler.cpp.

Referenced by Suspend().

bool PulseHandler::Init ( void  )
private

Definition at line 210 of file audiopulsehandler.cpp.

Referenced by SuspendInternal().

bool PulseHandler::SuspendInternal ( bool  suspend)
private

Definition at line 271 of file audiopulsehandler.cpp.

Referenced by Suspend().

Member Data Documentation

PulseHandler * PulseHandler::g_pulseHandler = NULL
static

Definition at line 19 of file audiopulsehandler.h.

Referenced by Suspend().

bool PulseHandler::g_pulseHandlerActive = false
static

Definition at line 20 of file audiopulsehandler.h.

Referenced by OperationCallback(), StatusCallback(), and Suspend().

pa_context_state PulseHandler::m_ctx_state

Definition at line 25 of file audiopulsehandler.h.

Referenced by Init(), StatusCallback(), and Valid().

pa_context* PulseHandler::m_ctx
int PulseHandler::m_pending_operations

Definition at line 27 of file audiopulsehandler.h.

Referenced by OperationCallback(), and SuspendInternal().

pa_mainloop* PulseHandler::m_loop
private

Definition at line 34 of file audiopulsehandler.h.

Referenced by Init(), SuspendInternal(), and ~PulseHandler().

bool PulseHandler::m_initialised
private

Definition at line 35 of file audiopulsehandler.h.

Referenced by Init(), and Valid().

bool PulseHandler::m_valid
private

Definition at line 36 of file audiopulsehandler.h.

Referenced by Init(), and Valid().

QThread* PulseHandler::m_thread
private

Definition at line 37 of file audiopulsehandler.h.

Referenced by Init(), and SuspendInternal().


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