From 0e9d21145a61416615419dc97a801a82f3e97fe6 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 22 Dec 2012 09:13:31 +0000 Subject: changed PlayListParser class git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3083 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistparser.h | 36 +++++++++--------------------------- 1 file changed, 9 insertions(+), 27 deletions(-) (limited to 'src/qmmpui/playlistparser.h') 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 #include "playlistformat.h" /*! @brief The PlaylistParser class provides a simple api to access playlist format plugins. * @author Ilya Kotov */ -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 formats(); - /*! - * Returns a pointer to the object's instance. - */ - static PlayListParser* instance(); + static QList *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 m_formats; - static PlayListParser* m_instance; + PlayListParser(){} + static void checkFormats(); + static QList *m_formats; + }; -- cgit v1.2.3-13-gbd6f