summaryrefslogtreecommitdiffstats
path: root/xbmc/network/dacp/dacp.h
blob: 074b477aca1f1968b6d1e398b42e39abf2c92e34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 *  Copyright (C) 2015-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "URL.h"

#include <string>

class CDACP
{
  public:
    CDACP(const std::string &active_remote_header, const std::string &hostname, int port);

    void BeginFwd();
    void BeginRewnd();
    void ToggleMute();
    void NextItem();
    void PrevItem();
    void Pause();
    void PlayPause();
    void Play();
    void Stop();
    void PlayResume();
    void ShuffleSongs();
    void VolumeDown();
    void VolumeUp();

  private:
    void SendCmd(const std::string &cmd);

    CURL m_dacpUrl;
};