| TagLib 1.13 |  |

s3mfile.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, 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_S3MFILE_H
27#define TAGLIB_S3MFILE_H
28
29#include "tfile.h"
30#include "audioproperties.h"
31#include "taglib_export.h"
32#include "modfilebase.h"
33#include "modtag.h"
34#include "s3mproperties.h"
35
36 namespace TagLib {
37
38 namespace S3M {
39
40 class TAGLIB_EXPORT File : public Mod::FileBase {
41 public:
49 File(FileName file, bool readProperties = true,
50 AudioProperties::ReadStyle propertiesStyle =
51 AudioProperties::Average);
52
63 File(IOStream *stream, bool readProperties = true,
64 AudioProperties::ReadStyle propertiesStyle =
65 AudioProperties::Average);
66
70 virtual ~File();
71
72 Mod::Tag *tag() const;
73
78 PropertyMap properties() const;
79
84 PropertyMap setProperties(const PropertyMap &);
85
90 S3M::Properties *audioProperties() const;
91
98 bool save();
99
100 private:
101 File(const File &);
102 File &operator=(const File &);
103
104 void read(bool readProperties);
105
106 class FilePrivate;
107 FilePrivate *d;
108 };
109 }
110}
111
112#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::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
TagLib::S3M::File
Definition: s3mfile.h:40
TagLib::S3M::File::properties
PropertyMap properties() const
TagLib::S3M::File::~File
virtual ~File()
TagLib::S3M::File::setProperties
PropertyMap setProperties(const PropertyMap &)
TagLib::S3M::File::audioProperties
S3M::Properties * audioProperties() const
TagLib::S3M::File::save
bool save()
TagLib::S3M::File::tag
Mod::Tag * tag() const
TagLib::S3M::File::File
File(IOStream *stream, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average)
TagLib::S3M::File::File
File(FileName file, bool readProperties=true, AudioProperties::ReadStyle propertiesStyle=AudioProperties::Average)
TagLib::S3M::Properties
Definition: s3mproperties.h:34
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
s3mproperties.h
taglib_export.h
TAGLIB_EXPORT
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
tfile.h