diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-29 08:06:25 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-10-29 08:06:25 +0000 |
| commit | 6f6c39e54ecd50c5ef123223c65b41cff7ce04c1 (patch) | |
| tree | ca6ebcc3c76ad17545ab3d80919c6c6f85b986fe /src/app | |
| parent | 3cb752f2a155fb010d6fc3f345944915d5bb3661 (diff) | |
| download | qmmp-6f6c39e54ecd50c5ef123223c65b41cff7ce04c1.tar.gz qmmp-6f6c39e54ecd50c5ef123223c65b41cff7ce04c1.tar.bz2 qmmp-6f6c39e54ecd50c5ef123223c65b41cff7ce04c1.zip | |
added '--toggle-mute' command line option
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3828 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/builtincommandlineoption.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/builtincommandlineoption.cpp b/src/app/builtincommandlineoption.cpp index 3465b4059..48d11f1e1 100644 --- a/src/app/builtincommandlineoption.cpp +++ b/src/app/builtincommandlineoption.cpp @@ -42,6 +42,7 @@ BuiltinCommandLineOption::BuiltinCommandLineOption(QObject *parent) : QObject(pa << "--jump-to-file" << "-j" << "--quit" << "-q" << "--volume" + << "--toggle-mute" << "--next" << "--previous" << "--toggle-visibility" << "--add-file" << "--add-dir"; @@ -68,6 +69,7 @@ const QString BuiltinCommandLineOption::helpString() const "-j, --jump-to-file "+tr("Display Jump to File dialog")+ "\n" + "-q, --quit "+tr("Quit application") + "\n" + "--volume <0..100> "+tr("Set playback volume (example: qmmp --volume 20)") + "\n" + "--toggle-mute "+tr("Mute/Restore volume") + "\n" "--next "+tr("Skip forward in playlist")+ "\n" + "--previous "+tr("Skip backwards in playlist")+"\n" + "--toggle-visibility "+tr("Show/hide application")+ "\n" + @@ -201,6 +203,10 @@ void BuiltinCommandLineOption::executeCommand(const QString &option_string, if (ok) core->setVolume(volume,volume); } + else if (option_string == "--toggle-mute") + { + core->setMuted(!core->isMuted()); + } } QHash <QString, QStringList> BuiltinCommandLineOption::splitArgs(const QStringList &args) const |
