Switch to unified view

a/libupnpp/control/cdirectory.hxx b/libupnpp/control/cdirectory.hxx
...
...
25
#include "libupnpp/control/service.hxx"
25
#include "libupnpp/control/service.hxx"
26
#include "libupnpp/control/cdircontent.hxx"
26
#include "libupnpp/control/cdircontent.hxx"
27
27
28
namespace UPnPClient {
28
namespace UPnPClient {
29
29
30
class ContentDirectoryService;
30
class ContentDirectory;
31
typedef std::shared_ptr<ContentDirectoryService> CDSH;
31
typedef std::shared_ptr<ContentDirectory> CDSH;
32
32
33
/**
33
/**
34
 * Content Directory Service client class.
34
 * Content Directory Service client class.
35
 *
35
 *
36
 * This stores identity data from a directory service
36
 * This stores identity data from a directory service
...
...
44
 * a D-Link NAS 327
44
 * a D-Link NAS 327
45
 *
45
 *
46
 * The value chosen may affect by the UpnpSetMaxContentLength
46
 * The value chosen may affect by the UpnpSetMaxContentLength
47
 * (2000*1024) done during initialization, but this should be ample
47
 * (2000*1024) done during initialization, but this should be ample
48
 */
48
 */
49
class ContentDirectoryService : public Service {
49
class ContentDirectory : public Service {
50
public:
50
public:
51
    /** Construct by copying data from device and service objects.
51
    /** Construct by copying data from device and service objects.
52
     *
52
     *
53
     */
53
     */
54
    ContentDirectoryService(const UPnPDeviceDesc& device,
54
    ContentDirectory(const UPnPDeviceDesc& device,
55
                            const UPnPServiceDesc& service)
55
                            const UPnPServiceDesc& service)
56
        : Service(device, service), m_rdreqcnt(200)
56
        : Service(device, service), m_rdreqcnt(200)
57
        {
57
        {
58
            if (!m_modelName.compare("MediaTomb")) {
58
            if (!m_modelName.compare("MediaTomb")) {
59
                // Readdir by 200 entries is good for most, but MediaTomb likes
59
                // Readdir by 200 entries is good for most, but MediaTomb likes
...
...
62
            }
62
            }
63
            registerCallback();
63
            registerCallback();
64
        }
64
        }
65
65
66
    /** An empty one */
66
    /** An empty one */
67
    ContentDirectoryService() {}
67
    ContentDirectory() {}
68
68
69
    /** Test service type from discovery message */
69
    /** Test service type from discovery message */
70
    static bool isCDService(const std::string& st);
70
    static bool isCDService(const std::string& st);
71
71
72
    /** Retrieve the directory services currently seen on the network */
72
    /** Retrieve the directory services currently seen on the network */