]> granicus.if.org Git - taglib/commitdiff
Reformatting
authorLukáš Lalinský <lalinsky@gmail.com>
Thu, 28 Jul 2011 17:16:32 +0000 (19:16 +0200)
committerLukáš Lalinský <lalinsky@gmail.com>
Thu, 28 Jul 2011 17:16:32 +0000 (19:16 +0200)
taglib/mod/modfile.h
taglib/mod/modfilebase.h
taglib/mod/modproperties.h
taglib/mod/modtag.h

index 6fd41b004bf846e57059757ae94a41800078bf0b..f66a0ef3fff6a5115b4df69e821e7d1aba7c7450 100644 (file)
@@ -33,57 +33,60 @@ namespace TagLib {
 
   namespace Mod {
 
-    class TAGLIB_EXPORT File : public TagLib::Mod::FileBase {
-      public:
-        /*!
-         * Contructs a Protracker file from \a file. If \a readProperties
-         * is true the file's audio properties will also be read using
-         * \a propertiesStyle. If false, \a propertiesStyle is ignored.
-         */
-        File(FileName file, bool readProperties = true,
-             AudioProperties::ReadStyle propertiesStyle =
-             AudioProperties::Average);
-
-        /*!
-         * Contructs a Protracker file from \a stream. If \a readProperties
-         * is true the file's audio properties will also be read using
-         * \a propertiesStyle. If false, \a propertiesStyle is ignored.
-         */
-        File(IOStream *stream, bool readProperties = true,
-             AudioProperties::ReadStyle propertiesStyle =
-             AudioProperties::Average);
-
-        /*!
-         * Destroys this instance of the File.
-         */
-        virtual ~File();
-
-        Mod::Tag *tag() const;
-
-        /*!
-         * Returns the Mod::Properties for this file. If no audio properties
-         * were read then this will return a null pointer.
-         */
-        Mod::Properties *audioProperties() const;
-
-        /*!
-         * Save the file.
-         * This is the same as calling save(AllTags);
-         *
-         * \note Saving Protracker tags is not supported.
-         */
-        bool save();
-
-      private:
-        File(const File &);
-        File &operator=(const File &);
-
-        void read(bool readProperties);
-
-        class FilePrivate;
-        FilePrivate *d;
+    class TAGLIB_EXPORT File : public TagLib::Mod::FileBase
+    {
+    public:
+      /*!
+       * Contructs a Protracker file from \a file. If \a readProperties
+       * is true the file's audio properties will also be read using
+       * \a propertiesStyle. If false, \a propertiesStyle is ignored.
+       */
+      File(FileName file, bool readProperties = true,
+           AudioProperties::ReadStyle propertiesStyle =
+           AudioProperties::Average);
+
+      /*!
+       * Contructs a Protracker file from \a stream. If \a readProperties
+       * is true the file's audio properties will also be read using
+       * \a propertiesStyle. If false, \a propertiesStyle is ignored.
+       */
+      File(IOStream *stream, bool readProperties = true,
+           AudioProperties::ReadStyle propertiesStyle =
+           AudioProperties::Average);
+
+      /*!
+       * Destroys this instance of the File.
+       */
+      virtual ~File();
+
+      Mod::Tag *tag() const;
+
+      /*!
+       * Returns the Mod::Properties for this file. If no audio properties
+       * were read then this will return a null pointer.
+       */
+      Mod::Properties *audioProperties() const;
+
+      /*!
+       * Save the file.
+       * This is the same as calling save(AllTags);
+       *
+       * \note Saving Protracker tags is not supported.
+       */
+      bool save();
+
+    private:
+      File(const File &);
+      File &operator=(const File &);
+
+      void read(bool readProperties);
+
+      class FilePrivate;
+      FilePrivate *d;
     };
+
   }
+
 }
 
 #endif
index d03af493a2cade56cf81aa58bc2e38d187136140..383bde11898779d1c705cb437e2f58caaf67393c 100644 (file)
@@ -31,7 +31,9 @@
 #include <algorithm>
 
 namespace TagLib {
+
   namespace Mod {
+
     class TAGLIB_EXPORT FileBase : public TagLib::File
     {
     protected:
@@ -52,7 +54,9 @@ namespace TagLib {
       bool readU16B(ushort &number);
       bool readU32B(ulong &number);
     };
+
   }
+
 }
 
 #endif
index 02a1c60654c3a80abeb7054e5be28e93837ed9e6..1e04baafe3ebcccdb9511efcbf94852d3172521e 100644 (file)
 #include "audioproperties.h"
 
 namespace TagLib {
+
   namespace Mod {
-    class TAGLIB_EXPORT Properties : public AudioProperties {
-      friend class File;
+
+    class TAGLIB_EXPORT Properties : public AudioProperties
+    {
     public:
       Properties(AudioProperties::ReadStyle propertiesStyle);
       virtual ~Properties();
       
-      int length()     const;
-      int bitrate()    const;
+      int length() const;
+      int bitrate() const;
       int sampleRate() const;
-      int channels()   const;
+      int channels() const;
 
-      uint  instrumentCount()  const;
+      uint instrumentCount() const;
       uchar lengthInPatterns() const;
 
       void setChannels(int channels);
@@ -47,13 +49,17 @@ namespace TagLib {
       void setLengthInPatterns(uchar lengthInPatterns);
 
     private:
+      friend class File;
+
       Properties(const Properties&);
       Properties &operator=(const Properties&);
 
       class PropertiesPrivate;
       PropertiesPrivate *d;
     };
+
   }
+
 }
 
 #endif
index 93467450e9c11f5704033e4add2d26a3a10674ed..253a46664871d02c820c0f8e24d692c79ba1c644 100644 (file)
@@ -25,7 +25,9 @@
 #include "tag.h"
 
 namespace TagLib {
+
   namespace Mod {
+
     /*!
      * Tags for module files (Mod, S3M, IT, XM).
      *
@@ -164,7 +166,9 @@ namespace TagLib {
       class TagPrivate;
       TagPrivate *d;
     };
+
   }
+
 }
 
 #endif