TagLib  1.13.1
mp4item.h
Go to the documentation of this file.
1 /**************************************************************************
2  copyright : (C) 2007 by Lukáš Lalinský
3  email : lalinsky@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 TAGLIB_MP4ITEM_H
27 #define TAGLIB_MP4ITEM_H
28 
29 #include "tstringlist.h"
30 #include "mp4coverart.h"
31 #include "taglib_export.h"
32 
33 namespace TagLib {
34  namespace MP4 {
36  {
37  public:
38  struct IntPair {
39  int first, second;
40  };
41 
42  Item();
43  Item(const Item &item);
44 
48  Item &operator=(const Item &item);
49 
53  void swap(Item &item);
54 
55  ~Item();
56 
57  Item(int value);
58  Item(unsigned char value);
59  Item(unsigned int value);
60  Item(long long value);
61  Item(bool value);
62  Item(int first, int second);
63  Item(const StringList &value);
64  Item(const ByteVectorList &value);
65  Item(const CoverArtList &value);
66 
67  void setAtomDataType(AtomDataType type);
68  AtomDataType atomDataType() const;
69 
70  int toInt() const;
71  unsigned char toByte() const;
72  unsigned int toUInt() const;
73  long long toLongLong() const;
74  bool toBool() const;
75  IntPair toIntPair() const;
79 
80  bool isValid() const;
81 
82  private:
83  class ItemPrivate;
84  ItemPrivate *d;
85  };
86  } // namespace MP4
87 } // namespace TagLib
88 #endif
A list of ByteVectors.
Definition: tbytevectorlist.h:42
A generic, implicitly shared list.
Definition: tlist.h:54
Definition: mp4item.h:36
Item(long long value)
void setAtomDataType(AtomDataType type)
Item(const CoverArtList &value)
Item & operator=(const Item &item)
ByteVectorList toByteVectorList() const
int toInt() const
StringList toStringList() const
bool toBool() const
Item(const StringList &value)
bool isValid() const
Item(unsigned char value)
Item(bool value)
Item(unsigned int value)
long long toLongLong() const
unsigned int toUInt() const
Item(const Item &item)
void swap(Item &item)
AtomDataType atomDataType() const
Item(const ByteVectorList &value)
unsigned char toByte() const
Item(int first, int second)
IntPair toIntPair() const
CoverArtList toCoverArtList() const
A list of strings.
Definition: tstringlist.h:46
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
Definition: mp4item.h:38
int first
Definition: mp4item.h:39
#define TAGLIB_EXPORT
Definition: taglib_export.h:40