Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00046 #ifndef XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
00047 #define XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H
00048
00049
00050 #include "../XspfExtension.h"
00051
00052 namespace Xspf {
00053 namespace ProjectOpus {
00054
00055
00056 #define PROJECT_OPUS_NS_HOME _PT("http://www.projectopus.com") ///< Project Opus namespace URI
00057 #define PROJECT_OPUS_NS_HOME_LEN 26 ///< Project Opus namespace URI string length
00058
00059
00063 enum ProjectOpusPlaylistType {
00064 TYPE_PLAYLIST,
00065 TYPE_ALBUM
00066 };
00067
00068
00069 class ProjectOpusPlaylistExtensionPrivate;
00070
00071
00075 class ProjectOpusPlaylistExtension : public XspfExtension {
00076
00077 private:
00079 ProjectOpusPlaylistExtensionPrivate * const d;
00080
00081
00082 public:
00086 ProjectOpusPlaylistExtension();
00087
00093 ProjectOpusPlaylistExtension(ProjectOpusPlaylistExtension const & source);
00094
00100 ProjectOpusPlaylistExtension & operator=(ProjectOpusPlaylistExtension const & source);
00101
00105 ~ProjectOpusPlaylistExtension();
00106
00112 ProjectOpusPlaylistType getType() const;
00113
00119 unsigned int getNodeId() const;
00120
00126 void setType(ProjectOpusPlaylistType type);
00127
00133 void setNodeId(unsigned int nodeId);
00134
00135 XspfExtension * clone() const;
00136
00137 private:
00138 XspfExtensionWriter * newWriter(XspfXmlFormatter * output,
00139 XML_Char const * baseUri) const;
00140
00141 public:
00148 static XML_Char const * typeToString(ProjectOpusPlaylistType type);
00149
00156 static XML_Char * nodeIdToString(unsigned int nodeId);
00157
00158 static XML_Char const * const namespaceKey;
00159 static XML_Char const * const applicationURI;
00160
00161 };
00162
00163
00164 }
00165 }
00166
00167 #endif // XSPF_PROJECT_OPUS_PLAYLIST_EXTENSION_H