Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
CAirPlayServer Class Reference

#include <AirPlayServer.h>

Inheritance diagram for CAirPlayServer:
CThread ANNOUNCEMENT::IAnnouncer

Public Member Functions

void Announce (ANNOUNCEMENT::AnnouncementFlag flag, const std::string &sender, const std::string &message, const CVariant &data) override
- Public Member Functions inherited from CThread
 CThread (IRunnable *pRunnable, const char *ThreadName)
virtual ~CThread ()
void Create (bool bAutoDelete=false)
template<typename Rep , typename Period >
void Sleep (std::chrono::duration< Rep, Period > duration)
bool IsAutoDelete () const
virtual void StopThread (bool bWait=true)
bool IsRunning () const
bool IsCurrentThread () const
bool Join (std::chrono::milliseconds duration)
bool SetPriority (const ThreadPriority &priority)
 Set the threads priority. This uses the platforms native threading library to do so.
virtual void OnException ()
- Public Member Functions inherited from ANNOUNCEMENT::IAnnouncer
 IAnnouncer ()=default
virtual ~IAnnouncer ()=default

Static Public Member Functions

static bool StartServer (int port, bool nonlocal)
static void StopServer (bool bWait)
static bool IsRunning ()
static bool SetCredentials (bool usePassword, const std::string &password)
static bool IsPlaying ()
static void backupVolume ()
static void restoreVolume ()
- Static Public Member Functions inherited from CThread
static const std::thread::id GetCurrentThreadId ()
static CThreadGetCurrentThread ()

Static Public Attributes

static int m_isPlaying = 0

Protected Member Functions

void Process () override
- Protected Member Functions inherited from CThread
 CThread (const char *ThreadName)
virtual void OnStartup ()
virtual void OnExit ()
WaitResponse AbortableWait (CEvent &event, std::chrono::milliseconds duration=std::chrono::milliseconds(-1))

Additional Inherited Members

- Protected Types inherited from CThread
enum  WaitResponse { WAIT_INTERRUPTED = -1 , WAIT_SIGNALED = 0 , WAIT_TIMEDOUT = 1 }
- Protected Attributes inherited from CThread
std::atomic< boolm_bStop

Member Function Documentation

◆ Announce()

void CAirPlayServer::Announce ( ANNOUNCEMENT::AnnouncementFlag flag,
const std::string & sender,
const std::string & message,
const CVariant & data )

◆ backupVolume()

void CAirPlayServer::backupVolume ( )

◆ IsPlaying()

static bool CAirPlayServer::IsPlaying ( )

◆ IsRunning()

bool CAirPlayServer::IsRunning ( )

◆ Process()

void CAirPlayServer::Process ( void )

Reimplemented from CThread.

◆ restoreVolume()

void CAirPlayServer::restoreVolume ( )

◆ SetCredentials()

bool CAirPlayServer::SetCredentials ( bool usePassword,
const std::string & password )

◆ StartServer()

bool CAirPlayServer::StartServer ( int port,
bool nonlocal )

◆ StopServer()

void CAirPlayServer::StopServer ( bool bWait)

Member Data Documentation

◆ m_isPlaying

int CAirPlayServer::m_isPlaying = 0

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