diff options
| -rw-r--r-- | src/qmmpui/playlisttask.cpp | 31 | ||||
| -rw-r--r-- | src/qmmpui/playlisttask_p.h | 37 | ||||
| -rw-r--r-- | src/qmmpui/qmmpui.pro | 344 |
3 files changed, 241 insertions, 171 deletions
diff --git a/src/qmmpui/playlisttask.cpp b/src/qmmpui/playlisttask.cpp new file mode 100644 index 000000000..fc23618e5 --- /dev/null +++ b/src/qmmpui/playlisttask.cpp @@ -0,0 +1,31 @@ +/*************************************************************************** + * Copyright (C) 2014 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#include "playlisttask_p.h" + +PlayListTask::PlayListTask(QObject *parent) : + QRunnable(parent) +{ +} + +void PlayListTask::run() +{ + +} diff --git a/src/qmmpui/playlisttask_p.h b/src/qmmpui/playlisttask_p.h new file mode 100644 index 000000000..39159cfdf --- /dev/null +++ b/src/qmmpui/playlisttask_p.h @@ -0,0 +1,37 @@ +/*************************************************************************** + * Copyright (C) 2014 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., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ + +#ifndef PLAYLISTTASK_P_H +#define PLAYLISTTASK_P_H + +#include <QRunnable> +#include <QObject> + +class PlayListTask : public QRunnable, public QObject +{ + Q_OBJECT +public: + explicit PlayListTask(QObject *parent = 0); + +void run(); + +}; + +#endif // PLAYLISTTASK_P_H diff --git a/src/qmmpui/qmmpui.pro b/src/qmmpui/qmmpui.pro index 03fe6156c..f90c8992e 100644 --- a/src/qmmpui/qmmpui.pro +++ b/src/qmmpui/qmmpui.pro @@ -1,171 +1,173 @@ -include(../../qmmp.pri)
-
-VERSION = $$QMMP_VERSION
-INCLUDEPATH += ../
-TEMPLATE = lib
-QT += network
-
-CONFIG += warn_on \
- shared \
- qt \
- thread
-
-QMAKE_LIBDIR += ../../lib \
- qmmpui
-
-LIBS += -Wl,-rpath,./
-
-unix {
- TARGET = ../../lib/qmmpui
- LIBS += -L../../lib -lqmmp
- isEmpty(LIB_DIR):LIB_DIR = /lib
- target.path = $$LIB_DIR
-}
-
-win32 {
- TARGET = ../../../bin/qmmpui
- LIBS += -L../../bin -lqmmp0 -lole32
- HEADERS += winfileassoc.h \
- winfileassocpage_p.h
- SOURCES += winfileassoc.cpp \
- winfileassocpage.cpp
- FORMS += forms/winfileassocpage.ui
-}
-
-HEADERS += general.h \
- generalfactory.h \
- playlistformat.h \
- playlistparser.h \
- commandlinemanager.h \
- commandlineoption.h \
- filedialog.h \
- filedialogfactory.h \
- qtfiledialog_p.h \
- playlistitem.h \
- playlistmodel.h \
- playstate_p.h \
- fileloader_p.h \
- mediaplayer.h \
- detailsdialog.h \
- tageditor_p.h \
- playlistmanager.h \
- metadataformatter.h \
- templateeditor.h \
- uifactory.h \
- uiloader.h \
- uihelper.h \
- jumptotrackdialog_p.h \
- configdialog.h \
- pluginitem_p.h \
- aboutdialog_p.h \
- qmmpuisettings.h \
- radioitemdelegate_p.h \
- playlistdownloader.h \
- addurldialog_p.h \
- qmmpuiplugincache_p.h \
- tagupdater_p.h \
- playlistgroup.h \
- playlisttrack.h \
- playlistcontainer_p.h \
- groupedcontainer_p.h \
- normalcontainer_p.h
-
-SOURCES += general.cpp \
- playlistparser.cpp \
- commandlinemanager.cpp \
- filedialog.cpp \
- qtfiledialog.cpp \
- playlistmodel.cpp \
- playstate.cpp \
- playlistitem.cpp \
- fileloader.cpp \
- mediaplayer.cpp \
- detailsdialog.cpp \
- tageditor.cpp \
- playlistmanager.cpp \
- metadataformatter.cpp \
- templateeditor.cpp \
- uiloader.cpp \
- uihelper.cpp \
- jumptotrackdialog.cpp \
- configdialog.cpp \
- pluginitem.cpp \
- aboutdialog.cpp \
- qmmpuisettings.cpp \
- radioitemdelegate.cpp \
- playlistdownloader.cpp \
- addurldialog.cpp \
- qmmpuiplugincache.cpp \
- tagupdater.cpp \
- playlistgroup.cpp \
- playlisttrack.cpp \
- groupedcontainer.cpp \
- normalcontainer.cpp \
- playlistcontainer.cpp
-
-FORMS += forms/detailsdialog.ui \
- forms/tageditor.ui \
- forms/templateeditor.ui \
- forms/jumptotrackdialog.ui \
- forms/configdialog.ui \
- forms/aboutdialog.ui \
- forms/addurldialog.ui
-
-unix:DESTDIR = .
-RESOURCES += translations/libqmmpui_locales.qrc \
- images/qmmpui_images.qrc \
- txt/txt.qrc
-TRANSLATIONS = translations/libqmmpui_ru.ts \
- translations/libqmmpui_tr.ts \
- translations/libqmmpui_zh_CN.ts \
- translations/libqmmpui_cs.ts \
- translations/libqmmpui_pt_BR.ts \
- translations/libqmmpui_uk_UA.ts \
- translations/libqmmpui_zh_TW.ts \
- translations/libqmmpui_de.ts \
- translations/libqmmpui_it.ts \
- translations/libqmmpui_lt.ts \
- translations/libqmmpui_pl_PL.ts \
- translations/libqmmpui_nl.ts \
- translations/libqmmpui_ja.ts \
- translations/libqmmpui_es.ts \
- translations/libqmmpui_sk.ts \
- translations/libqmmpui_sr_BA.ts \
- translations/libqmmpui_sr_RS.ts
-unix {
- devel.files += general.h \
- generalfactory.h \
- playlistformat.h \
- playlistparser.h \
- commandlinemanager.h \
- commandlineoption.h \
- filedialog.h \
- filedialogfactory.h \
- playlistitem.h \
- playlistmodel.h \
- mediaplayer.h \
- detailsdialog.h \
- playlistmanager.h \
- metadataformatter.h \
- templateeditor.h \
- uifactory.h \
- uiloader.h \
- uihelper.h \
- configdialog.h \
- qmmpuisettings.h \
- playlistdownloader.h \
- playlistgroup.h \
- playlisttrack.h
-
- devel.path = /include/qmmpui
- INSTALLS += target \
- devel
-}
-
-unix {
- CONFIG += create_pc create_prl no_install_prl
- QMAKE_PKGCONFIG_NAME = qmmpui
- QMAKE_PKGCONFIG_DESCRIPTION = qmmp user interface library
- QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork qmmp
- QMAKE_PKGCONFIG_DESTDIR = pkgconfig
-}
+include(../../qmmp.pri) + +VERSION = $$QMMP_VERSION +INCLUDEPATH += ../ +TEMPLATE = lib +QT += network + +CONFIG += warn_on \ + shared \ + qt \ + thread + +QMAKE_LIBDIR += ../../lib \ + qmmpui + +LIBS += -Wl,-rpath,./ + +unix { + TARGET = ../../lib/qmmpui + LIBS += -L../../lib -lqmmp + isEmpty(LIB_DIR):LIB_DIR = /lib + target.path = $$LIB_DIR +} + +win32 { + TARGET = ../../../bin/qmmpui + LIBS += -L../../bin -lqmmp0 -lole32 + HEADERS += winfileassoc.h \ + winfileassocpage_p.h + SOURCES += winfileassoc.cpp \ + winfileassocpage.cpp + FORMS += forms/winfileassocpage.ui +} + +HEADERS += general.h \ + generalfactory.h \ + playlistformat.h \ + playlistparser.h \ + commandlinemanager.h \ + commandlineoption.h \ + filedialog.h \ + filedialogfactory.h \ + qtfiledialog_p.h \ + playlistitem.h \ + playlistmodel.h \ + playstate_p.h \ + fileloader_p.h \ + mediaplayer.h \ + detailsdialog.h \ + tageditor_p.h \ + playlistmanager.h \ + metadataformatter.h \ + templateeditor.h \ + uifactory.h \ + uiloader.h \ + uihelper.h \ + jumptotrackdialog_p.h \ + configdialog.h \ + pluginitem_p.h \ + aboutdialog_p.h \ + qmmpuisettings.h \ + radioitemdelegate_p.h \ + playlistdownloader.h \ + addurldialog_p.h \ + qmmpuiplugincache_p.h \ + tagupdater_p.h \ + playlistgroup.h \ + playlisttrack.h \ + playlistcontainer_p.h \ + groupedcontainer_p.h \ + normalcontainer_p.h \ + playlisttask_p.h + +SOURCES += general.cpp \ + playlistparser.cpp \ + commandlinemanager.cpp \ + filedialog.cpp \ + qtfiledialog.cpp \ + playlistmodel.cpp \ + playstate.cpp \ + playlistitem.cpp \ + fileloader.cpp \ + mediaplayer.cpp \ + detailsdialog.cpp \ + tageditor.cpp \ + playlistmanager.cpp \ + metadataformatter.cpp \ + templateeditor.cpp \ + uiloader.cpp \ + uihelper.cpp \ + jumptotrackdialog.cpp \ + configdialog.cpp \ + pluginitem.cpp \ + aboutdialog.cpp \ + qmmpuisettings.cpp \ + radioitemdelegate.cpp \ + playlistdownloader.cpp \ + addurldialog.cpp \ + qmmpuiplugincache.cpp \ + tagupdater.cpp \ + playlistgroup.cpp \ + playlisttrack.cpp \ + groupedcontainer.cpp \ + normalcontainer.cpp \ + playlistcontainer.cpp \ + playlisttask.cpp + +FORMS += forms/detailsdialog.ui \ + forms/tageditor.ui \ + forms/templateeditor.ui \ + forms/jumptotrackdialog.ui \ + forms/configdialog.ui \ + forms/aboutdialog.ui \ + forms/addurldialog.ui + +unix:DESTDIR = . +RESOURCES += translations/libqmmpui_locales.qrc \ + images/qmmpui_images.qrc \ + txt/txt.qrc +TRANSLATIONS = translations/libqmmpui_ru.ts \ + translations/libqmmpui_tr.ts \ + translations/libqmmpui_zh_CN.ts \ + translations/libqmmpui_cs.ts \ + translations/libqmmpui_pt_BR.ts \ + translations/libqmmpui_uk_UA.ts \ + translations/libqmmpui_zh_TW.ts \ + translations/libqmmpui_de.ts \ + translations/libqmmpui_it.ts \ + translations/libqmmpui_lt.ts \ + translations/libqmmpui_pl_PL.ts \ + translations/libqmmpui_nl.ts \ + translations/libqmmpui_ja.ts \ + translations/libqmmpui_es.ts \ + translations/libqmmpui_sk.ts \ + translations/libqmmpui_sr_BA.ts \ + translations/libqmmpui_sr_RS.ts +unix { + devel.files += general.h \ + generalfactory.h \ + playlistformat.h \ + playlistparser.h \ + commandlinemanager.h \ + commandlineoption.h \ + filedialog.h \ + filedialogfactory.h \ + playlistitem.h \ + playlistmodel.h \ + mediaplayer.h \ + detailsdialog.h \ + playlistmanager.h \ + metadataformatter.h \ + templateeditor.h \ + uifactory.h \ + uiloader.h \ + uihelper.h \ + configdialog.h \ + qmmpuisettings.h \ + playlistdownloader.h \ + playlistgroup.h \ + playlisttrack.h + + devel.path = /include/qmmpui + INSTALLS += target \ + devel +} + +unix { + CONFIG += create_pc create_prl no_install_prl + QMAKE_PKGCONFIG_NAME = qmmpui + QMAKE_PKGCONFIG_DESCRIPTION = qmmp user interface library + QMAKE_PKGCONFIG_REQUIRES = QtCore QtGui QtNetwork qmmp + QMAKE_PKGCONFIG_DESTDIR = pkgconfig +} |
