aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui')
-rw-r--r--src/qmmpui/filedialogfactory.h17
-rw-r--r--src/qmmpui/generalfactory.h26
-rw-r--r--src/qmmpui/uifactory.h18
3 files changed, 17 insertions, 44 deletions
diff --git a/src/qmmpui/filedialogfactory.h b/src/qmmpui/filedialogfactory.h
index baf40451c..1354d68e2 100644
--- a/src/qmmpui/filedialogfactory.h
+++ b/src/qmmpui/filedialogfactory.h
@@ -27,24 +27,15 @@ class FileDialog;
class QWidget;
class QString;
-/*! @brief Helper class to store file dialog plugin properties.
+/*! @brief Structure to store file dialog plugin properties.
*/
-class FileDialogProperties
+struct FileDialogProperties
{
-public:
- /*!
- * Constructor
- */
- FileDialogProperties()
- {
- hasAbout = false;
- modal = true;
- }
- bool hasAbout; /*!< Should be \b true if the file dialog plugin has about dialog,
+ bool hasAbout = false;/*!< Should be \b true if the file dialog plugin has about dialog,
* otherwise should be \b false */
QString name; /*!< File dialog plugin full name */
QString shortName; /*!< File dialog short name for internal usage */
- bool modal; /*!< Should be \b true if the file dialog doesn't support nonmodal mode,
+ bool modal = false; /*!< Should be \b true if the file dialog doesn't support nonmodal mode,
* otherwise should be \b false */
};
/*! @brief File dialog plugin interface.
diff --git a/src/qmmpui/generalfactory.h b/src/qmmpui/generalfactory.h
index 8437a6eb8..a891f854d 100644
--- a/src/qmmpui/generalfactory.h
+++ b/src/qmmpui/generalfactory.h
@@ -29,26 +29,16 @@ class QWidget;
class Control;
class General;
-/*! @brief Helper class to store general plugin properies.
+/*! @brief Structure to store general plugin properies.
*/
-class QMMPUI_EXPORT GeneralProperties
+struct GeneralProperties
{
-public:
- /*!
- * Constructor
- */
- GeneralProperties()
- {
- hasAbout = false;
- hasSettings = false;
- visibilityControl = false;
- }
- QString name; /*!< File dialog plugin full name */
- QString shortName; /*!< File dialog short name for internal usage */
- bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */
- bool hasSettings; /*!< Should be \b true if plugin has settings dialog, otherwise returns \b false */
- bool visibilityControl; /*!< Should be \b true if plugin can show/hide main window of the player,
- * otherwise returns \b false */
+ QString name; /*!< File dialog plugin full name */
+ QString shortName; /*!< File dialog short name for internal usage */
+ bool hasAbout = false; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */
+ bool hasSettings = false; /*!< Should be \b true if plugin has settings dialog, otherwise returns \b false */
+ bool visibilityControl = false; /*!< Should be \b true if plugin can show/hide main window of the player,
+ * otherwise returns \b false */
};
/*! @brief %General plugin interface.
* @author Ilya Kotov <forkotov02@ya.ru>
diff --git a/src/qmmpui/uifactory.h b/src/qmmpui/uifactory.h
index aacab168b..ecec99294 100644
--- a/src/qmmpui/uifactory.h
+++ b/src/qmmpui/uifactory.h
@@ -29,21 +29,13 @@ class QWidget;
class Control;
class General;
-/*! @brief Helper class to store user interface plugin properies.
+/*! @brief Structure to store user interface plugin properies.
*/
-class QMMPUI_EXPORT UiProperties
+struct UiProperties
{
-public:
- /*!
- * Constructor
- */
- UiProperties()
- {
- hasAbout = false;
- }
- QString name; /*!< File dialog plugin full name */
- QString shortName; /*!< File dialog short name for internal usage */
- bool hasAbout; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */
+ QString name; /*!< File dialog plugin full name */
+ QString shortName; /*!< File dialog short name for internal usage */
+ bool hasAbout = false; /*!< Should be \b true if plugin has about dialog, otherwise returns \b false */
};
/*! @brief User interface plugin interface.
* @author Ilya Kotov <forkotov02@ya.ru>