modfile.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_MODFILE_H
23 #define TAGLIB_MODFILE_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 "modproperties.h"
31 
32 namespace TagLib {
33 
34  namespace Mod {
35 
37  {
38  public:
44  File(FileName file, bool readProperties = true,
45  AudioProperties::ReadStyle propertiesStyle =
47 
56  File(IOStream *stream, bool readProperties = true,
57  AudioProperties::ReadStyle propertiesStyle =
59 
63  virtual ~File();
64 
65  Mod::Tag *tag() const;
66 
71  PropertyMap properties() const;
72 
77  PropertyMap setProperties(const PropertyMap &);
82  Mod::Properties *audioProperties() const;
83 
90  bool save();
91 
92  private:
93  File(const File &);
94  File &operator=(const File &);
95 
96  void read(bool readProperties);
97 
98  class FilePrivate;
99  FilePrivate *d;
100  };
101 
102  }
103 
104 }
105 
106 #endif
Definition: modproperties.h:32
A map for format-independent <key,valuelist> tag representations.
Definition: tpropertymap.h:104
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:53
Definition: modfilebase.h:37
Read more of the file and make better values guesses.
Definition: audioproperties.h:57
ReadStyle
Definition: audioproperties.h:53
#define TAGLIB_EXPORT
Definition: taglib_export.h:40
Definition: modfile.h:36
Definition: modtag.h:43
const char * FileName
Definition: tiostream.h:48