linphone-iphone/daemon/commands/audio-codec-toggle.h
2017-09-21 14:41:18 +02:00

45 lines
1.4 KiB
C++

/*
audio-codec-toggle.h
Copyright (C) 2016 Belledonne Communications, Grenoble, France
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or (at
your option) any later version.
This library 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 Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_TOGGLE_H_
#define LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_TOGGLE_H_
#include "daemon.h"
class AudioCodecToggleCommand: public DaemonCommand {
public:
AudioCodecToggleCommand(const char *name, const char *proto, const char *help, bool enable);
void exec(Daemon *app, const std::string &args) override;
protected:
bool mEnable;
};
class AudioCodecEnableCommand: public AudioCodecToggleCommand {
public:
AudioCodecEnableCommand();
};
class AudioCodecDisableCommand: public AudioCodecToggleCommand {
public:
AudioCodecDisableCommand();
};
#endif // LINPHONE_DAEMON_COMMAND_AUDIO_CODEC_TOGGLE_H_