~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/cds_objects/hmusicgenre.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 HMUSICGENRE_H_
 
23
#define HMUSICGENRE_H_
 
24
 
 
25
#include <HUpnpAv/HGenreContainer>
 
26
 
 
27
namespace Herqq
 
28
{
 
29
 
 
30
namespace Upnp
 
31
{
 
32
 
 
33
namespace Av
 
34
{
 
35
 
 
36
class HMusicGenrePrivate;
 
37
 
 
38
/*!
 
39
 * \brief This class represents a \c genre \c container where the genre indicates a
 
40
 * <em>style of music</em>.
 
41
 *
 
42
 * A musicGenre container can
 
43
 * contain objects of class musicArtist, musicAlbum, audioItem or sub-musicgenres
 
44
 * of the same class (for example, Rock contains Alternative Rock).
 
45
 *
 
46
 * The class identifier specified by the AV Working Committee is
 
47
 * \c object.container.genre.musicGenre.
 
48
 *
 
49
 * \headerfile hmusicgenre.h HMusicGenre
 
50
 *
 
51
 * \ingroup hupnp_av_cds_objects
 
52
 *
 
53
 * \remarks This class is not thread-safe.
 
54
 */
 
55
class H_UPNP_AV_EXPORT HMusicGenre :
 
56
    public HGenreContainer
 
57
{
 
58
Q_OBJECT
 
59
H_DISABLE_COPY(HMusicGenre)
 
60
H_DECLARE_PRIVATE(HMusicGenre)
 
61
 
 
62
protected:
 
63
 
 
64
    /*!
 
65
     * Constructs a new instance.
 
66
     *
 
67
     * \param clazz specifies the UPnP class of the object. This cannot be empty.
 
68
     *
 
69
     * \param cdsType specifies the CDS type of the object. This cannot be
 
70
     * HObject::UndefinedCdsType.
 
71
     *
 
72
     * \sa isInitialized()
 
73
     */
 
74
    HMusicGenre(const QString& clazz = sClass(), CdsType cdsType = sType());
 
75
    HMusicGenre(HMusicGenrePrivate&);
 
76
 
 
77
    // Documented in HClonable
 
78
    virtual HMusicGenre* newInstance() const;
 
79
 
 
80
public:
 
81
 
 
82
    /*!
 
83
     * \brief Creates a new instance.
 
84
     *
 
85
     * \param title specifies the title of the object.
 
86
     *
 
87
     * \param parentId specifies the ID of the object that contains this
 
88
     * object. If the object has no parent, this has to be left empty.
 
89
     *
 
90
     * \param id specifies the ID of this object. If this is not specified,
 
91
     * a unique identifier within the running process is created for the object.
 
92
     *
 
93
     * \sa isValid()
 
94
     */
 
95
    HMusicGenre(
 
96
        const QString& title,
 
97
        const QString& parentId,
 
98
        const QString& id = QString());
 
99
 
 
100
    /*!
 
101
     * \brief Destroys the instance.
 
102
     */
 
103
    virtual ~HMusicGenre();
 
104
 
 
105
    /*!
 
106
     * \brief Returns the CdsType value of this class.
 
107
     *
 
108
     * \return The CdsType value of this class.
 
109
     */
 
110
    inline static CdsType sType() { return MusicGenre; }
 
111
 
 
112
    /*!
 
113
     * \brief Returns the class identifier specified by the AV Working Committee.
 
114
     *
 
115
     * \return The class identifier specified by the AV Working Committee.
 
116
     */
 
117
    inline static QString sClass() { return "object.container.genre.musicGenre"; }
 
118
 
 
119
    /*!
 
120
     * Creates a new instance with no title or parentID.
 
121
     *
 
122
     * \return a pointer to the newly created instance.
 
123
     *
 
124
     * \remarks the ownership of the object is transferred to the caller. Make sure
 
125
     * to delete the object.
 
126
     */
 
127
    inline static HMusicGenre* create() { return new HMusicGenre(); }
 
128
};
 
129
 
 
130
}
 
131
}
 
132
}
 
133
 
 
134
#endif /* HMUSICGENRE_H_ */