Just a little hack to make the Vorbis classes appear in the Ogg namespace
authorScott Wheeler <wheeler@kde.org>
Thu, 6 May 2004 16:59:13 +0000 (16:59 +0000)
committerScott Wheeler <wheeler@kde.org>
Thu, 6 May 2004 16:59:13 +0000 (16:59 +0000)
in the API docs and a tyepdef to make this work (since this is how things
will be in the next BIC version).

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@309150 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

Makefile.am
ogg/vorbis/vorbisfile.h
ogg/vorbis/vorbisproperties.h

index 6edde42dbd0f9d5446a0fc4d3dea91d9559a2596..7cdd80dfcc2f8189cac2bcefe814062776668d38 100644 (file)
@@ -46,5 +46,6 @@ apidox:
        echo "HTML_STYLESHEET     = doc/common/doxygen.css" >> taglib.doxyfile ; \
        echo "FILE_PATTERNS       = *.h" >> taglib.doxyfile ; \
        echo "PREDEFINED          = DO_NOT_DOCUMENT" >> taglib.doxyfile ; \
+       echo "PREDEFINED          = DOXYGEN" >> taglib.doxyfile ; \
        echo "EXTRACT_ALL         = YES" >> taglib.doxyfile ; \
        doxygen taglib.doxyfile
index 8cbcb449e57e5a2e5b0a7426ddd9b2e863b46bd5..cc1e9f9cffedd6a967a6a25a66dfd0f9f3190540 100644 (file)
 
 namespace TagLib {
 
+/*
+ * This is just to make this appear to be in the Ogg namespace in the
+ * documentation.  The typedef below will make this work with the current code.
+ * In the next BIC version of TagLib this will be really moved into the Ogg
+ * namespace.
+ */
+
+#ifdef DOXYGEN
+  namespace Ogg {
+#endif
+
   //! A namespace containing classes for Vorbis metadata
 
   namespace Vorbis {
@@ -84,6 +95,19 @@ namespace TagLib {
       FilePrivate *d;
     };
   }
+
+/*
+ * To keep compatibility with the current version put Vorbis in the Ogg namespace
+ * only in the docs and provide a typedef to make it work.  In the next BIC
+ * version this will be removed and it will only exist in the Ogg namespace. 
+ */
+
+#ifdef DOXYGEN
+  }
+#else
+  namespace Ogg { namespace Vorbis { typedef TagLib::Vorbis::File File; } }
+#endif
+
 }
 
 #endif
index 9ada34b8a43fa0387449a0d8cdee6823168a655f..01dffed94f9c4abd951b979d2ed573d9dc918ab0 100644 (file)
 
 namespace TagLib {
 
+/*
+ * This is just to make this appear to be in the Ogg namespace in the
+ * documentation.  The typedef below will make this work with the current code.
+ * In the next BIC version of TagLib this will be really moved into the Ogg
+ * namespace.
+ */
+
+#ifdef DOXYGEN
+  namespace Ogg {
+#endif
+
   namespace Vorbis {
 
     class File;
@@ -91,6 +102,19 @@ namespace TagLib {
       PropertiesPrivate *d;
     };
   }
+
+/*
+ * To keep compatibility with the current version put Vorbis in the Ogg namespace
+ * only in the docs and provide a typedef to make it work.  In the next BIC
+ * version this will be removed and it will only exist in the Ogg namespace. 
+ */
+
+#ifdef DOXYGEN
+  }
+#else
+  namespace Ogg { namespace Vorbis { typedef TagLib::AudioProperties AudioProperties; } }
+#endif
+
 }
 
 #endif