~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/hrendererconnection.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 HMEDIARENDERER_CONNECTION_H_
 
23
#define HMEDIARENDERER_CONNECTION_H_
 
24
 
 
25
#include <HUpnpAv/HUpnpAv>
 
26
#include <HUpnpAv/HRendererConnectionInfo>
 
27
 
 
28
#include <QtCore/QObject>
 
29
 
 
30
class QUrl;
 
31
 
 
32
namespace Herqq
 
33
{
 
34
 
 
35
namespace Upnp
 
36
{
 
37
 
 
38
namespace Av
 
39
{
 
40
 
 
41
class HRendererConnectionPrivate;
 
42
class HRendererConnectionController;
 
43
 
 
44
/*!
 
45
 * This class defines an interface for rendering media content.
 
46
 *
 
47
 * This is a server-side class from which users derive custom classes,
 
48
 * instantiate them and provide those instances to HUPnPAv, which at appropriate
 
49
 * times uses them. The purpose of this class is to simplify the process of writing custom
 
50
 * MediaRenderers by allowing the user to focus on actual content rendering, rather
 
51
 * than to the details of AVTransport and RenderingControl specifications.
 
52
 *
 
53
 * \headerfile hrendererconnection_manager.h HRendererConnection
 
54
 *
 
55
 * \ingroup hupnp_av_mediarenderer
 
56
 *
 
57
 * \remarks This class is not thread-safe.
 
58
 *
 
59
 * \sa HRendererConnectionManager, HAvDeviceModelCreator, HMediaRendererDeviceConfiguration
 
60
 */
 
61
class H_UPNP_AV_EXPORT HRendererConnection :
 
62
    public QObject
 
63
{
 
64
Q_OBJECT
 
65
H_DISABLE_COPY(HRendererConnection)
 
66
friend class HRendererConnectionManager;
 
67
 
 
68
private:
 
69
 
 
70
    HRendererConnectionPrivate* h_ptr;
 
71
 
 
72
    void init(qint32 connectionId);
 
73
    void dispose();
 
74
 
 
75
protected:
 
76
 
 
77
    /*!
 
78
     * \brief Creates a new instance.
 
79
     *
 
80
     * \param parent specifies the parent \c QObject.
 
81
     */
 
82
    HRendererConnection(QObject* parent = 0);
 
83
 
 
84
    /*!
 
85
     * Provides the implementation for play().
 
86
     *
 
87
     * Every descendant has to override this.
 
88
     *
 
89
     * \param speed specifies the speed of the playback relative to normal speed.
 
90
     *
 
91
     * \retval Herqq::Upnp::UpnpErrorCode
 
92
     * \retval HAvTransportInfo::ErrorCode
 
93
     */
 
94
    virtual qint32 doPlay(const QString& speed) = 0;
 
95
 
 
96
    /*!
 
97
     * Provides the implementation for stop().
 
98
     *
 
99
     * Every descendant has to override this.
 
100
     *
 
101
     * \retval Herqq::Upnp::UpnpErrorCode
 
102
     * \retval HAvTransportInfo::ErrorCode
 
103
     */
 
104
    virtual qint32 doStop() = 0;
 
105
 
 
106
    /*!
 
107
     * Provides the implementation for pause().
 
108
     *
 
109
     * This method models an optional UPnP action and because of that it does not
 
110
     * have to be overridden.
 
111
     *
 
112
     * \retval Herqq::Upnp::UpnpErrorCode
 
113
     * \retval HAvTransportInfo::ErrorCode
 
114
     */
 
115
    virtual qint32 doPause();
 
116
 
 
117
    /*!
 
118
     * Provides the implementation for record().
 
119
     *
 
120
     * This method models an optional UPnP action and because of that it does not
 
121
     * have to be overridden.
 
122
     *
 
123
     * \retval Herqq::Upnp::UpnpErrorCode
 
124
     * \retval HAvTransportInfo::ErrorCode
 
125
     */
 
126
    virtual qint32 doRecord();
 
127
 
 
128
    /*!
 
129
     * Provides the implementation for seek().
 
130
     *
 
131
     * Every descendant has to override this.
 
132
     *
 
133
     * \param seekInfo specifies information about the seek operation.
 
134
     *
 
135
     * \retval Herqq::Upnp::UpnpErrorCode
 
136
     * \retval HAvTransportInfo::ErrorCode
 
137
     */
 
138
    virtual qint32 doSeek(const HSeekInfo& seekInfo) = 0;
 
139
 
 
140
    /*!
 
141
     * Provides the implementation for next().
 
142
     *
 
143
     * Every descendant has to override this.
 
144
     *
 
145
     * \retval Herqq::Upnp::UpnpErrorCode
 
146
     * \retval HAvTransportInfo::ErrorCode
 
147
     */
 
148
    virtual qint32 doNext() = 0;
 
149
 
 
150
    /*!
 
151
     * Provides the implementation for previous().
 
152
     *
 
153
     * Every descendant has to override this.
 
154
     *
 
155
     * \retval Herqq::Upnp::UpnpErrorCode
 
156
     * \retval HAvTransportInfo::ErrorCode
 
157
     */
 
158
    virtual qint32 doPrevious() = 0;
 
159
 
 
160
    /*!
 
161
     * Provides the implementation for setPlayMode().
 
162
     *
 
163
     * This method models an optional UPnP action and because of that it does not
 
164
     * have to be overridden.
 
165
     *
 
166
     * \param newMode specifies the new play mode.
 
167
     *
 
168
     * \retval Herqq::Upnp::UpnpErrorCode
 
169
     * \retval HAvTransportInfo::ErrorCode
 
170
     */
 
171
    virtual qint32 doSetPlayMode(const HPlayMode& newMode);
 
172
 
 
173
    /*!
 
174
     * Provides the implementation for setRecordQualityMode().
 
175
     *
 
176
     * This method models an optional UPnP action and because of that it does not
 
177
     * have to be overridden.
 
178
     *
 
179
     * \param newMode specifies the new new record quality mode.
 
180
     *
 
181
     * \retval Herqq::Upnp::UpnpErrorCode
 
182
     * \retval HAvTransportInfo::ErrorCode
 
183
     */
 
184
    virtual qint32 doSetRecordQualityMode(const HRecordQualityMode& newMode);
 
185
 
 
186
    /*!
 
187
     * \brief Provides the implementation for setResource().
 
188
     *
 
189
     * \param resourceUri specifies the location of the new resource.
 
190
     *
 
191
     * \param cdsMetadata specifies optional metadata about the resource.
 
192
     * This is null when no metadata is available.
 
193
     *
 
194
     * \retval Herqq::Upnp::UpnpErrorCode
 
195
     * \retval HAvTransportInfo::ErrorCode
 
196
     */
 
197
    virtual qint32 doSetResource(
 
198
        const QUrl& resourceUri, HObject* cdsMetadata = 0) = 0;
 
199
 
 
200
    /*!
 
201
     * \brief Provides the implementation for setNextResource().
 
202
     *
 
203
     * This method models an optional UPnP action and because of that it does not
 
204
     * have to be overridden.
 
205
     *
 
206
     * \param resourceUri specifies the location of the new resource.
 
207
     *
 
208
     * \param cdsMetadata specifies optional metadata about the resource.
 
209
     * This is null when no metadata is available.
 
210
     *
 
211
     * \retval Herqq::Upnp::UpnpErrorCode
 
212
     * \retval HAvTransportInfo::ErrorCode
 
213
     */
 
214
    virtual qint32 doSetNextResource(
 
215
        const QUrl& resourceUri, HObject* cdsMetadata = 0);
 
216
 
 
217
    /*!
 
218
     * \brief Provides the implementation for selectPreset().
 
219
     *
 
220
     * Every descendant has to override this.
 
221
     *
 
222
     * \param presetName specifies the preset.
 
223
     *
 
224
     * \retval Herqq::Upnp::UpnpErrorCode
 
225
     * \retval HRenderingControlInfo::ErrorCode
 
226
     */
 
227
    virtual qint32 doSelectPreset(const QString& presetName) = 0;
 
228
 
 
229
    /*!
 
230
     * \brief Provides the implementation for setRcsValue().
 
231
     *
 
232
     * \param rcsAttrib specifies the RenderingControl property.
 
233
     *
 
234
     * \param newValue specifies the new value of the property.
 
235
     *
 
236
     * \retval Herqq::Upnp::UpnpErrorCode
 
237
     * \retval HRenderingControlInfo::ErrorCode
 
238
     */
 
239
    virtual qint32 doSetRcsValue(
 
240
        HRendererConnectionInfo::RcsAttribute rcsAttrib, quint16 newValue);
 
241
 
 
242
    /*!
 
243
     * \brief Provides the implementation for setHorizontalKeystone().
 
244
     *
 
245
     * This method models an optional UPnP action and because of that it does not
 
246
     * have to be overridden.
 
247
     *
 
248
     * \param desiredHorizontalKeyStone specifies the new value.
 
249
     *
 
250
     * \retval Herqq::Upnp::UpnpErrorCode
 
251
     * \retval HRenderingControlInfo::ErrorCode
 
252
     */
 
253
    virtual qint32 doSetHorizontalKeystone(qint16 desiredHorizontalKeyStone);
 
254
 
 
255
    /*!
 
256
     * \brief Provides the implementation for setVerticalKeystone().
 
257
     *
 
258
     * This method models an optional UPnP action and because of that it does not
 
259
     * have to be overridden.
 
260
     *
 
261
     * \param desiredVerticalKeyStone specifies the new value.
 
262
     *
 
263
     * \retval Herqq::Upnp::UpnpErrorCode
 
264
     * \retval HRenderingControlInfo::ErrorCode
 
265
     */
 
266
    virtual qint32 doSetVerticalKeystone(qint16 desiredHorizontalKeyStone);
 
267
 
 
268
    /*!
 
269
     * \brief Provides the implementation for setMute().
 
270
     *
 
271
     * This method models an optional UPnP action and because of that it does not
 
272
     * have to be overridden.
 
273
     *
 
274
     * \param channel specifies the audio channel.
 
275
     *
 
276
     * \param muted specifies whether the channel is muted.
 
277
     *
 
278
     * \retval Herqq::Upnp::UpnpErrorCode
 
279
     * \retval HRenderingControlInfo::ErrorCode
 
280
     */
 
281
    virtual qint32 doSetMute(const HChannel& channel, bool muted);
 
282
 
 
283
    /*!
 
284
     * \brief Provides the implementation for setVolume().
 
285
     *
 
286
     * This method models an optional UPnP action and because of that it does not
 
287
     * have to be overridden.
 
288
     *
 
289
     * \param channel specifies the audio channel.
 
290
     *
 
291
     * \param volume specifies the target volume.
 
292
     *
 
293
     * \retval Herqq::Upnp::UpnpErrorCode
 
294
     * \retval HRenderingControlInfo::ErrorCode
 
295
     */
 
296
    virtual qint32 doSetVolume(const HChannel& channel, quint16 volume);
 
297
 
 
298
    /*!
 
299
     * \brief Provides the implementation for setVolumeDb().
 
300
     *
 
301
     * This method models an optional UPnP action and because of that it does not
 
302
     * have to be overridden.
 
303
     *
 
304
     * \param channel specifies the audio channel.
 
305
     *
 
306
     * \param volume specifies the target volume.
 
307
     *
 
308
     * \retval Herqq::Upnp::UpnpErrorCode
 
309
     * \retval HRenderingControlInfo::ErrorCode
 
310
     */
 
311
    virtual qint32 doSetVolumeDb(const HChannel& channel, qint16 volume);
 
312
 
 
313
    /*!
 
314
     * \brief Provides the implementation for setLoudness().
 
315
     *
 
316
     * This method models an optional UPnP action and because of that it does not
 
317
     * have to be overridden.
 
318
     *
 
319
     * \param channel specifies the audio channel.
 
320
     *
 
321
     * \param enabled specifies whether the loudness is enabled.
 
322
     *
 
323
     * \retval Herqq::Upnp::UpnpErrorCode
 
324
     * \retval HRenderingControlInfo::ErrorCode
 
325
     */
 
326
    virtual qint32 doSetLoudness(const HChannel& channel, bool enabled);
 
327
 
 
328
    /*!
 
329
     * \brief Returns an object capable of retrieving and setting
 
330
     * information about the capabilities and runtime status of the
 
331
     * media manager instance.
 
332
     *
 
333
     * \return an object capable of retrieving and setting
 
334
     * information about the capabilities and runtime status of the
 
335
     * media manager instance.
 
336
     */
 
337
    HRendererConnectionInfo* writableInfo();
 
338
 
 
339
public:
 
340
 
 
341
    /*!
 
342
     * \brief Destroys the instance.
 
343
     */
 
344
    virtual ~HRendererConnection() = 0;
 
345
 
 
346
    /*!
 
347
     * Returns the ID of the ConnectionManager connection with which this
 
348
     * instance is associated.
 
349
     *
 
350
     * \return the ID of the ConnectionManager connection with which this
 
351
     * instance is associated.
 
352
     */
 
353
    qint32 connectionId() const;
 
354
 
 
355
    /*!
 
356
     * \brief Returns an object capable of retrieving
 
357
     * information about the capabilities and runtime status of the
 
358
     * media manager instance.
 
359
     *
 
360
     * \return an object capable of retrieving and setting
 
361
     * information about the capabilities and runtime status of the
 
362
     * media manager instance.
 
363
     */
 
364
    const HRendererConnectionInfo* info() const;
 
365
 
 
366
    /*!
 
367
     * \brief Begins the playback of the current resource.
 
368
     *
 
369
     * \param speed specifies the speed of the playback relative to normal speed.
 
370
     *
 
371
     * \retval Herqq::Upnp::UpnpErrorCode
 
372
     * \retval HAvTransportInfo::ErrorCode
 
373
     */
 
374
    qint32 play(const QString& speed);
 
375
 
 
376
    /*!
 
377
     * \brief Stops the progression of the current resource.
 
378
     *
 
379
     * \retval Herqq::Upnp::UpnpErrorCode
 
380
     * \retval HAvTransportInfo::ErrorCode
 
381
     */
 
382
    qint32 stop();
 
383
 
 
384
    /*!
 
385
     * \brief Pauses the ongoing playback of the current resource associated with the
 
386
     * specified virtual AVTransport instance.
 
387
     *
 
388
     * \retval Herqq::Upnp::UpnpErrorCode
 
389
     * \retval HAvTransportInfo::ErrorCode
 
390
     */
 
391
    qint32 pause();
 
392
 
 
393
    /*!
 
394
     * \brief Begins recording on the specified virtual AVTransport instance.
 
395
     *
 
396
     * \retval Herqq::Upnp::UpnpErrorCode
 
397
     * \retval HAvTransportInfo::ErrorCode
 
398
     */
 
399
    qint32 record();
 
400
 
 
401
    /*!
 
402
     * \brief Seeks through the current resource of the specified
 
403
     * virtual AVTransport instance.
 
404
     *
 
405
     * \param seekInfo specifies information about the seek operation.
 
406
     *
 
407
     * \retval Herqq::Upnp::UpnpErrorCode
 
408
     * \retval HAvTransportInfo::ErrorCode
 
409
     */
 
410
    qint32 seek(const HSeekInfo& seekInfo);
 
411
 
 
412
    /*!
 
413
     * \brief Advances the current resource of the specified
 
414
     * virtual AVTransport instance to the next track.
 
415
     *
 
416
     * \retval Herqq::Upnp::UpnpErrorCode
 
417
     * \retval HAvTransportInfo::ErrorCode
 
418
     */
 
419
    qint32 next();
 
420
 
 
421
    /*!
 
422
     * \brief Advances the current resource of the specified
 
423
     * virtual AVTransport instance to the previous track.
 
424
     *
 
425
     * \retval Herqq::Upnp::UpnpErrorCode
 
426
     * \retval HAvTransportInfo::ErrorCode
 
427
     */
 
428
    qint32 previous();
 
429
 
 
430
    /*!
 
431
     * \brief Sets the play mode of the specified virtual AVTransport instance.
 
432
     *
 
433
     * \param newMode specifies the new play mode.
 
434
     *
 
435
     * \retval Herqq::Upnp::UpnpErrorCode
 
436
     * \retval HAvTransportInfo::ErrorCode
 
437
     */
 
438
    qint32 setPlaymode(const HPlayMode& newMode);
 
439
 
 
440
    /*!
 
441
     * \brief Sets the record quality mode of the specified virtual AVTransport instance.
 
442
     *
 
443
     * \param newMode specifies the new record quality mode.
 
444
     *
 
445
     * \retval Herqq::Upnp::UpnpErrorCode
 
446
     * \retval HAvTransportInfo::ErrorCode
 
447
     */
 
448
    qint32 setRecordQualityMode(const HRecordQualityMode& newMode);
 
449
 
 
450
    /*!
 
451
     * \brief Indicates if the instance accepts the current resource to be changed to
 
452
     * the specified resource.
 
453
     *
 
454
     * \param resourceUri specifies the location of the new resource.
 
455
     *
 
456
     * \param resourceMetadata specifies CDS metadata associated with the
 
457
     * resource, using a DIDL-Lite XML Fragment. This parameter is optional.
 
458
     *
 
459
     * \retval Herqq::Upnp::UpnpErrorCode
 
460
     * \retval HAvTransportInfo::ErrorCode
 
461
     */
 
462
    qint32 setResource(
 
463
        const QUrl& resourceUri, const QString& resourceMetadata = QString());
 
464
 
 
465
    /*!
 
466
     * \brief Indicates if the instance accepts the current resource to be changed to
 
467
     * the specified resource.
 
468
     *
 
469
     * \param resourceUri specifies the location of the new resource.
 
470
     *
 
471
     * \param cdsMetadata specifies CDS metadata associated with the
 
472
     * resource, using a DIDL-Lite XML Fragment. This parameter is optional.
 
473
     *
 
474
     * \retval Herqq::Upnp::UpnpErrorCode
 
475
     * \retval HAvTransportInfo::ErrorCode
 
476
     */
 
477
    qint32 setNextResource(
 
478
        const QUrl& resourceUri, const QString& resourceMetadata = QString());
 
479
 
 
480
    /*!
 
481
     * \brief Restores the values of the state variables associated with the
 
482
     * specified preset.
 
483
     *
 
484
     * \param presetName specifies the preset.
 
485
     *
 
486
     * \retval Herqq::Upnp::UpnpErrorCode
 
487
     * \retval HRenderingControlInfo::ErrorCode
 
488
     */
 
489
    qint32 selectPreset(const QString& presetName);
 
490
 
 
491
    /*!
 
492
     * \brief Specifies the value for the specified RenderingControl property.
 
493
     *
 
494
     * \param rcsAttrib specifies the RenderingControl property.
 
495
     *
 
496
     * \param newValue specifies the new value of the property.
 
497
     *
 
498
     * \retval Herqq::Upnp::UpnpErrorCode
 
499
     * \retval HRenderingControlInfo::ErrorCode
 
500
     */
 
501
    qint32 setRcsValue(
 
502
        HRendererConnectionInfo::RcsAttribute rcsAttrib, quint16 newValue);
 
503
 
 
504
    /*!
 
505
     * \brief Specifies the horizontal keystone.
 
506
     *
 
507
     * \param desiredHorizontalKeyStone specifies the new value.
 
508
     *
 
509
     * \retval Herqq::Upnp::UpnpErrorCode
 
510
     * \retval HRenderingControlInfo::ErrorCode
 
511
     */
 
512
    qint32 setHorizontalKeystone(qint16 desiredHorizontalKeyStone);
 
513
 
 
514
    /*!
 
515
     * \brief Specifies the vertical keystone.
 
516
     *
 
517
     * \param desiredVerticalKeyStone specifies the new value.
 
518
     *
 
519
     * \retval Herqq::Upnp::UpnpErrorCode
 
520
     * \retval HRenderingControlInfo::ErrorCode
 
521
     */
 
522
    qint32 setVerticalKeystone(qint16 desiredHorizontalKeyStone);
 
523
 
 
524
    /*!
 
525
     * \brief Specifies whether the specified audio channel is muted.
 
526
     *
 
527
     * \param channel specifies the audio channel.
 
528
     *
 
529
     * \param muted specifies whether the channel is muted.
 
530
     *
 
531
     * \retval Herqq::Upnp::UpnpErrorCode
 
532
     * \retval HRenderingControlInfo::ErrorCode
 
533
     */
 
534
    qint32 setMute(const HChannel& channel, bool muted);
 
535
 
 
536
    /*!
 
537
     * \brief Specifies the volume of the specified audio channel.
 
538
     *
 
539
     * \param channel specifies the audio channel.
 
540
     *
 
541
     * \param volume specifies the target volume.
 
542
     *
 
543
     * \retval Herqq::Upnp::UpnpErrorCode
 
544
     * \retval HRenderingControlInfo::ErrorCode
 
545
     */
 
546
    qint32 setVolume(const HChannel& channel, quint16 volume);
 
547
 
 
548
    /*!
 
549
     * \brief Specifies the volume of the specified audio channel.
 
550
     *
 
551
     * \param channel specifies the audio channel.
 
552
     *
 
553
     * \param volume specifies the target volume.
 
554
     *
 
555
     * \retval Herqq::Upnp::UpnpErrorCode
 
556
     * \retval HRenderingControlInfo::ErrorCode
 
557
     */
 
558
    qint32 setVolumeDb(const HChannel& channel, qint16 volume);
 
559
 
 
560
    /*!
 
561
     * \brief Specifies whether the loudness is enabled on the specified audio channel.
 
562
     *
 
563
     * \param channel specifies the audio channel.
 
564
     *
 
565
     * \param enabled specifies whether the loudness is enabled.
 
566
     *
 
567
     * \retval Herqq::Upnp::UpnpErrorCode
 
568
     * \retval HRenderingControlInfo::ErrorCode
 
569
     */
 
570
    qint32 setLoudness(const HChannel& channel, bool enabled);
 
571
 
 
572
    /*!
 
573
     * \brief Returns the value of the specified property (state variable).
 
574
     *
 
575
     * \param svName specifies the name of the property (state variable), which
 
576
     * value should be returned.
 
577
     *
 
578
     * \param ok is a pointer to \c bool, which value is set to \e true, if the value
 
579
     * property was found. This is optional.
 
580
     *
 
581
     * \return the value of the specified property (state variable).
 
582
     *
 
583
     * \sa setValue()
 
584
     */
 
585
    QString value(const QString& svName, bool* ok = 0) const;
 
586
 
 
587
    /*!
 
588
     * \brief Returns the value of the specified property (state variable).
 
589
     *
 
590
     * \param svName specifies the name of the property (state variable), which
 
591
     * value should be returned.
 
592
     *
 
593
     * \param channel specifies the audio channel of which the property value is retrieved.
 
594
     *
 
595
     * \param ok is a pointer to \c bool, which value is set to \e true, if the value
 
596
     * property was found. This is optional.
 
597
     *
 
598
     * \return the value of the specified property (state variable).
 
599
     *
 
600
     * \sa setValue()
 
601
     */
 
602
    QString value(const QString& svName, const HChannel& channel, bool* ok = 0) const;
 
603
 
 
604
    /*!
 
605
     * \brief Specifies the value of the specified property (state variable).
 
606
     *
 
607
     * \param svName specifies the name of the property (state variable), which
 
608
     * value should be set.
 
609
     *
 
610
     * \param value specifies the new value of the property.
 
611
     *
 
612
     * \return \e true if the value of the specified property was set.
 
613
     *
 
614
     * \sa value()
 
615
     */
 
616
    bool setValue(const QString& svName, const QString& value);
 
617
 
 
618
    /*!
 
619
     * \brief Specifies the value of the specified property (state variable).
 
620
     *
 
621
     * \param svName specifies the name of the property (state variable), which
 
622
     * value should be set.
 
623
     *
 
624
     * \param channel specifies the audio channel of which property should be set.
 
625
     *
 
626
     * \param value specifies the new value of the property.
 
627
     *
 
628
     * \return \e true if the value of the specified property was set.
 
629
     *
 
630
     * \sa value()
 
631
     */
 
632
    bool setValue(const QString& svName, const HChannel& channel, const QString& value);
 
633
 
 
634
Q_SIGNALS:
 
635
 
 
636
    /*!
 
637
     *
 
638
     */
 
639
    void disposed(Herqq::Upnp::Av::HRendererConnection* source);
 
640
};
 
641
 
 
642
}
 
643
}
 
644
}
 
645
 
 
646
#endif /* HMEDIARENDERER_CONNECTION_H_ */