a/libupnpp/control/cdircontent.hxx b/libupnpp/control/cdircontent.hxx
...
...
107
        val = it->second;
107
        val = it->second;
108
        return true;
108
        return true;
109
109
110
    }
110
    }
111
111
112
    int getDurationSeconds(unsigned ridx = 0)
112
    int getDurationSeconds(unsigned ridx = 0) const
113
    {
113
    {
114
        std::string sdur;
114
        std::string sdur;
115
        if (!getrprop(ridx, "duration", sdur)) {
115
        if (!getrprop(ridx, "duration", sdur)) {
116
            //?? Avoid returning 0, who knows...
116
            //?? Avoid returning 0, who knows...
117
            return 1;
117
            return 1;
...
...
123
     * Get a DIDL document suitable for sending to a mediaserver. Only
123
     * Get a DIDL document suitable for sending to a mediaserver. Only
124
     * works for items, not containers. The idea is that we may have
124
     * works for items, not containers. The idea is that we may have
125
     * missed useful stuff while parsing the data from the content
125
     * missed useful stuff while parsing the data from the content
126
     * directory, so we send the original if we can.
126
     * directory, so we send the original if we can.
127
     */
127
     */
128
    std::string getdidl();
128
    std::string getdidl() const;
129
129
130
    void clear()
130
    void clear()
131
    {
131
    {
132
        m_id.clear();
132
        m_id.clear();
133
        m_pid.clear();
133
        m_pid.clear();
...
...
137
        m_props.clear();
137
        m_props.clear();
138
        m_resources.clear();
138
        m_resources.clear();
139
        m_didlfrag.clear();
139
        m_didlfrag.clear();
140
    }
140
    }
141
141
142
    std::string dump()
142
    std::string dump() const
143
    {
143
    {
144
        std::ostringstream os;
144
        std::ostringstream os;
145
        os << "UPnPDirObject: " << (m_type == item ? "item" : "container") << 
145
        os << "UPnPDirObject: " << (m_type == item ? "item" : "container") << 
146
            " id [" << m_id << "] pid [" << m_pid <<
146
            " id [" << m_id << "] pid [" << m_pid <<
147
            "] title [" << m_title << "]" << std::endl;
147
            "] title [" << m_title << "]" << std::endl;