📄 guiframework.cpp
字号:
/* * Copyright (C) 2004-2006 Savoir-Faire Linux inc. * Author: Yan Morin <yan.morin@savoirfairelinux.com> * Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com> * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. */#include <string>#include <libintl.h>#include "global.h"#include "guiframework.h"#include "../manager.h"GuiFramework::GuiFramework (){}GuiFramework::~GuiFramework (void) {}boolGuiFramework::outgoingCall(const std::string& account, const CallID& id, const std::string& to){ return Manager::instance().outgoingCall(account, id, to);}boolGuiFramework::sendTextMessage(const std::string& account, const std::string& to, const std::string& message){ return Manager::instance().sendTextMessage(account, to, message);}boolGuiFramework::hangupCall (const CallID& id){ return Manager::instance().hangupCall(id);}boolGuiFramework::cancelCall (const CallID& id){ return Manager::instance().cancelCall(id);}boolGuiFramework::answerCall(const CallID& id){ return Manager::instance().answerCall(id);}boolGuiFramework::onHoldCall(const CallID& id){ return Manager::instance().onHoldCall(id);}boolGuiFramework::offHoldCall(const CallID& id){ return Manager::instance().offHoldCall(id);}boolGuiFramework::transferCall(const CallID& id, const std::string& to){ return Manager::instance().transferCall(id, to);}voidGuiFramework::mute() { Manager::instance().mute();}voidGuiFramework::unmute() { Manager::instance().unmute();}boolGuiFramework::refuseCall (const CallID& id){ return Manager::instance().refuseCall(id);}boolGuiFramework::saveConfig (void){ return Manager::instance().saveConfig();}bool GuiFramework::registerVoIPLink(const AccountID& accountId){ return Manager::instance().registerVoIPLink(accountId);}bool GuiFramework::unregisterVoIPLink (const AccountID& accountId){ return Manager::instance().unregisterVoIPLink(accountId);}bool GuiFramework::sendDtmf (const CallID& id, char code){ return Manager::instance().sendDtmf(id, code);}bool GuiFramework::playDtmf (char code){ return Manager::instance().playDtmf(code);}bool GuiFramework::playTone (){ return Manager::instance().playTone();}bool GuiFramework::stopTone (){ Manager::instance().stopTone(true); return true;}/** * Initialization section / redirection */boolGuiFramework::getEvents() { return Manager::instance().getEvents();}/** * Configuration section / redirection */bool GuiFramework::getZeroconf(const std::string& sequenceId) { return Manager::instance().getZeroconf(sequenceId);}bool GuiFramework::attachZeroconfEvents(const std::string& sequenceId, Pattern::Observer& observer){ return Manager::instance().attachZeroconfEvents(sequenceId, observer);}bool GuiFramework::detachZeroconfEvents(Pattern::Observer& observer){ return Manager::instance().detachZeroconfEvents(observer);}bool GuiFramework::getCallStatus(const std::string& sequenceId){ return Manager::instance().getCallStatus(sequenceId);}bool GuiFramework::getAccountList(const std::string& sequenceId){ return Manager::instance().getAccountList(sequenceId);}const CallID&GuiFramework::getCurrentId() { return Manager::instance().getCurrentCallId();}bool GuiFramework::getConfigAll(const std::string& sequenceId){ return Manager::instance().getConfigAll(sequenceId);}bool GuiFramework::getConfig(const std::string& section, const std::string& name, TokenList& arg){ return Manager::instance().getConfig(section, name, arg);}bool GuiFramework::setConfig(const std::string& section, const std::string& name, const std::string& value){ return Manager::instance().setConfig(section, name, value);}bool GuiFramework::getConfigList(const std::string& sequenceId, const std::string& name){ return Manager::instance().getConfigList(sequenceId, name);}bool GuiFramework::setSpkrVolume(int volume){ Manager::instance().setSpkrVolume(volume); return true;}bool GuiFramework::setMicVolume(int volume){ Manager::instance().setMicVolume(volume); return true;}intGuiFramework::getSpkrVolume(){ return Manager::instance().getSpkrVolume();}intGuiFramework::getMicVolume(){ return Manager::instance().getMicVolume();}boolGuiFramework::hasLoadedSetup(){ return Manager::instance().hasLoadedSetup();}bool GuiFramework::setSwitch(const std::string& switchName, std::string& returnMessage){ return Manager::instance().setSwitch(switchName, returnMessage);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -