TagLib  1.13.1
asfpicture.h
Go to the documentation of this file.
1/**************************************************************************
2 copyright : (C) 2010 by Anton Sergunov
3 email : setosha@gmail.com
4 **************************************************************************/
5
6/***************************************************************************
7 * This library is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU Lesser General Public License version *
9 * 2.1 as published by the Free Software Foundation. *
10 * *
11 * This library is distributed in the hope that it will be useful, but *
12 * WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
14 * Lesser General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU Lesser General Public *
17 * License along with this library; if not, write to the Free Software *
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA *
19 * 02110-1301 USA *
20 * *
21 * Alternatively, this file is available under the Mozilla Public *
22 * License Version 1.1. You may obtain a copy of the License at *
23 * http://www.mozilla.org/MPL/ *
24 ***************************************************************************/
25
26#ifndef ASFPICTURE_H
27#define ASFPICTURE_H
28
29#include "tstring.h"
30#include "tbytevector.h"
31#include "taglib_export.h"
33
34namespace TagLib
35{
36 namespace ASF
37 {
38
40
50 public:
51
55 enum Type {
57 Other = 0x00,
59 FileIcon = 0x01,
63 FrontCover = 0x03,
65 BackCover = 0x04,
69 Media = 0x06,
71 LeadArtist = 0x07,
73 Artist = 0x08,
75 Conductor = 0x09,
77 Band = 0x0A,
79 Composer = 0x0B,
81 Lyricist = 0x0C,
95 BandLogo = 0x13,
98 };
99
104
108 Picture(const Picture& other);
109
113 virtual ~Picture();
114
118 Picture& operator=(const Picture& other);
119
123 void swap(Picture &other);
124
128 bool isValid() const;
129
138
146 void setMimeType(const String &value);
147
154 Type type() const;
155
163
170
176 void setDescription(const String &desc);
177
188
197 void setPicture(const ByteVector &p);
198
203
207 int dataSize() const;
208
209#ifndef DO_NOT_DOCUMENT
210 /* THIS IS PRIVATE, DON'T TOUCH IT! */
211 void parse(const ByteVector& );
212 static Picture fromInvalid();
213#endif
214
215 private:
216 class PicturePrivate;
217 PicturePrivate *d;
218 };
219 } // namespace ASF
220} // namespace TagLib
221
222#endif // ASFPICTURE_H
ByteVector picture() const
void setMimeType(const String &value)
ByteVector render() const
void setDescription(const String &desc)
String description() const
Picture(const Picture &other)
int dataSize() const
void setType(const ASF::Picture::Type &t)
Type
Definition asfpicture.h:55
@ Composer
Picture of the composer.
Definition asfpicture.h:79
@ BandLogo
Logo of the band or performer.
Definition asfpicture.h:95
@ Band
Picture of the band or orchestra.
Definition asfpicture.h:77
@ LeadArtist
Picture of the lead artist or soloist.
Definition asfpicture.h:71
@ ColouredFish
Picture of a large, coloured fish.
Definition asfpicture.h:91
@ Media
Image from the album itself.
Definition asfpicture.h:69
@ DuringPerformance
Picture of the artists during performance.
Definition asfpicture.h:87
@ LeafletPage
Inside leaflet page of the album.
Definition asfpicture.h:67
@ DuringRecording
Picture of the artists during recording.
Definition asfpicture.h:85
@ Conductor
Picture of the conductor.
Definition asfpicture.h:75
@ MovieScreenCapture
Picture from a movie or video related to the track.
Definition asfpicture.h:89
@ RecordingLocation
Picture of the recording location or studio.
Definition asfpicture.h:83
@ BackCover
Back cover image of the album.
Definition asfpicture.h:65
@ PublisherLogo
Logo of the publisher (record company)
Definition asfpicture.h:97
@ FileIcon
32x32 PNG image that should be used as the file icon
Definition asfpicture.h:59
@ Lyricist
Picture of the lyricist or text writer.
Definition asfpicture.h:81
@ OtherFileIcon
File icon of a different size or format.
Definition asfpicture.h:61
@ Illustration
Illustration related to the track.
Definition asfpicture.h:93
@ Artist
Picture of the artist or performer.
Definition asfpicture.h:73
@ Other
A type not enumerated below.
Definition asfpicture.h:57
@ FrontCover
Front cover image of the album.
Definition asfpicture.h:63
void setPicture(const ByteVector &p)
Picture & operator=(const Picture &other)
String mimeType() const
void swap(Picture &other)
bool isValid() const
A byte vector.
Definition tbytevector.h:46
A wide string class suitable for unicode.
Definition tstring.h:85
An implementation of ASF (WMA) metadata.
Definition asfattribute.h:37
A namespace for all TagLib related classes and functions.
Definition apefile.h:41
#define TAGLIB_EXPORT
Definition taglib_export.h:40