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, 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_MODFILE_H
27 #define TAGLIB_MODFILE_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 "modproperties.h"
35 
36 namespace TagLib {
37 
38  namespace Mod {
39 
41  {
42  public:
50  File(FileName file, bool readProperties = true,
51  AudioProperties::ReadStyle propertiesStyle =
53 
64  File(IOStream *stream, bool readProperties = true,
65  AudioProperties::ReadStyle propertiesStyle =
67 
71  virtual ~File();
72 
73  Mod::Tag *tag() const;
74 
79  PropertyMap properties() const;
80 
85  PropertyMap setProperties(const PropertyMap &);
90  Mod::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 }
113 
114 #endif
Definition: modproperties.h:36
A map for format-independent tag representations.
Definition: tpropertymap.h:108
An abstract class that provides operations on a sequence of bytes.
Definition: tiostream.h:62
Definition: modfilebase.h:41
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:40
Definition: modtag.h:47
const char * FileName
Definition: tiostream.h:57