summaryrefslogtreecommitdiffstats
path: root/src/pluginloader/formatinfoloader.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-01 19:09:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-03-01 19:09:31 +0000
commitf2cfda2a54780868dfe0af7bd652fcd4906547da (patch)
treec6ac23545528f5701818424f2af5f79ce3665e6c /src/pluginloader/formatinfoloader.h
downloadsoundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz
soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/pluginloader/formatinfoloader.h')
-rwxr-xr-xsrc/pluginloader/formatinfoloader.h67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/pluginloader/formatinfoloader.h b/src/pluginloader/formatinfoloader.h
new file mode 100755
index 0000000..f36f7fe
--- /dev/null
+++ b/src/pluginloader/formatinfoloader.h
@@ -0,0 +1,67 @@
+
+
+#ifndef FORMATINFOLOADER_H
+#define FORMATINFOLOADER_H
+
+#include <qobject.h>
+#include <qstringlist.h>
+#include <qdom.h>
+
+/**
+ * @short The complete information about that format
+ * @author Daniel Faust <[email protected]>
+ * @version 0.3
+ */
+class FormatInfo
+{
+public:
+ /**
+ * Constructor
+ */
+ FormatInfo();
+
+ /**
+ * Destructor
+ */
+ virtual ~FormatInfo();
+
+ QStringList mime_types;
+ QStringList extensions;
+ QString description;
+ QStringList urls;
+ enum CompressionType {
+ lossy = 0x0001, // encode with loss
+ lossless = 0x0002, // encode without loss
+ hybrid = 0x0004 // encode a file with loss and a correction file
+ } compressionType;
+ int size;
+};
+
+/**
+ * @short The format info loader that provides information about the compression type and a format description
+ * @author Daniel Faust <[email protected]>
+ * @version 0.3
+ */
+class FormatInfoLoader : public QObject
+{
+ Q_OBJECT
+public:
+ /**
+ * Constructor
+ */
+ FormatInfoLoader();
+
+ /**
+ * Destructor
+ */
+ virtual ~FormatInfoLoader();
+
+ /** is this file a converter plugin and loadable? */
+ bool verifyFile( QString );
+ /** load a given file */
+ FormatInfo* loadFile( QString );
+ /** the dom tree for loading the xml file */
+ QDomDocument domTree;
+};
+
+#endif // FORMATINFOLOADER_H