| TagLib 1.13 |  |

itfile.h
Go to the documentation of this file.
1/***************************************************************************
2 copyright : (C) 2011 by Mathias Panzenböck
3 email : grosser.meister.morti@gmx.net
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, *
19 * MA 02110-1301 USA *
20 ***************************************************************************/
21
22#ifndef TAGLIB_ITFILE_H
23#define TAGLIB_ITFILE_H
24
25#include "tfile.h"
26#include "audioproperties.h"
27#include "taglib_export.h"
28#include "modfilebase.h"
29#include "modtag.h"
30#include "itproperties.h"
31
32 namespace TagLib {
33
34 namespace IT {
35
36 class TAGLIB_EXPORT File : public Mod::FileBase {
37 public:
45 File(FileName file, bool readProperties = true,
46 AudioProperties::ReadStyle propertiesStyle =
47 AudioProperties::Average);
48
59 File(IOStream *stream, bool readProperties = true,
60 AudioProperties::ReadStyle propertiesStyle =
61 AudioProperties::Average);
62
66 virtual ~File();
67
68 Mod::Tag *tag() const;
69
74 PropertyMap properties() const;
75
80 PropertyMap setProperties(const PropertyMap &);
81
86 IT::Properties *audioProperties() const;
87
94 bool save();
95
96
97 private:
98 File(const File &);
99 File &operator=(const File &);
100
101 void read(bool readProperties);
102
103 class FilePrivate;
104 FilePrivate *d;
105 };
106 }
107}
108
109#endif
audioproperties.h
TagLib::AudioProperties::ReadStyle
ReadStyle
Definition: audioproperties.h:53
TagLib::AudioProperties::Average
@ Average
Read more of the file and make better values guesses.
Definition: audioproperties.h:57
TagLib::IOStream
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:63
TagLib::IT::File
Definition: itfile.h:36
TagLib::IT::File::setProperties
PropertyMap setProperties(const PropertyMap &)
TagLib::IT::File::File
File(IOStream *stream, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average)
TagLib::IT::File::File
File(FileName file, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average)
TagLib::IT::File::tag
Mod::Tag * tag() const
TagLib::IT::File::properties
PropertyMap properties() const
TagLib::IT::File::~File
virtual ~File()
TagLib::IT::File::audioProperties
IT::Properties * audioProperties() const
TagLib::IT::File::save
bool save()
TagLib::IT::Properties
Definition: itproperties.h:34
TagLib::Mod::FileBase
Definition: modfilebase.h:42
TagLib::Mod::Tag
Definition: modtag.h:48
TagLib::PropertyMap
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:119
itproperties.h
modfilebase.h
modtag.h
TagLib
A namespace for all TagLib related classes and functions.
Definition: apefile.h:41
TagLib::FileName
const char * FileName
Definition: tiostream.h:57
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
tfile.h