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

#include <AirTunesServer.h>

Inheritance diagram for CAirTunesServer:
ANNOUNCEMENT::IAnnouncer IActionListener CThread

Public Member Functions

void Announce (ANNOUNCEMENT::AnnouncementFlag flag, const char *sender, const char *message, const CVariant &data) override
 
void RegisterActionListener (bool doRegister)
 
bool OnAction (const CAction &action) override
 
void Process () override
 
bool IsRAOPRunningInternal ()
 
- Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer
 IAnnouncer ()=default
 
virtual ~IAnnouncer ()=default
 
- Public Member Functions inherited from IActionListener
virtual ~IActionListener ()=default
 
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
 
virtual ~CThread ()
 
void Create (bool bAutoDelete=false, unsigned stacksize=0)
 
void Sleep (unsigned int milliseconds)
 
int GetSchedRRPriority (void)
 
bool SetPrioritySched_RR (int iPriority)
 
bool IsAutoDelete () const
 
virtual void StopThread (bool bWait=true)
 
bool IsRunning () const
 
bool IsCurrentThread () const
 
int GetMinPriority (void)
 
int GetMaxPriority (void)
 
int GetNormalPriority (void)
 
int GetPriority (void)
 
bool SetPriority (const int iPriority)
 
bool WaitForThreadExit (unsigned int milliseconds)
 
float GetRelativeUsage ()
 
int64_t GetAbsoluteUsage ()
 
virtual void OnException ()
 

Static Public Member Functions

static void EnableActionProcessing (bool enable)
 
static bool StartServer (int port, bool nonlocal, bool usePassword, const std::string &password="")
 
static void StopServer (bool bWait)
 
static bool IsRunning ()
 
static void SetMetadataFromBuffer (const char *buffer, unsigned int size)
 
static void SetCoverArtFromBuffer (const char *buffer, unsigned int size)
 
static void SetupRemoteControl ()
 
static void FreeDACPRemote ()
 
- Static Public Member Functions inherited from CThread
static bool IsCurrentThread (const ThreadIdentifier tid)
 
static ThreadIdentifier GetCurrentThreadId ()
 
static ThreadIdentifier GetDisplayThreadId (const ThreadIdentifier tid)
 
static CThreadGetCurrentThread ()
 

Additional Inherited Members

- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
 
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
 
virtual void OnStartup ()
 
virtual void OnExit ()
 
WaitResponse AbortableWait (CEvent &event, int timeoutMillis=-1)
 
- Protected Attributes inherited from CThread
std::atomic< bool > m_bStop
 

Member Function Documentation

◆ Announce()

void CAirTunesServer::Announce ( ANNOUNCEMENT::AnnouncementFlag  flag,
const char *  sender,
const char *  message,
const CVariant data 
)
overridevirtual

◆ EnableActionProcessing()

void CAirTunesServer::EnableActionProcessing ( bool  enable)
static

◆ FreeDACPRemote()

void CAirTunesServer::FreeDACPRemote ( )
static

◆ IsRAOPRunningInternal()

bool CAirTunesServer::IsRAOPRunningInternal ( )

◆ IsRunning()

bool CAirTunesServer::IsRunning ( )
static

◆ OnAction()

bool CAirTunesServer::OnAction ( const CAction action)
overridevirtual

Implements IActionListener.

◆ Process()

void CAirTunesServer::Process ( void  )
overridevirtual

Reimplemented from CThread.

◆ RegisterActionListener()

void CAirTunesServer::RegisterActionListener ( bool  doRegister)

◆ SetCoverArtFromBuffer()

void CAirTunesServer::SetCoverArtFromBuffer ( const char *  buffer,
unsigned int  size 
)
static

◆ SetMetadataFromBuffer()

void CAirTunesServer::SetMetadataFromBuffer ( const char *  buffer,
unsigned int  size 
)
static

◆ SetupRemoteControl()

void CAirTunesServer::SetupRemoteControl ( )
static

◆ StartServer()

bool CAirTunesServer::StartServer ( int  port,
bool  nonlocal,
bool  usePassword,
const std::string &  password = "" 
)
static

◆ StopServer()

void CAirTunesServer::StopServer ( bool  bWait)
static

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