diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-22 09:13:31 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2012-12-22 09:13:31 +0000 |
| commit | 0e9d21145a61416615419dc97a801a82f3e97fe6 (patch) | |
| tree | ab10a526c10a2ba6b38420f5907c9d11b6f88dff /src/qmmpui/playlistparser.h | |
| parent | c7848bc541b316324ed3fe1ff8f5613ccf13a142 (diff) | |
| download | qmmp-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.h | 36 |
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; + }; |
