diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-12-22 19:08:41 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-12-22 19:08:41 +0000 |
| commit | 998118b15690dd88c44c474515b69bfd391c9ed3 (patch) | |
| tree | d1f883e66d32d649e8778b7473cc901997062938 /src/qmmpui | |
| parent | cba023b5ef27a081f461ee102105584b4db3cca9 (diff) | |
| download | qmmp-998118b15690dd88c44c474515b69bfd391c9ed3.tar.gz qmmp-998118b15690dd88c44c474515b69bfd391c9ed3.tar.bz2 qmmp-998118b15690dd88c44c474515b69bfd391c9ed3.zip | |
hide private symbols
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7792 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
29 files changed, 132 insertions, 72 deletions
diff --git a/src/qmmpui/commandlinemanager.h b/src/qmmpui/commandlinemanager.h index 974c064fa..5fecc7467 100644 --- a/src/qmmpui/commandlinemanager.h +++ b/src/qmmpui/commandlinemanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2017 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,12 +23,13 @@ #include <QHash> #include "general.h" #include "commandlineoption.h" +#include "qmmpui_export.h" /*! @brief Helper class used for handle command line plugins. * @author Ilya Kotov <forkotov02@ya.ru> */ -class CommandLineManager +class QMMPUI_EXPORT CommandLineManager { public: /*! diff --git a/src/qmmpui/commandlineoption.h b/src/qmmpui/commandlineoption.h index e10d2e728..a8847897d 100644 --- a/src/qmmpui/commandlineoption.h +++ b/src/qmmpui/commandlineoption.h @@ -20,6 +20,7 @@ #ifndef COMMANDLINEOPTION_H #define COMMANDLINEOPTION_H +#include "qmmpui_export.h" class CommandLineManager; class QTranslator; @@ -30,7 +31,7 @@ class QStringList; /*! @brief Abstract base class of the command line plugins. * @author Vladimir Kuznetsov <vovanec@gmail.ru> */ -class CommandLineOption +class QMMPUI_EXPORT CommandLineOption { public: /*! diff --git a/src/qmmpui/configdialog.h b/src/qmmpui/configdialog.h index fe0c1031e..6f773e727 100644 --- a/src/qmmpui/configdialog.h +++ b/src/qmmpui/configdialog.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2007-2017 by Ilya Kotov * + * Copyright (C) 2007-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,7 @@ #include <QStyledItemDelegate> #include <QApplication> #include <QMouseEvent> +#include "qmmpui_export.h" namespace Ui { @@ -37,7 +38,7 @@ class QTreeWidgetItem; /*! @brief Configuration dialog class. @author Ilya Kotov <forkotov02@ya.ru> */ -class ConfigDialog : public QDialog +class QMMPUI_EXPORT ConfigDialog : public QDialog { Q_OBJECT public: diff --git a/src/qmmpui/detailsdialog.h b/src/qmmpui/detailsdialog.h index 51e9ecfda..23e4acd9d 100644 --- a/src/qmmpui/detailsdialog.h +++ b/src/qmmpui/detailsdialog.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2016 by Ilya Kotov * + * Copyright (C) 2009-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -24,6 +24,7 @@ #include <QList> #include <QMap> #include <qmmp/qmmp.h> +#include "qmmpui_export.h" class QTextCodec; class QAbstractButton; @@ -37,7 +38,7 @@ namespace Ui { /** @brief The DetailsDialog class provides dialog to show/edit metadata. * @author Ilya Kotov <forkotov02@ya.ru> */ -class DetailsDialog : public QDialog +class QMMPUI_EXPORT DetailsDialog : public QDialog { Q_OBJECT public: diff --git a/src/qmmpui/filedialog.h b/src/qmmpui/filedialog.h index 19fdbe060..a9099c374 100644 --- a/src/qmmpui/filedialog.h +++ b/src/qmmpui/filedialog.h @@ -1,5 +1,5 @@ /************************************************************************** -* Copyright (C) 2008-2016 by Ilya Kotov * +* Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,7 @@ #include <QStringList> #include <QFileDialog> #include <QHash> +#include "qmmpui_export.h" #include "filedialogfactory.h" class QmmpUiPluginCache; @@ -32,7 +33,7 @@ class QmmpUiPluginCache; /*! @brief The FileDialog class is the base interface class of the file dialogs. * @author Vladimir Kuznetsov <vovanec@gmail.com> */ -class FileDialog : public QObject +class QMMPUI_EXPORT FileDialog : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/filedialogfactory.h b/src/qmmpui/filedialogfactory.h index 66c1fd16b..fd416f1e1 100644 --- a/src/qmmpui/filedialogfactory.h +++ b/src/qmmpui/filedialogfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -20,6 +20,8 @@ #ifndef FILEDIALOGFACTORY_H #define FILEDIALOGFACTORY_H +#include "qmmpui_export.h" + class QObject; class QTranslator; class FileDialog; @@ -49,7 +51,7 @@ public: /*! @brief File dialog plugin interface. * @author Vladimir Kuznetsov <vovanec@gmail.com> */ -class FileDialogFactory +class QMMPUI_EXPORT FileDialogFactory { public: /*! diff --git a/src/qmmpui/general.h b/src/qmmpui/general.h index f5a32aaf0..d74dd1004 100644 --- a/src/qmmpui/general.h +++ b/src/qmmpui/general.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2013 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -24,13 +24,14 @@ #include <QStringList> #include <QHash> #include "generalfactory.h" +#include "qmmpui_export.h" class QmmpUiPluginCache; /*! @brief The General class provides simple access to general plugins * @author Ilya Kotov <forkotov02@ya.ru> */ -class General +class QMMPUI_EXPORT General { public: /*! diff --git a/src/qmmpui/generalfactory.h b/src/qmmpui/generalfactory.h index 6b97cb596..dcb2e87e9 100644 --- a/src/qmmpui/generalfactory.h +++ b/src/qmmpui/generalfactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -20,6 +20,8 @@ #ifndef GENERALFACTORY_H #define GENERALFACTORY_H +#include "qmmpui_export.h" + class QObject; class QTranslator; class QDialog; @@ -30,7 +32,7 @@ class General; /*! @brief Helper class to store general plugin properies. */ -class GeneralProperties +class QMMPUI_EXPORT GeneralProperties { public: /*! diff --git a/src/qmmpui/mediaplayer.h b/src/qmmpui/mediaplayer.h index b839d5ee1..ad2dd7b6d 100644 --- a/src/qmmpui/mediaplayer.h +++ b/src/qmmpui/mediaplayer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2017 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,7 +23,7 @@ #include <QObject> #include <qmmp/soundcore.h> #include "playlistmanager.h" - +#include "qmmpui_export.h" class QmmpUiSettings; class QTimer; @@ -32,7 +32,7 @@ class QTimer; /*! @brief The MediaPlayer class provides a simple way to use SoundCore and PlayListModel together. * @author Ilya Kotov <forkotov02@ya.ru> */ -class MediaPlayer : public QObject +class QMMPUI_EXPORT MediaPlayer : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/metadataformatter.h b/src/qmmpui/metadataformatter.h index 444875e7a..8bcfe72cb 100644 --- a/src/qmmpui/metadataformatter.h +++ b/src/qmmpui/metadataformatter.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2015-2017 by Ilya Kotov * + * Copyright (C) 2015-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -27,11 +27,12 @@ #include <qmmpui/playlisttrack.h> #include <qmmp/qmmp.h> #include <qmmp/fileinfo.h> +#include "qmmpui_export.h" /*! @brief The MetaDataFormatter formats metadata using templates. * @author Ilya Kotov <forkotov02@ya.ru> */ -class MetaDataFormatter +class QMMPUI_EXPORT MetaDataFormatter { public: /*! diff --git a/src/qmmpui/metadataformattermenu.h b/src/qmmpui/metadataformattermenu.h index 92c50b9f5..0ac76e661 100644 --- a/src/qmmpui/metadataformattermenu.h +++ b/src/qmmpui/metadataformattermenu.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2017 by Ilya Kotov * + * Copyright (C) 2017-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -22,10 +22,11 @@ #define METADATAFORMATTERMENU_H #include <QMenu> +#include "qmmpui_export.h" class QAction; -class MetaDataFormatterMenu : public QMenu +class QMMPUI_EXPORT MetaDataFormatterMenu : public QMenu { Q_OBJECT public: diff --git a/src/qmmpui/playlistdownloader.h b/src/qmmpui/playlistdownloader.h index 9c7e86742..af6cb377d 100644 --- a/src/qmmpui/playlistdownloader.h +++ b/src/qmmpui/playlistdownloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2012-2017 by Ilya Kotov * + * Copyright (C) 2012-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,7 @@ #include <QUrl> #include <QPointer> #include "playlistmodel.h" +#include "qmmpui_export.h" class QNetworkAccessManager; class QNetworkReply; @@ -32,7 +33,7 @@ class QNetworkReply; /*! @brief The PlayListDownloader class downloads playlist from remote URL and extracts tracks * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListDownloader : public QObject +class QMMPUI_EXPORT PlayListDownloader : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/playlistformat.h b/src/qmmpui/playlistformat.h index 4cb7b4d70..74f4b2bdc 100644 --- a/src/qmmpui/playlistformat.h +++ b/src/qmmpui/playlistformat.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2017 by Ilya Kotov * + * Copyright (C) 2006-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -22,6 +22,7 @@ #define PALYLISTFORMAT_H #include <QStringList> +#include "qmmpui_export.h" class PlayListTrack; @@ -38,7 +39,7 @@ struct PlayListFormatProperties /*! @brief Abstract interface for playlist formats. * @author Vladimir Kuznetsov <vovanec@gmail.com> */ -class PlayListFormat +class QMMPUI_EXPORT PlayListFormat { public: /*! diff --git a/src/qmmpui/playlistgroup.h b/src/qmmpui/playlistgroup.h index 5fa949cbe..73dc04137 100644 --- a/src/qmmpui/playlistgroup.h +++ b/src/qmmpui/playlistgroup.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013-2014 by Ilya Kotov * + * Copyright (C) 2013-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,13 +23,14 @@ #include "playlisttrack.h" #include "playlistitem.h" +#include "qmmpui_export.h" class GroupedContainer; /** @brief The PlayListTrack class provides a group for use with the PlayListModel class. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListGroup : public PlayListItem +class QMMPUI_EXPORT PlayListGroup : public PlayListItem { public: /*! diff --git a/src/qmmpui/playlistheadermodel.h b/src/qmmpui/playlistheadermodel.h index fc15fc1c0..755ae019d 100644 --- a/src/qmmpui/playlistheadermodel.h +++ b/src/qmmpui/playlistheadermodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2015 by Ilya Kotov * + * Copyright (C) 2015-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -27,6 +27,7 @@ #include <QHash> #include <QVariant> #include "metadataformatter.h" +#include "qmmpui_export.h" class MetaDataHelper; @@ -34,7 +35,7 @@ class MetaDataHelper; * @brief Helper class that provides access to playlist column configuration. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListHeaderModel : public QObject +class QMMPUI_EXPORT PlayListHeaderModel : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/playlistitem.h b/src/qmmpui/playlistitem.h index 10786b41d..92e30bfe6 100644 --- a/src/qmmpui/playlistitem.h +++ b/src/qmmpui/playlistitem.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2015 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,12 +23,13 @@ #include <QMap> #include <qmmp/fileinfo.h> #include <qmmp/qmmp.h> +#include "qmmpui_export.h" /** @brief The PlayListItem class provides an item for use with the PlayListModel class. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListItem +class QMMPUI_EXPORT PlayListItem { public: /*! diff --git a/src/qmmpui/playlistmanager.h b/src/qmmpui/playlistmanager.h index 35f5dc602..9c86ff25e 100644 --- a/src/qmmpui/playlistmanager.h +++ b/src/qmmpui/playlistmanager.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2009-2017 by Ilya Kotov * + * Copyright (C) 2009-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,6 +23,7 @@ #include <QObject> #include "playlistheadermodel.h" #include "playlistmodel.h" +#include "qmmpui_export.h" class QTimer; class QmmpUiSettings; @@ -30,7 +31,7 @@ class QmmpUiSettings; /*! @brief The PlayListManager class is used to handle multiple playlists. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListManager : public QObject +class QMMPUI_EXPORT PlayListManager : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/playlistmodel.h b/src/qmmpui/playlistmodel.h index c48a20660..734b0de18 100644 --- a/src/qmmpui/playlistmodel.h +++ b/src/qmmpui/playlistmodel.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006-2017 by Ilya Kotov * + * Copyright (C) 2006-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -30,6 +30,7 @@ #include "playlistitem.h" #include "playlisttrack.h" #include "playlistgroup.h" +#include "qmmpui_export.h" class FileLoader; class PlayState; @@ -98,7 +99,7 @@ struct SimpleSelection * | 7 | 5 | track | * | 8 | 6 | track | */ -class PlayListModel : public QObject +class QMMPUI_EXPORT PlayListModel : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index 35545e2c0..5952e41cf 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2017 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -24,11 +24,12 @@ #include <QUrl> #include "playlisttrack.h" #include "playlistformat.h" +#include "qmmpui_export.h" /*! @brief The PlaylistParser class provides a simple api to access playlist format plugins. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListParser +class QMMPUI_EXPORT PlayListParser { public: /*! diff --git a/src/qmmpui/playlisttrack.h b/src/qmmpui/playlisttrack.h index 6677a91d2..57bbb58a1 100644 --- a/src/qmmpui/playlisttrack.h +++ b/src/qmmpui/playlisttrack.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2013-2017 by Ilya Kotov * + * Copyright (C) 2013-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,7 @@ #include <qmmp/fileinfo.h> #include <qmmp/qmmp.h> #include "playlistitem.h" +#include "qmmpui_export.h" class QmmpUiSettings; class PlayListHeaderModel; @@ -33,7 +34,7 @@ class MetaDataHelper; /** @brief The PlayListTrack class provides a track for use with the PlayListModel class. * @author Ilya Kotov <forkotov02@ya.ru> */ -class PlayListTrack : public QMap <Qmmp::MetaData, QString>, public PlayListItem +class QMMPUI_EXPORT PlayListTrack : public QMap <Qmmp::MetaData, QString>, public PlayListItem { public: /*! diff --git a/src/qmmpui/qmmpui.pro b/src/qmmpui/qmmpui.pro index 7c4ca8132..ae340ee22 100644 --- a/src/qmmpui/qmmpui.pro +++ b/src/qmmpui/qmmpui.pro @@ -3,6 +3,7 @@ include(../../qmmp.pri) VERSION = $$QMMP_VERSION INCLUDEPATH += ../ TEMPLATE = lib +DEFINES += QMMPUI_LIBRARY QT += network CONFIG += warn_on \ @@ -72,7 +73,8 @@ HEADERS += general.h \ playlistheadermodel.h \ metadatahelper_p.h \ coverviewer_p.h \ - metadataformattermenu.h + metadataformattermenu.h \ + qmmpui_export.h SOURCES += general.cpp \ playlistparser.cpp \ @@ -168,7 +170,8 @@ unix { playlisttrack.h \ metadataformatter.h \ playlistheadermodel.h \ - metadataformattermenu.h + metadataformattermenu.h \ + qmmpui_export.h devel.path = /include/qmmpui INSTALLS += target \ diff --git a/src/qmmpui/qmmpui_export.h b/src/qmmpui/qmmpui_export.h new file mode 100644 index 000000000..f8f7faadd --- /dev/null +++ b/src/qmmpui/qmmpui_export.h @@ -0,0 +1,29 @@ +/*************************************************************************** + * Copyright (C) 2017-2018 by Ilya Kotov * + * forkotov02@ya.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 QMMPUI_EXPORT_H +#define QMMPUI_EXPORT_H + +#ifdef QMMPUI_LIBRARY +# define QMMPUI_EXPORT Q_DECL_EXPORT +#else +# define QMMPUI_EXPORT Q_DECL_IMPORT +#endif + +#endif diff --git a/src/qmmpui/qmmpuisettings.h b/src/qmmpui/qmmpuisettings.h index f273b70f4..d614fa466 100644 --- a/src/qmmpui/qmmpuisettings.h +++ b/src/qmmpui/qmmpuisettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2012-2015 by Ilya Kotov * + * Copyright (C) 2012-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,6 +25,7 @@ #include <QStringList> #include "playlistheadermodel.h" #include "metadataformatter.h" +#include "qmmpui_export.h" class QTimer; class MetaDataHelper; @@ -32,7 +33,7 @@ class MetaDataHelper; /*! @brief The QmmpUiSettings class provides access to global libqmmpui library settings. * @author Ilya Kotov <forkotov02@ya.ru> */ -class QmmpUiSettings : public QObject +class QMMPUI_EXPORT QmmpUiSettings : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/templateeditor.h b/src/qmmpui/templateeditor.h index 64977d7e6..5e769f0e4 100644 --- a/src/qmmpui/templateeditor.h +++ b/src/qmmpui/templateeditor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2010-2017 by Ilya Kotov * + * Copyright (C) 2010-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -22,6 +22,7 @@ #define TEMPLATEEDITOR_H #include <QDialog> +#include "qmmpui_export.h" namespace Ui { class TemplateEditor; @@ -30,7 +31,7 @@ namespace Ui { /*! @brief The TemplateEditor class provides simple template editor dialog. * @author Ilya Kotov <forkotov02@ya.ru> */ -class TemplateEditor : public QDialog +class QMMPUI_EXPORT TemplateEditor : public QDialog { Q_OBJECT public: diff --git a/src/qmmpui/uifactory.h b/src/qmmpui/uifactory.h index eed603835..caabde506 100644 --- a/src/qmmpui/uifactory.h +++ b/src/qmmpui/uifactory.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2011 by Ilya Kotov * + * Copyright (C) 2011-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -20,6 +20,8 @@ #ifndef UIFACTORY_H #define UIFACTORY_H +#include "qmmpui_export.h" + class QObject; class QTranslator; class QDialog; @@ -30,7 +32,7 @@ class General; /*! @brief Helper class to store user interface plugin properies. */ -class UiProperties +class QMMPUI_EXPORT UiProperties { public: /*! diff --git a/src/qmmpui/uihelper.h b/src/qmmpui/uihelper.h index 633b62a8e..49636d0f7 100644 --- a/src/qmmpui/uihelper.h +++ b/src/qmmpui/uihelper.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2016 by Ilya Kotov * + * Copyright (C) 2008-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -17,8 +17,8 @@ * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef UiHelper_H -#define UiHelper_H +#ifndef UIHELPER_H +#define UIHELPER_H #include <QObject> #include <QMap> @@ -29,6 +29,7 @@ #include <QPointer> #include "playlistmanager.h" #include "playlistmodel.h" +#include "qmmpui_export.h" class QAction; class QMenu; @@ -40,7 +41,7 @@ class JumpToTrackDialog; /*! @brief The UiHelper class provides simple api to access general plugins and some gui features. * @author Ilya Kotov <forkotov02@ya.ru> */ -class UiHelper : public QObject +class QMMPUI_EXPORT UiHelper : public QObject { Q_OBJECT public: diff --git a/src/qmmpui/uiloader.h b/src/qmmpui/uiloader.h index 7caa30ebf..bcacdbe05 100644 --- a/src/qmmpui/uiloader.h +++ b/src/qmmpui/uiloader.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2011-2017 by Ilya Kotov * + * Copyright (C) 2011-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -25,13 +25,14 @@ #include <QList> #include <QObject> #include "uifactory.h" +#include "qmmpui_export.h" class QmmpUiPluginCache; /*! @brief The UiLoader provides user interface plugins access. * @author Ilya Kotov <forkotov02@ya.ru> */ -class UiLoader +class QMMPUI_EXPORT UiLoader { public: /*! diff --git a/src/qmmpui/winfileassoc.h b/src/qmmpui/winfileassoc.h index 9b7af9f2c..5d861e09d 100644 --- a/src/qmmpui/winfileassoc.h +++ b/src/qmmpui/winfileassoc.h @@ -16,9 +16,9 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Winfileassoc.h - Handles file associations in Windows - Author: Florin Braghis (florin@libertv.ro) + Winfileassoc.h + Handles file associations in Windows + Author: Florin Braghis (florin@libertv.ro) */ #ifndef WINFILEASSOC_H @@ -26,29 +26,29 @@ #include <QString> #include <QStringList> - +#include "qmmpui_export.h" /** @internal */ -class WinFileAssoc +class QMMPUI_EXPORT WinFileAssoc { protected: - QString m_ClassId; //Application ClassId + QString m_ClassId; //Application ClassId QString m_ClassId2; //The ClassId created by explorer if user selects 'Open With...', usually qmmp.exe - QString m_AppName; + QString m_AppName; protected: - bool CreateClassId(const QString& executablePath, const QString& friendlyName); - bool VistaGetDefaultApps(const QStringList &extensions, QStringList& registeredExt); - int VistaSetAppsAsDefault(const QStringList& extensions); + bool CreateClassId(const QString& executablePath, const QString& friendlyName); + bool VistaGetDefaultApps(const QStringList &extensions, QStringList& registeredExt); + int VistaSetAppsAsDefault(const QStringList& extensions); public: WinFileAssoc(const QString ClassId = "QmmpFileAudio", const QString AppName="Qmmp"); - //Checks the registry to see which extensions are registered with SMPlayer - bool GetRegisteredExtensions(const QStringList& extensionsToCheck, QStringList& registeredExtensions); + //Checks the registry to see which extensions are registered with SMPlayer + bool GetRegisteredExtensions(const QStringList& extensionsToCheck, QStringList& registeredExtensions); bool RemoveClassId(); - int CreateFileAssociations(const QStringList& fileExtensions); - int RestoreFileAssociations(const QStringList& fileExtensions); + int CreateFileAssociations(const QStringList& fileExtensions); + int RestoreFileAssociations(const QStringList& fileExtensions); }; #endif diff --git a/src/qmmpui/winfileassocpage_p.h b/src/qmmpui/winfileassocpage_p.h index dc97bd130..0825953ea 100644 --- a/src/qmmpui/winfileassocpage_p.h +++ b/src/qmmpui/winfileassocpage_p.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2014 by Ilya Kotov * + * Copyright (C) 2014-2018 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -23,6 +23,7 @@ #include <QWidget> #include <QStringList> +#include "qmmpui_export.h" namespace Ui { class WinFileAssocPage; @@ -32,9 +33,9 @@ class QListWidgetItem; /*! @internal */ -class WinFileAssocPage : public QWidget +class QMMPUI_EXPORT WinFileAssocPage : public QWidget { - Q_OBJECT + Q_OBJECT public: WinFileAssocPage(QWidget *parent = 0); virtual ~WinFileAssocPage(); @@ -43,7 +44,7 @@ public: private slots: void on_selectAll_clicked(); void on_selectNone_clicked(); - + private: void loadAssociations(); void saveAssociations(); |
