Switch to unified view

a/src/mpdcli.hxx b/src/mpdcli.hxx
...
...
84
};
84
};
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="");
90
           const std::string& m_onstop="");
90
    ~MPDCli();
91
    ~MPDCli();
91
    bool ok() {return m_ok && m_conn;}
92
    bool ok() {return m_ok && m_conn;}
92
    bool setVolume(int ivol, bool isMute = false);
93
    bool setVolume(int ivol, bool isMute = false);
93
    int  getVolume();
94
    int  getVolume();
94
    bool togglePause();
95
    bool togglePause();
...
...
132
    // volume in the status)
133
    // volume in the status)
133
    int m_cachedvolume; 
134
    int m_cachedvolume; 
134
    std::string m_host;
135
    std::string m_host;
135
    int m_port;
136
    int m_port;
136
    std::string m_password;
137
    std::string m_password;
138
    std::string m_onstart;
139
    std::string m_onstop;
137
    regex_t m_tpuexpr;
140
    regex_t m_tpuexpr;
138
    // addtagid command only exists for mpd 0.19 and later.
141
    // addtagid command only exists for mpd 0.19 and later.
139
    bool m_have_addtagid; 
142
    bool m_have_addtagid; 
140
    // Position and id of last insertion: if the new request is to
143
    // Position and id of last insertion: if the new request is to
141
    // insert after this id, and the queue did not change, we compute
144
    // insert after this id, and the queue did not change, we compute