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

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/dlnaexport/extra/hupnp_av/src/mediarenderer/hrcs_lastchange_info.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 HRCS_LASTCHANGE_INFO_H_
 
23
#define HRCS_LASTCHANGE_INFO_H_
 
24
 
 
25
#include <HUpnpAv/HUpnpAv>
 
26
 
 
27
namespace Herqq
 
28
{
 
29
 
 
30
namespace Upnp
 
31
{
 
32
 
 
33
namespace Av
 
34
{
 
35
 
 
36
class HRcsLastChangeInfoPrivate;
 
37
 
 
38
/*!
 
39
 * \brief This class is used to contain information of a LastChange event sent
 
40
 * by a RenderingContolService.
 
41
 *
 
42
 * \headerfile hrcs_lastchange_info.h HRcsLastChangeInfo
 
43
 *
 
44
 * \ingroup hupnp_av_mediarenderer
 
45
 *
 
46
 * \remarks This class is not thread-safe.
 
47
 *
 
48
 * \sa HConnection
 
49
 */
 
50
class H_UPNP_AV_EXPORT HRcsLastChangeInfo
 
51
{
 
52
 
 
53
private:
 
54
 
 
55
    HRcsLastChangeInfoPrivate* h_ptr;
 
56
 
 
57
public:
 
58
 
 
59
    /*!
 
60
     * Creates a new, invalid instance.
 
61
     *
 
62
     * \sa isValid()
 
63
     */
 
64
    HRcsLastChangeInfo();
 
65
 
 
66
    /*!
 
67
     * \brief Creates a new instance.
 
68
     *
 
69
     * \param propertyName specifies the name of the property.
 
70
     *
 
71
     * \param value specifies the value of the property.
 
72
     *
 
73
     * \sa isValid()
 
74
     */
 
75
    HRcsLastChangeInfo(const QString& propertyName, const QVariant& value);
 
76
 
 
77
    /*!
 
78
     * \brief Destroys the instance.
 
79
     */
 
80
    ~HRcsLastChangeInfo();
 
81
 
 
82
    /*!
 
83
     * \brief Copy constructor.
 
84
     *
 
85
     * Creates a copy of \c other.
 
86
     */
 
87
    HRcsLastChangeInfo(const HRcsLastChangeInfo&);
 
88
 
 
89
    /*!
 
90
     * \brief Assignment operator.
 
91
     *
 
92
     * Copies the contents of \c other to this.
 
93
     */
 
94
    HRcsLastChangeInfo& operator=(const HRcsLastChangeInfo&);
 
95
 
 
96
    /*!
 
97
     * \brief Specifies the name of the property.
 
98
     *
 
99
     * \param name specifies the name of the property.
 
100
     *
 
101
     * \sa propertyName()
 
102
     */
 
103
    void setPropertyName(const QString& name);
 
104
 
 
105
    /*!
 
106
     * \brief Specifies the value of the property.
 
107
     *
 
108
     * \param value specifies the value of the property.
 
109
     *
 
110
     * \sa value()
 
111
     */
 
112
    void setValue(const QVariant& value);
 
113
 
 
114
    /*!
 
115
     * \brief Specifies the audio channel associated with the property, if any.
 
116
     *
 
117
     * \param channel specifies the audio channel associated with the property,
 
118
     * if any.
 
119
     *
 
120
     * \sa channel()
 
121
     */
 
122
    void setChannel(const HChannel& channel);
 
123
 
 
124
    /*!
 
125
     * \brief Indicates the validity of the object.
 
126
     *
 
127
     * \return \e true in case the object is valid, i.e. the propertyName() is
 
128
     * defined.
 
129
     */
 
130
    bool isValid() const;
 
131
 
 
132
    /*!
 
133
     * \brief Returns the name of the property.
 
134
     *
 
135
     * \return The name of the property.
 
136
     *
 
137
     * \sa setPropertyName()
 
138
     */
 
139
    QString propertyName() const;
 
140
 
 
141
    /*!
 
142
     * \brief Returns the value of the property.
 
143
     *
 
144
     * \return The value of the property.
 
145
     *
 
146
     * \sa setValue()
 
147
     */
 
148
    QVariant value() const;
 
149
 
 
150
    /*!
 
151
     * \brief Returns the audio channel associated with the property, if any.
 
152
     *
 
153
     * \return the audio channel associated with the property, if any.
 
154
     *
 
155
     * \sa setChannel()
 
156
     */
 
157
    HChannel channel() const;
 
158
};
 
159
 
 
160
/*!
 
161
 * Compares the two objects for equality.
 
162
 *
 
163
 * \return \e true in case the objects are logically equivalent.
 
164
 *
 
165
 * \relates HRcsLastChangeInfo
 
166
 */
 
167
H_UPNP_AV_EXPORT bool operator==(const HRcsLastChangeInfo&, const HRcsLastChangeInfo&);
 
168
 
 
169
/*!
 
170
 * Compares the two objects for inequality.
 
171
 *
 
172
 * \return \e true in case the objects are not logically equivalent.
 
173
 *
 
174
 * \relates HRcsLastChangeInfo
 
175
 */
 
176
inline bool operator!=(const HRcsLastChangeInfo& obj1, const HRcsLastChangeInfo& obj2)
 
177
{
 
178
    return !(obj1 == obj2);
 
179
}
 
180
 
 
181
}
 
182
}
 
183
}
 
184
 
 
185
#endif /* s */