aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/gme/decoder_gme.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/gme/decoder_gme.h')
0 files changed, 0 insertions, 0 deletions
rialuser02@90c681e8-e032-0410-971d-27865f9a5e38> 2017-10-07 17:56:23 +0000 changed contact information' href='/qmmp/commit/src/plugins/CommandLineOptions/IncDecVolumeOption/incdecvolumeoption.cpp?id=41c8a60a2ebe4696a17704b81ddf06f3c7b88023'>41c8a60a2
33b3fdd2f













a8bf072ec
33b3fdd2f

058812044
d4bdda57d
2f376a7eb
385ed55c9
058812044

5905c1acd
ab49308ad
c28061c4c

ab49308ad

c28061c4c
058812044
c28061c4c

058812044
c28061c4c


058812044

c28061c4c
058812044
dca857498
058812044
c28061c4c


e9574015d
c28061c4c

e9574015d
c28061c4c



7b154250b
5717444b3
058812044
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
                                                                            
                                                                            
                                                                            













                                                                            
                                                                            

                                                                             
                   
                  
                
                           

                               
                                                     
 

                                                                                  

 
                                                        
 

                                           
 


                                                          

 
                                                                                      
 
                   
 


                   
                                          

                     
                                            



              
 
                     
 
/***************************************************************************
 *   Copyright (C) 2008-2021 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.         *
 ***************************************************************************/

#include <QtPlugin>
#include <QLocale>
#include <QPair>
#include <qmmp/soundcore.h>
#include "incdecvolumeoption.h"

void IncDecVolumeCommandLineOption::registerOprions()
{
    registerOption(VOLUME_UP, "--volume-inc", tr("Increase volume by 5 steps"));
    registerOption(VOLUME_DOWN, "--volume-dec", tr("Decrease volume by 5 steps"));
}

QString IncDecVolumeCommandLineOption::shortName() const
{
    return "IncDecVolumeCommandLineOption";
}

QString IncDecVolumeCommandLineOption::translation() const
{
    return QLatin1String(":/incdecvolume_plugin_");
}

QString IncDecVolumeCommandLineOption::executeCommand(int id, const QStringList &args)
{
    Q_UNUSED(args);

    switch (id)
    {
    case VOLUME_UP:
        SoundCore::instance()->volumeUp();
        break;
    case VOLUME_DOWN:
        SoundCore::instance()->volumeDown();
        break;
    default:
        break;
    }

    return QString();
}