Switch to unified view

a/src/mpdcli.hxx b/src/mpdcli.hxx
...
...
85
85
86
class MPDCli {
86
class MPDCli {
87
public:
87
public:
88
    MPDCli(const std::string& host, int port = 6600, 
88
    MPDCli(const std::string& host, int port = 6600, 
89
           const std::string& pass="", const std::string& m_onstart="",
89
           const std::string& pass="", const std::string& m_onstart="",
90
           const std::string& m_onstop="");
90
           const std::string& m_onstop="",
91
           const std::string& m_onvolumechange="");
91
    ~MPDCli();
92
    ~MPDCli();
92
    bool ok() {return m_ok && m_conn;}
93
    bool ok() {return m_ok && m_conn;}
93
    bool setVolume(int ivol, bool isMute = false);
94
    bool setVolume(int ivol, bool isMute = false);
94
    int  getVolume();
95
    int  getVolume();
95
    bool togglePause();
96
    bool togglePause();
...
...
135
    std::string m_host;
136
    std::string m_host;
136
    int m_port;
137
    int m_port;
137
    std::string m_password;
138
    std::string m_password;
138
    std::string m_onstart;
139
    std::string m_onstart;
139
    std::string m_onstop;
140
    std::string m_onstop;
141
    std::string m_onvolumechange;
140
    regex_t m_tpuexpr;
142
    regex_t m_tpuexpr;
141
    // addtagid command only exists for mpd 0.19 and later.
143
    // addtagid command only exists for mpd 0.19 and later.
142
    bool m_have_addtagid; 
144
    bool m_have_addtagid; 
143
    // Position and id of last insertion: if the new request is to
145
    // Position and id of last insertion: if the new request is to
144
    // insert after this id, and the queue did not change, we compute
146
    // insert after this id, and the queue did not change, we compute