added: parse JSON coming from kodi, if there is a notification that playback has started, switch on the amplifier
This commit is contained in:
parent
413f5ecf9d
commit
d23b42c1b3
5 changed files with 62 additions and 19 deletions
|
@ -16,16 +16,24 @@
|
|||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef KODICLIENT_H
|
||||
#define KODICLIENT_H
|
||||
|
||||
#include <thread>
|
||||
|
||||
class CAmpSwitch;
|
||||
|
||||
class CKodiClient
|
||||
{
|
||||
public:
|
||||
void Start();
|
||||
void Start(CAmpSwitch* ampswitch);
|
||||
|
||||
private:
|
||||
static void SProcess(CKodiClient* kodiclient);
|
||||
void Process();
|
||||
|
||||
std::thread m_thread;
|
||||
CAmpSwitch* m_ampswitch;
|
||||
};
|
||||
|
||||
#endif //KODICLIENT_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue