aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/metadataformatter.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-21 17:13:34 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-11-21 17:13:34 +0000
commit90b71df1362b7e128ca99ee09cc8402b8421f76d (patch)
tree24faee1a7b7b0f7610015a8f57ffa60b2865f7c9 /src/qmmpui/metadataformatter.h
parentbfda47d04f9f520638f652bdb7fffb6de3dfd992 (diff)
downloadqmmp-90b71df1362b7e128ca99ee09cc8402b8421f76d.tar.gz
qmmp-90b71df1362b7e128ca99ee09cc8402b8421f76d.tar.bz2
qmmp-90b71df1362b7e128ca99ee09cc8402b8421f76d.zip
added metadata formatter
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1389 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/metadataformatter.h')
-rw-r--r--src/qmmpui/metadataformatter.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/qmmpui/metadataformatter.h b/src/qmmpui/metadataformatter.h
new file mode 100644
index 000000000..c826cb499
--- /dev/null
+++ b/src/qmmpui/metadataformatter.h
@@ -0,0 +1,43 @@
+/***************************************************************************
+ * Copyright (C) 2009 by Ilya Kotov *
+ * forkotov02@hotmail.ru *
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+
+#ifndef METADATAFORMATTER_H
+#define METADATAFORMATTER_H
+
+#include <QString>
+#include <QMap>
+#include <qmmp/qmmp.h>
+
+/*!
+ * @author Ilya Kotov <forkotov02@hotmail.ru>
+ */
+class MetaDataFormatter
+{
+public:
+ MetaDataFormatter(const QString &format);
+ QString parse(const QMap<Qmmp::MetaData, QString> metaData);
+
+private:
+ QString m_format;
+ QString processIfKeyWord(QString title);
+
+};
+
+#endif // METADATAFORMATTER_H