Switch to unified view

a/src/upmpd.hxx b/src/upmpd.hxx
...
...
109
    // Check that the metadata resource element matching the uri is
109
    // Check that the metadata resource element matching the uri is
110
    // present in the input set. Convert the metadata to an mpdcli song
110
    // present in the input set. Convert the metadata to an mpdcli song
111
    // while we are at it.
111
    // while we are at it.
112
    bool checkContentFormat(const std::string& uri, const std::string& didl,
112
    bool checkContentFormat(const std::string& uri, const std::string& didl,
113
                            UpSong *ups = 0);
113
                            UpSong *ups = 0);
114
115
    // Help avtransport report correct metadata for radios (for which
116
    // the uri, normally used to detect track transitions, does not
117
    // change). This is called by ohproduct when setting the source.
118
    void setRadio(bool on) {
119
        m_radio = on;
114
    
120
    }
121
    bool radioPlaying() {
122
        return m_radio;
123
    }
124
115
private:
125
private:
116
    MPDCli *m_mpdcli;
126
    MPDCli *m_mpdcli;
117
    const MpdStatus *m_mpds;
127
    const MpdStatus *m_mpds;
118
    unsigned int m_options;
128
    unsigned int m_options;
119
    std::string m_mcachefn;
129
    std::string m_mcachefn;
...
...
125
    OHInfo *m_ohif;
135
    OHInfo *m_ohif;
126
    OHReceiver *m_ohrcv;
136
    OHReceiver *m_ohrcv;
127
    SenderReceiver *m_sndrcv;
137
    SenderReceiver *m_sndrcv;
128
    std::vector<UpnpService*> m_services;
138
    std::vector<UpnpService*> m_services;
129
    std::string m_friendlyname;
139
    std::string m_friendlyname;
140
    bool m_radio{false};
130
};
141
};
131
142
132
#endif /* _UPMPD_H_X_INCLUDED_ */
143
#endif /* _UPMPD_H_X_INCLUDED_ */