~ubuntu-branches/ubuntu/trusty/digikam/trusty

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/dlnaexport/extra/hupnp_av/src/contentdirectory/hcontentdirectory_serviceconfiguration.h

  • Committer: Package Import Robot
  • Author(s): Rohan Garg
  • Date: 2012-11-26 18:24:20 UTC
  • mfrom: (1.9.1) (3.1.23 experimental)
  • Revision ID: package-import@ubuntu.com-20121126182420-qoy6z0nx4ai0wzcl
Tags: 4:3.0.0~beta3-0ubuntu1
* New upstream release
  - Add build-deps :  libhupnp-dev, libqtgstreamer-dev, libmagickcore-dev
* Merge from debian, remaining changes:
  - Make sure libqt4-opengl-dev, libgl1-mesa-dev and libglu1-mesa-dev only
    install on i386,amd64 and powerpc
  - Depend on libtiff-dev instead of libtiff4-dev
  - Drop digikam breaks/replaces kipi-plugins-common since we're past the
    LTS release now
  - digikam to recommend mplayerthumbs | ffmpegthumbs. We currently only
    have latter in the archives, even though former is also supposed to
    be part of kdemultimedia. (LP: #890059)
  - kipi-plugins to recommend www-browser rather than konqueror directly
    since 2.8 no direct usage of konqueror is present in the flickr
    plugin anymore (LP: #1011211)
  - Keep kubuntu_mysqld_executable_name.diff
  - Don't install libkipi translations
  - Keep deps on libcv-dev, libcvaux-dev
  - Keep split packaging of libraries
  - Replace icons from KDE 3 time in debian/xpm.d/*.xpm with the new
    versions (LP: #658047)
* Update debian/not-installed

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  Copyright (C) 2011 Tuomo Penttinen, all rights reserved.
 
3
 *
 
4
 *  Author: Tuomo Penttinen <tp@herqq.org>
 
5
 *
 
6
 *  This file is part of Herqq UPnP Av (HUPnPAv) library.
 
7
 *
 
8
 *  Herqq UPnP Av is free software: you can redistribute it and/or modify
 
9
 *  it under the terms of the GNU General Public License as published by
 
10
 *  the Free Software Foundation, either version 3 of the License, or
 
11
 *  (at your option) any later version.
 
12
 *
 
13
 *  Herqq UPnP Av is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with Herqq UPnP Av. If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef HCONTENTDIRECTORY_SERVICECONFIGURATION_H_
 
23
#define HCONTENTDIRECTORY_SERVICECONFIGURATION_H_
 
24
 
 
25
#include <HUpnpAv/HUpnpAv>
 
26
#include <HUpnpCore/HClonable>
 
27
 
 
28
namespace Herqq
 
29
{
 
30
 
 
31
namespace Upnp
 
32
{
 
33
 
 
34
namespace Av
 
35
{
 
36
 
 
37
class HContentDirectoryServiceConfigurationPrivate;
 
38
 
 
39
/*!
 
40
 * \brief This class contains the configuration data passed to a HContentDirectoryService.
 
41
 *
 
42
 * \headerfile hcontentdirectory_serviceconfiguration.h HContentDirectoryServiceConfiguration
 
43
 *
 
44
 * \ingroup hupnp_av_cds
 
45
 *
 
46
 * \remarks This class is not thread-safe.
 
47
 *
 
48
 * \sa HContentDirectoryService
 
49
 */
 
50
class H_UPNP_AV_EXPORT HContentDirectoryServiceConfiguration :
 
51
    public HClonable
 
52
{
 
53
H_DISABLE_COPY(HContentDirectoryServiceConfiguration)
 
54
H_DECLARE_PRIVATE(HContentDirectoryServiceConfiguration)
 
55
 
 
56
protected:
 
57
 
 
58
    HContentDirectoryServiceConfigurationPrivate* h_ptr;
 
59
    HContentDirectoryServiceConfiguration(HContentDirectoryServiceConfigurationPrivate& dd);
 
60
 
 
61
    // Documented in HClonable
 
62
    virtual void doClone(HClonable* target) const;
 
63
    // Documented in HClonable
 
64
    virtual HContentDirectoryServiceConfiguration* newInstance() const;
 
65
 
 
66
public:
 
67
 
 
68
    /*!
 
69
     * \brief Creates a new instance.
 
70
     */
 
71
    HContentDirectoryServiceConfiguration();
 
72
 
 
73
    /*!
 
74
     * \brief Destroys the instance.
 
75
     */
 
76
    virtual ~HContentDirectoryServiceConfiguration();
 
77
 
 
78
    // Documented in HClonable
 
79
    virtual HContentDirectoryServiceConfiguration* clone() const;
 
80
 
 
81
    /*!
 
82
     * \brief Indicates if the object is valid.
 
83
     *
 
84
     * \return \e true if the object is valid, i.e. the dataSource() is defined.
 
85
     */
 
86
    virtual bool isValid() const;
 
87
 
 
88
    /*!
 
89
     * Indicates if the configuration object has the ownership of the data source.
 
90
     *
 
91
     * \return \e true if the configuration object has the ownership of the data source.
 
92
     *
 
93
     * \remarks This function returns \e false when no data source is set.
 
94
     *
 
95
     * \sa setDataSource(), dataSource(), detachDataSource()
 
96
     */
 
97
    bool hasOwnershipOfDataSource() const;
 
98
 
 
99
    /*!
 
100
     * \brief Returns the data source to be used by the ContentDirectoryService.
 
101
     *
 
102
     * \return The data source to be used by the ContentDirectoryService.
 
103
     *
 
104
     * \sa isValid()
 
105
     *
 
106
     * \remarks The ownership of the data source is \b never transferred.
 
107
     *
 
108
     * \sa setDatasource()
 
109
     */
 
110
    HAbstractCdsDataSource* dataSource() const;
 
111
 
 
112
    /*!
 
113
     * \brief Sets the data source.
 
114
     *
 
115
     * \param dataSource specifies the data source to be used by the
 
116
     * HMediaServerDevice.
 
117
     *
 
118
     * \param takeOwnership specifies whether the ownership of the \c dataSource
 
119
     * is passed to the ContentDirectoryService instance. If \e true, the ContentDirectoryService
 
120
     * will delete the data source once it is done using it. Otherwise the caller
 
121
     * is responsible for ensuring that the data source is not deleted before the
 
122
     * ContentDirectoryService.
 
123
     *
 
124
     * \sa datasource(), detachDatasource()
 
125
     */
 
126
    void setDataSource(HAbstractCdsDataSource* dataSource, bool takeOwnership);
 
127
 
 
128
    /*!
 
129
     * \brief Detaches the data source associated with this instance, if any.
 
130
     *
 
131
     * If the object has a data source set and the object has the ownership of it,
 
132
     * this call decreases the reference count of the associated data source.
 
133
     * In this case if the reference count goes to zero the associated data source
 
134
     * is deleted.
 
135
     *
 
136
     * \sa setDataSource()
 
137
     */
 
138
    void detachDataSource();
 
139
};
 
140
 
 
141
}
 
142
}
 
143
}
 
144
 
 
145
#endif /* HCONTENTDIRECTORY_SERVICECONFIGURATION_H_ */