added: parse JSON coming from kodi, if there is a notification that playback has started, switch on the amplifier

This commit is contained in:
Bob 2021-09-26 22:11:22 +02:00
parent 413f5ecf9d
commit d23b42c1b3
5 changed files with 62 additions and 19 deletions

View file

@ -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