hydrogen 1.1.1
LashClient Class Reference

#include <LashClient.h>

Public Member Functions

 LashClient (const char *lashClass, const char *viewName, int *argc, char ***argv)
 
 ~LashClient ()
 
bool isConnected ()
 
void sendEvent (LASH_Event_Type eventType, const char *value)
 
void sendEvent (LASH_Event_Type eventType)
 
void setJackClientName (const std::string &jackClientName)
 Set the name of the JACK client by modifying jackClientName. More...
 
void sendJackClientName ()
 
void setAlsaClientId (unsigned char id)
 
void sendAlsaClientId ()
 
lash_event_t * getNextEvent ()
 
lash_client_t * getConnection ()
 
void setNewProject (bool value)
 
bool isNewProject ()
 

Static Public Member Functions

static LashClientget_instance ()
 
static void create_instance (const char *lashClass, const char *viewName, int *argc, char ***argv)
 static reference of LashClient class (Singleton) More...
 

Private Attributes

bool newProject
 
lash_client_t * lashClient
 
std::string jackClientName
 Name of the external JACK client Hydrogen is using to communicate with the JACK server. More...
 
unsigned char alsaClientId
 

Static Private Attributes

static LashClient__instance = nullptr
 

Constructor & Destructor Documentation

◆ LashClient()

LashClient ( const char *  lashClass,
const char *  viewName,
int *  argc,
char ***  argv 
)

◆ ~LashClient()

~LashClient ( )

Member Function Documentation

◆ create_instance()

void create_instance ( const char *  lashClass,
const char *  viewName,
int *  argc,
char ***  argv 
)
static

static reference of LashClient class (Singleton)

◆ get_instance()

static LashClient * get_instance ( )
inlinestatic

◆ getConnection()

lash_client_t * getConnection ( )

◆ getNextEvent()

lash_event_t * getNextEvent ( )

◆ isConnected()

bool isConnected ( )

◆ isNewProject()

bool isNewProject ( )

◆ sendAlsaClientId()

void sendAlsaClientId ( )

◆ sendEvent() [1/2]

void sendEvent ( LASH_Event_Type  eventType)

◆ sendEvent() [2/2]

void sendEvent ( LASH_Event_Type  eventType,
const char *  value 
)

◆ sendJackClientName()

void sendJackClientName ( )

◆ setAlsaClientId()

void setAlsaClientId ( unsigned char  id)

◆ setJackClientName()

void setJackClientName ( const std::string &  jackClientName)

Set the name of the JACK client by modifying jackClientName.

Called in H2Core::JackAudioDriver::init() after successfully opening a client session.

◆ setNewProject()

void setNewProject ( bool  value)

Field Documentation

◆ __instance

LashClient * __instance = nullptr
staticprivate

◆ alsaClientId

unsigned char alsaClientId
private

◆ jackClientName

std::string jackClientName
private

Name of the external JACK client Hydrogen is using to communicate with the JACK server.

It can be modified via setJackClientName().

◆ lashClient

lash_client_t* lashClient
private

◆ newProject

bool newProject
private