From 7c38005a7c76e953676a35a8fe66ffe019b94820 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 19 Aug 2015 09:48:11 +0000 Subject: added volume.cpp git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@5425 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmp/qmmp.pro | 3 ++- src/qmmp/volume.cpp | 26 ++++++++++++++++++++++++++ src/qmmp/volume.h | 5 +---- 3 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 src/qmmp/volume.cpp (limited to 'src') diff --git a/src/qmmp/qmmp.pro b/src/qmmp/qmmp.pro index 3f3178db6..a9421c547 100644 --- a/src/qmmp/qmmp.pro +++ b/src/qmmp/qmmp.pro @@ -70,7 +70,8 @@ SOURCES += recycler.cpp \ outputwriter.cpp \ qmmpplugincache.cpp \ channelmap.cpp \ - channelconverter.cpp + channelconverter.cpp \ + volume.cpp FORMS += unix:TARGET = ../../lib/qmmp win32:TARGET = ../../../bin/qmmp diff --git a/src/qmmp/volume.cpp b/src/qmmp/volume.cpp new file mode 100644 index 000000000..f74f0d2ac --- /dev/null +++ b/src/qmmp/volume.cpp @@ -0,0 +1,26 @@ +/*************************************************************************** + * Copyright (C) 2015 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 "volume.h" + +bool Volume::hasNotifySignal() const +{ + return false; +} diff --git a/src/qmmp/volume.h b/src/qmmp/volume.h index bef3133f0..7cd169aa3 100644 --- a/src/qmmp/volume.h +++ b/src/qmmp/volume.h @@ -66,10 +66,7 @@ public: * Returns true if the object supports change notification via * emitting changed() signal so polling the volume is not needed. */ - virtual bool hasNotifySignal() const - { - return false; - } + virtual bool hasNotifySignal() const; signals: void changed(); -- cgit v1.2.3-13-gbd6f