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

« back to all changes in this revision

Viewing changes to extra/kipi-plugins/dlnaexport/extra/hupnp_av/src/cds_model/model_mgmt/hcdsproperties.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 HCDS_PROPERTIES_H_
 
23
#define HCDS_PROPERTIES_H_
 
24
 
 
25
#include <HUpnpAv/HUpnpAv>
 
26
 
 
27
class QMutex;
 
28
 
 
29
namespace Herqq
 
30
{
 
31
 
 
32
namespace Upnp
 
33
{
 
34
 
 
35
namespace Av
 
36
{
 
37
 
 
38
class HCdsPropertiesPrivate;
 
39
 
 
40
/*!
 
41
 * \brief This class is used to contain information of CDS object properties.
 
42
 *
 
43
 * \headerfile hcdsproperties.h HCdsProperties
 
44
 *
 
45
 * \ingroup hupnp_av_cds_om_mgmt
 
46
 *
 
47
 * \remarks This class \b is thread-safe.
 
48
 */
 
49
class H_UPNP_AV_EXPORT HCdsProperties
 
50
{
 
51
H_DISABLE_COPY(HCdsProperties)
 
52
 
 
53
private:
 
54
 
 
55
    HCdsPropertiesPrivate* h_ptr;
 
56
 
 
57
    static HCdsProperties* s_instance;
 
58
    static QMutex* s_instanceLock;
 
59
 
 
60
    HCdsProperties();
 
61
   ~HCdsProperties();
 
62
 
 
63
public:
 
64
 
 
65
   /*!
 
66
     * \brief Returns the single instance of the class.
 
67
     *
 
68
     * \return The single instance of the class.
 
69
     */
 
70
    static const HCdsProperties& instance();
 
71
 
 
72
    /*!
 
73
     * \brief This enumeration defines all the supported CDS properties.
 
74
     */
 
75
    enum Property
 
76
    {
 
77
        /*!
 
78
         * This value is used in error scenarios and when the property is not
 
79
         * known by HUPnPAv.
 
80
         */
 
81
        undefined = 0,
 
82
 
 
83
        /*!
 
84
         * DIDL-Lite, \@id.
 
85
         */
 
86
        dlite_id,
 
87
 
 
88
        /*!
 
89
         * DIDL-Lite, \@parentID.
 
90
         */
 
91
        dlite_parentId,
 
92
 
 
93
        /*!
 
94
         * DIDL-Lite, \@restricted.
 
95
         */
 
96
        dlite_restricted,
 
97
 
 
98
        /*!
 
99
         * DIDL-Lite, \@res.
 
100
         */
 
101
        dlite_res,
 
102
 
 
103
        /*!
 
104
         * DIDL-Lite, \@refID.
 
105
         */
 
106
        dlite_refId,
 
107
 
 
108
        /*!
 
109
         * DIDL-Lite, \@childCount.
 
110
         */
 
111
        dlite_childCount,
 
112
 
 
113
        /*!
 
114
         * DIDL-Lite, \@searchable.
 
115
         */
 
116
        dlite_searchable,
 
117
 
 
118
        /*!
 
119
         * DIDL-Lite, \@neverPlayable.
 
120
         */
 
121
        dlite_neverPlayable,
 
122
 
 
123
        /*!
 
124
         * dc:title.
 
125
         */
 
126
        dc_title,
 
127
 
 
128
        /*!
 
129
         * dc:creator.
 
130
         */
 
131
        dc_creator,
 
132
 
 
133
        /*!
 
134
         * dc:description.
 
135
         */
 
136
        dc_description,
 
137
 
 
138
        /*!
 
139
         * dc:publisher.
 
140
         */
 
141
        dc_publisher,
 
142
 
 
143
        /*!
 
144
         * dc:date.
 
145
         */
 
146
        dc_date,
 
147
 
 
148
        /*!
 
149
         * dc:rights.
 
150
         */
 
151
        dc_rights,
 
152
 
 
153
        /*!
 
154
         * dc:relation.
 
155
         */
 
156
        dc_relation,
 
157
 
 
158
        /*!
 
159
         * dc_language.
 
160
         */
 
161
        dc_language,
 
162
 
 
163
        /*!
 
164
         * dc_contributor.
 
165
         */
 
166
        dc_contributor,
 
167
 
 
168
        /*!
 
169
         * upnp:class.
 
170
         */
 
171
        upnp_class,
 
172
 
 
173
        /*!
 
174
         * upnp:writeStatus.
 
175
         */
 
176
        upnp_writeStatus,
 
177
 
 
178
        /*!
 
179
         * upnp:objectUpdateID.
 
180
         */
 
181
        upnp_objectUpdateID,
 
182
 
 
183
        /*!
 
184
         * upnp:bookmarkID.
 
185
         */
 
186
        upnp_bookmarkID,
 
187
 
 
188
        /*!
 
189
         * upnp:longDescription.
 
190
         */
 
191
        upnp_longDescription,
 
192
 
 
193
        /*!
 
194
         * upnp:rating.
 
195
         */
 
196
        upnp_rating,
 
197
 
 
198
        /*!
 
199
         * upnp:album.
 
200
         */
 
201
        upnp_album,
 
202
 
 
203
        /*!
 
204
         * upnp:genre.
 
205
         */
 
206
        upnp_genre,
 
207
 
 
208
        /*!
 
209
         * upnp:artist.
 
210
         */
 
211
        upnp_artist,
 
212
 
 
213
        /*!
 
214
         * upnp:originalTrackNumber.
 
215
         */
 
216
        upnp_originalTrackNumber,
 
217
 
 
218
        /*!
 
219
         * upnp:producer.
 
220
         */
 
221
        upnp_producer,
 
222
 
 
223
        /*!
 
224
         * upnp:actor.
 
225
         */
 
226
        upnp_actor,
 
227
 
 
228
        /*!
 
229
         * upnp:playList.
 
230
         */
 
231
        upnp_playList,
 
232
 
 
233
        /*!
 
234
         * upnp:director.
 
235
         */
 
236
        upnp_director,
 
237
 
 
238
        /*!
 
239
         * upnp:playbackCount.
 
240
         */
 
241
        upnp_playbackCount,
 
242
 
 
243
        /*!
 
244
         * upnp:lastPlaybackTime.
 
245
         */
 
246
        upnp_lastPlaybackTime,
 
247
 
 
248
        /*!
 
249
         * upnp:lastPlaybackPosition.
 
250
         */
 
251
        upnp_lastPlaybackPosition,
 
252
 
 
253
        /*!
 
254
         * upnp:recordedStartDateTime.
 
255
         */
 
256
        upnp_recordedStartDateTime,
 
257
 
 
258
        /*!
 
259
         * upnp:recordedDuration.
 
260
         */
 
261
        upnp_recordedDuration,
 
262
 
 
263
        /*!
 
264
         * upnp:recordedDayOfWeek.
 
265
         */
 
266
        upnp_recordedDayOfWeek,
 
267
 
 
268
        /*!
 
269
         * upnp:srsRecordScheduleID.
 
270
         */
 
271
        upnp_srsRecordScheduleID,
 
272
 
 
273
        /*!
 
274
         * upnp:srsRecordTaskID.
 
275
         */
 
276
        upnp_srsRecordTaskID,
 
277
 
 
278
        /*!
 
279
         * upnp:author.
 
280
         */
 
281
        upnp_author,
 
282
 
 
283
        /*!
 
284
         * upnp:storageMedium.
 
285
         */
 
286
        upnp_storageMedium,
 
287
 
 
288
        /*!
 
289
         * upnp:storageTotal.
 
290
         */
 
291
        upnp_storageTotal,
 
292
 
 
293
        /*!
 
294
         * upnp:storageUsed.
 
295
         */
 
296
        upnp_storageUsed,
 
297
 
 
298
        /*!
 
299
         * upnp:storageFree.
 
300
         */
 
301
        upnp_storageFree,
 
302
 
 
303
        /*!
 
304
         * upnp:storageMaxPartition.
 
305
         */
 
306
        upnp_storageMaxPartition,
 
307
 
 
308
        /*!
 
309
         * upnp:containerUpdateID.
 
310
         */
 
311
        upnp_containerUpdateID,
 
312
 
 
313
        /*!
 
314
         * upnp:totalDeletedChildCount.
 
315
         */
 
316
        upnp_totalDeletedChildCount,
 
317
 
 
318
        /*!
 
319
         * upnp:createClass.
 
320
         */
 
321
        upnp_createClass,
 
322
 
 
323
        /*!
 
324
         * upnp:searchClass.
 
325
         */
 
326
        upnp_searchClass,
 
327
 
 
328
        /*!
 
329
         * upnp:region.
 
330
         */
 
331
        upnp_region,
 
332
 
 
333
        /*!
 
334
         * upnp:radioCallSign.
 
335
         */
 
336
        upnp_radioCallSign,
 
337
 
 
338
        /*!
 
339
         * upnp:radioStationID.
 
340
         */
 
341
        upnp_radioStationID,
 
342
 
 
343
        /*!
 
344
         * upnp:radioBand.
 
345
         */
 
346
        upnp_radioBand,
 
347
 
 
348
        /*!
 
349
         * upnp:channelNr.
 
350
         */
 
351
        upnp_channelNr,
 
352
 
 
353
        /*!
 
354
         * upnp:signalStrength.
 
355
         */
 
356
        upnp_signalStrength,
 
357
 
 
358
        /*!
 
359
         * upnp:signalLocked.
 
360
         */
 
361
        upnp_signalLocked,
 
362
 
 
363
        /*!
 
364
         * upnp:tuned.
 
365
         */
 
366
        upnp_tuned,
 
367
 
 
368
        /*!
 
369
         * upnp:recordable.
 
370
         */
 
371
        upnp_recordable,
 
372
 
 
373
        /*!
 
374
         * upnp:dvdRegionCode.
 
375
         */
 
376
        upnp_dvdRegionCode,
 
377
 
 
378
        /*!
 
379
         * upnp:channelName.
 
380
         */
 
381
        upnp_channelName,
 
382
 
 
383
        /*!
 
384
         * upnp:scheduledStartTime.
 
385
         */
 
386
        upnp_scheduledStartTime,
 
387
 
 
388
        /*!
 
389
         * upnp:scheduledEndTime.
 
390
         */
 
391
        upnp_scheduledEndTime,
 
392
 
 
393
        /*!
 
394
         * upnp:scheduledDuration.
 
395
         */
 
396
        upnp_scheduledDuration,
 
397
 
 
398
        /*!
 
399
         * upnp:programTitle.
 
400
         */
 
401
        upnp_programTitle,
 
402
 
 
403
        /*!
 
404
         * upnp:seriesTitle.
 
405
         */
 
406
        upnp_seriesTitle,
 
407
 
 
408
        /*!
 
409
         * upnp:episodeCount.
 
410
         */
 
411
        upnp_episodeCount,
 
412
 
 
413
        /*!
 
414
         * upnp:episodeNumber.
 
415
         */
 
416
        upnp_episodeNumber,
 
417
 
 
418
        /*!
 
419
         * upnp:icon.
 
420
         */
 
421
        upnp_icon,
 
422
 
 
423
        /*!
 
424
         * upnp:callSign.
 
425
         */
 
426
        upnp_callSign,
 
427
 
 
428
        /*!
 
429
         * upnp:price.
 
430
         */
 
431
        upnp_price,
 
432
 
 
433
        /*!
 
434
         * upnp:payPerView.
 
435
         */
 
436
        upnp_payPerView,
 
437
 
 
438
        /*!
 
439
         * upnp:bookmarkedObjectID.
 
440
         */
 
441
        upnp_bookmarkedObjectID,
 
442
 
 
443
        /*!
 
444
         * upnp:deviceUdn.
 
445
         */
 
446
        upnp_deviceUdn,
 
447
 
 
448
        /*!
 
449
         * upnp:stateVariableCollection.
 
450
         */
 
451
        upnp_stateVariableCollection,
 
452
 
 
453
        /*!
 
454
         * upnp:channelGroupName.
 
455
         */
 
456
        upnp_channelGroupName,
 
457
 
 
458
        /*!
 
459
         * upnp:epgProviderName.
 
460
         */
 
461
        upnp_epgProviderName,
 
462
 
 
463
        /*!
 
464
         * upnp:dateTimeRange.
 
465
         */
 
466
        upnp_dateTimeRange,
 
467
 
 
468
        /*!
 
469
         * upnp:serviceProvider.
 
470
         */
 
471
        upnp_serviceProvider,
 
472
 
 
473
        /*!
 
474
         * upnp:programID.
 
475
         */
 
476
        upnp_programID,
 
477
 
 
478
        /*!
 
479
         * upnp:seriesID.
 
480
         */
 
481
        upnp_seriesID,
 
482
 
 
483
        /*!
 
484
         * upnp:channelID.
 
485
         */
 
486
        upnp_channelID,
 
487
 
 
488
        /*!
 
489
         * upnp:programCode.
 
490
         */
 
491
        upnp_programCode,
 
492
 
 
493
        /*!
 
494
         * upnp:episodeType.
 
495
         */
 
496
        upnp_episodeType,
 
497
 
 
498
        /*!
 
499
         * upnp:networkAffiliation.
 
500
         */
 
501
        upnp_networkAffiliation,
 
502
 
 
503
        /*!
 
504
         * upnp:foreignMetadata.
 
505
         */
 
506
        upnp_foreignMetadata,
 
507
 
 
508
        /*!
 
509
         * upnp:artistDiscographyURI.
 
510
         */
 
511
        upnp_artistDiscographyURI,
 
512
 
 
513
        /*!
 
514
         * upnp:lyricsURI.
 
515
         */
 
516
        upnp_lyricsURI,
 
517
 
 
518
        /*!
 
519
         * upnp:albumArtURI.
 
520
         */
 
521
        upnp_albumArtURI,
 
522
 
 
523
        /*!
 
524
         * upnp:toc
 
525
         */
 
526
        upnp_toc,
 
527
 
 
528
        /*!
 
529
         * upnp:userAnnotation.
 
530
         */
 
531
        upnp_userAnnotation,
 
532
 
 
533
        /*!
 
534
         * DIDL-Lite \@desc.
 
535
         */
 
536
        dlite_desc
 
537
        // 90
 
538
    };
 
539
 
 
540
    /*!
 
541
     * \brief Returns information of the specified property.
 
542
     *
 
543
     * \param property specifies the CDS property.
 
544
     *
 
545
     * \return information of the specified property.
 
546
     */
 
547
    const HCdsPropertyInfo& get(Property property) const;
 
548
 
 
549
    /*!
 
550
     * \brief Returns information of the specified property.
 
551
     *
 
552
     * \param property specifies the CDS property.
 
553
     *
 
554
     * \return information of the specified property.
 
555
     */
 
556
    const HCdsPropertyInfo& get(const QString& property) const;
 
557
};
 
558
 
 
559
}
 
560
}
 
561
}
 
562
 
 
563
#endif /* HCDS_PROPERTIES_H_ */