aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/playlistparser.h
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-12-22 09:13:31 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2012-12-22 09:13:31 +0000
commit0e9d21145a61416615419dc97a801a82f3e97fe6 (patch)
treeab10a526c10a2ba6b38420f5907c9d11b6f88dff /src/qmmpui/playlistparser.h
parentc7848bc541b316324ed3fe1ff8f5613ccf13a142 (diff)
downloadqmmp-0e9d21145a61416615419dc97a801a82f3e97fe6.tar.gz
qmmp-0e9d21145a61416615419dc97a801a82f3e97fe6.tar.bz2
qmmp-0e9d21145a61416615419dc97a801a82f3e97fe6.zip
changed PlayListParser class
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3083 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistparser.h')
-rw-r--r--src/qmmpui/playlistparser.h36
1 files changed, 9 insertions, 27 deletions
diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h
index 5ae770b4a..643730323 100644
--- a/src/qmmpui/playlistparser.h
+++ b/src/qmmpui/playlistparser.h
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2008 by Ilya Kotov *
+ * Copyright (C) 2008-2012 by Ilya Kotov *
* forkotov02@hotmail.ru *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -20,51 +20,33 @@
#ifndef PLAYLISTPARSER_H
#define PLAYLISTPARSER_H
-#include <QObject>
#include "playlistformat.h"
/*! @brief The PlaylistParser class provides a simple api to access playlist format plugins.
* @author Ilya Kotov <forkotov02@hotmail.ru>
*/
-class PlayListParser : public QObject
+class PlayListParser
{
- Q_OBJECT
public:
/*!
- * Object constructor,
- * @param parent Parent object
- */
- PlayListParser(QObject *parent);
- /*!
- * Destructor
- */
- ~PlayListParser();
- /*!
* Returns a list of supported file extensions.
*/
- QStringList extensions();
- /*!
- * Returns \b true if file \b filePath is supported, otherwise returns \b false
- */
- bool supports(const QString &filePath);
+ static QStringList filters();
/*!
* Returns a list of the installed playlist formats.
*/
- QList<PlayListFormat*> formats();
- /*!
- * Returns a pointer to the object's instance.
- */
- static PlayListParser* instance();
+ static QList<PlayListFormat*> *formats();
/*!
* Finds playlist format by file path \b filePath
* Returns \b 0 if file \b filePath is unsupported.
*/
- PlayListFormat *findByPath(const QString &filePath);
+ static PlayListFormat *findByPath(const QString &filePath);
private:
- void loadExternalPlaylistFormats();
- QList<PlayListFormat*> m_formats;
- static PlayListParser* m_instance;
+ PlayListParser(){}
+ static void checkFormats();
+ static QList<PlayListFormat*> *m_formats;
+
};