diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-12 12:17:27 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2014-03-12 12:17:27 +0000 |
| commit | 532ad84642b023d4d71d87074db8043a6e342ee0 (patch) | |
| tree | 9f27ae4aa1a8320d3ae6677ecb2b8a3d9aab120d /src/plugins/CommandLineOptions/UninstallOption | |
| parent | c78720702a7db746e52399930b0171464b40c34d (diff) | |
| download | qmmp-532ad84642b023d4d71d87074db8043a6e342ee0.tar.gz qmmp-532ad84642b023d4d71d87074db8043a6e342ee0.tar.bz2 qmmp-532ad84642b023d4d71d87074db8043a6e342ee0.zip | |
added uninstall plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4156 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/CommandLineOptions/UninstallOption')
26 files changed, 455 insertions, 0 deletions
diff --git a/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro b/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro new file mode 100644 index 000000000..af9107145 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/UninstallOption.pro @@ -0,0 +1,42 @@ +include(../../plugins.pri) + +CONFIG += warn_on \ +plugin \ + lib + +TARGET = $$PLUGINS_PREFIX/CommandLineOptions/uninstalloption +QMAKE_CLEAN = $$PLUGINS_PREFIX/CommandLineOptions/libuninstalloption.so + +TEMPLATE = lib +QMAKE_LIBDIR += ../../../../lib + +TRANSLATIONS = translations/uninstall_plugin_cs.ts \ + translations/uninstall_plugin_de.ts \ + translations/uninstall_plugin_pl.ts \ + translations/uninstall_plugin_ru.ts \ + translations/uninstall_plugin_uk_UA.ts \ + translations/uninstall_plugin_zh_TW.ts \ + translations/uninstall_plugin_zh_CN.ts \ + translations/uninstall_plugin_it.ts \ + translations/uninstall_plugin_tr.ts \ + translations/uninstall_plugin_lt.ts \ + translations/uninstall_plugin_nl.ts \ + translations/uninstall_plugin_ja.ts \ + translations/uninstall_plugin_es.ts \ + translations/uninstall_plugin_sr_BA.ts \ + translations/uninstall_plugin_sr_RS.ts +RESOURCES = translations/translations.qrc + +isEmpty(LIB_DIR){ + LIB_DIR = /lib +} +target.path = $$LIB_DIR/qmmp/CommandLineOptions +INSTALLS += target + +INCLUDEPATH += ../../../../src + +LIBS += -lqmmpui -lqmmp + +HEADERS += uninstalloption.h + +SOURCES += uninstalloption.cpp diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/translations.qrc b/src/plugins/CommandLineOptions/UninstallOption/translations/translations.qrc new file mode 100644 index 000000000..831e9b846 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/translations.qrc @@ -0,0 +1,27 @@ +<!DOCTYPE RCC> +<RCC version="1.0"> + <qresource> + <file>uninstall_plugin_ru.qm</file> + <file>uninstall_plugin_uk_UA.qm</file> + <file>uninstall_plugin_zh_CN.qm</file> + <file>uninstall_plugin_zh_TW.qm</file> + <file>uninstall_plugin_tr.qm</file> + <file>uninstall_plugin_cs.qm</file> + <file>uninstall_plugin_pt_BR.qm</file> + <file>uninstall_plugin_de.qm</file> + <file>uninstall_plugin_pl_PL.qm</file> + <file>uninstall_plugin_fr.qm</file> + <file>uninstall_plugin_it.qm</file> + <file>uninstall_plugin_kk.qm</file> + <file>uninstall_plugin_lt.qm</file> + <file>uninstall_plugin_hu.qm</file> + <file>uninstall_plugin_nl.qm</file> + <file>uninstall_plugin_ja.qm</file> + <file>uninstall_plugin_sk.qm</file> + <file>uninstall_plugin_es.qm</file> + <file>uninstall_plugin_he.qm</file> + <file>uninstall_plugin_gl_ES.qm</file> + <file>uninstall_plugin_sr_BA.qm</file> + <file>uninstall_plugin_sr_RS.qm</file> + </qresource> +</RCC> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_cs.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_cs.ts new file mode 100644 index 000000000..a284ed0c5 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_cs.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="cs_CZ"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_de.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_de.ts new file mode 100644 index 000000000..8e003a4ba --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_de.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_es.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_es.ts new file mode 100644 index 000000000..b7d8b31cc --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_es.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="es_ES"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_fr.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_fr.ts new file mode 100644 index 000000000..ea8f616ab --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_fr.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="fr_FR"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_gl_ES.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_gl_ES.ts new file mode 100644 index 000000000..d2a0bd2b8 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_gl_ES.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="gl_ES"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts new file mode 100644 index 000000000..82aba2bd9 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_he.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="he_IL"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_hu.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_hu.ts new file mode 100644 index 000000000..9526fc79e --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_hu.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="hu_HU"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_it.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_it.ts new file mode 100644 index 000000000..403f8d206 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_it.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="it_IT"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ja.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ja.ts new file mode 100644 index 000000000..e58f9f0e6 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ja.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ja_JP"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_kk.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_kk.ts new file mode 100644 index 000000000..90d6ed690 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_kk.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="kk_KZ"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_lt.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_lt.ts new file mode 100644 index 000000000..8f998e056 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_lt.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="lt_LT"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_nl.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_nl.ts new file mode 100644 index 000000000..3ae743178 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_nl.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="nl_NL"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pl_PL.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pl_PL.ts new file mode 100644 index 000000000..b91026024 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pl_PL.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pl_PL"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pt_BR.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pt_BR.ts new file mode 100644 index 000000000..d1a475c8c --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_pt_BR.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pt_BR"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ru.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ru.ts new file mode 100644 index 000000000..268356af7 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_ru.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ru_RU"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sk.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sk.ts new file mode 100644 index 000000000..6d6438a72 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sk.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sk_SK"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_BA.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_BA.ts new file mode 100644 index 000000000..65d33d978 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_BA.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sr_BA"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_RS.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_RS.ts new file mode 100644 index 000000000..9fd21d9a1 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_sr_RS.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="sr_RS"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_tr.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_tr.ts new file mode 100644 index 000000000..f6a7ef8d9 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_tr.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="tr_TR"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_uk_UA.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_uk_UA.ts new file mode 100644 index 000000000..5467b8f05 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_uk_UA.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="uk_UA"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_CN.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_CN.ts new file mode 100644 index 000000000..8821e7cef --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_CN.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_CN"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_TW.ts b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_TW.ts new file mode 100644 index 000000000..411619a5f --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/translations/uninstall_plugin_zh_TW.ts @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="zh_TW"> +<context> + <name>UninstallOption</name> + <message> + <location filename="../uninstalloption.cpp" line="39"/> + <source>Restores the old file associations and cleans up the registry.</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> diff --git a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp new file mode 100644 index 000000000..51cf15063 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.cpp @@ -0,0 +1,74 @@ +/*************************************************************************** + * 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 <QtPlugin> +#include <QTranslator> +#include <QLocale> +#include <QMap> +#include <qmmpui/winfileassoc.h> +#include <qmmp/metadatamanager.h> +#include "uninstalloption.h" + +bool UninstallOption::identify(const QString &str) const +{ + QStringList opts; + opts << "--uninstall"; + return opts.contains(str); +} + +const QString UninstallOption::helpString() const +{ + QString help; + help += QString("--uninstall ") + tr("Restores the old file associations and cleans up the registry.") + + "\n"; + return help; +} + +QString UninstallOption::executeCommand(const QString &opt_str, const QStringList &args) +{ + if(opt_str == "--uninstall") + { + WinFileAssoc assoc; + QStringList regExts, extsToCheck; + foreach (QString ext, MetaDataManager::instance()->nameFilters()) + { + ext.remove("*."); + extsToCheck.append(ext); + } + assoc.GetRegisteredExtensions(extsToCheck, regExts); + assoc.RestoreFileAssociations(regExts); + } + return QString(); +} + +const QString UninstallOption::name() const +{ + return "UninstallOption"; +} + +QTranslator *UninstallOption::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = Qmmp::systemLanguageID(); + translator->load(QString(":/uninstall_plugin_") + locale); + return translator; +} + +Q_EXPORT_PLUGIN2(uninstalloption, UninstallOption) diff --git a/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h new file mode 100644 index 000000000..54d5ba524 --- /dev/null +++ b/src/plugins/CommandLineOptions/UninstallOption/uninstalloption.h @@ -0,0 +1,48 @@ +/*************************************************************************** + * 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 STATUSOPTION_H +#define STATUSOPTION_H + +#include <QString> +#include <QObject> +#include <QStringList> +#include <qmmpui/commandlineoption.h> +#include <qmmpui/commandlinemanager.h> + +/** + @author Ilya Kotov <forkotov02@hotmail.ru> +*/ +class UninstallOption : public QObject, public CommandLineOption +{ +Q_OBJECT +Q_INTERFACES(CommandLineOption) +public: + virtual bool identify(const QString& opt_str)const; + virtual const QString name()const; + virtual const QString helpString()const; + virtual QString executeCommand(const QString& opt_str, const QStringList &args); + virtual QTranslator *createTranslator(QObject *parent); + + +}; + +#endif + |
