123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- /*
- * Copyright (C) 2004-2017 Savoir-faire Linux Inc.
- *
- * Author: Philippe Proulx <philippe.proulx@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 3 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 "dbuscallmanager.h"
- #include "dring/callmanager_interface.h"
- DBusCallManager::DBusCallManager(DBus::Connection& connection)
- : DBus::ObjectAdaptor(connection, "/cx/ring/Ring/CallManager")
- {}
- auto
- DBusCallManager::placeCall(const std::string& accountID, const std::string& to) -> decltype(DRing::placeCall(accountID, to))
- {
- return DRing::placeCall(accountID, to);
- }
- auto
- DBusCallManager::refuse(const std::string& callID) -> decltype(DRing::refuse(callID))
- {
- return DRing::refuse(callID);
- }
- auto
- DBusCallManager::accept(const std::string& callID) -> decltype(DRing::accept(callID))
- {
- return DRing::accept(callID);
- }
- auto
- DBusCallManager::hangUp(const std::string& callID) -> decltype(DRing::hangUp(callID))
- {
- return DRing::hangUp(callID);
- }
- auto
- DBusCallManager::hold(const std::string& callID) -> decltype(DRing::hold(callID))
- {
- return DRing::hold(callID);
- }
- auto
- DBusCallManager::unhold(const std::string& callID) -> decltype(DRing::unhold(callID))
- {
- return DRing::unhold(callID);
- }
- auto
- DBusCallManager::muteLocalMedia(const std::string& callid, const std::string& mediaType, const bool& mute)
- -> decltype(DRing::muteLocalMedia(callid, mediaType, mute))
- {
- return DRing::muteLocalMedia(callid, mediaType, mute);
- }
- auto
- DBusCallManager::transfer(const std::string& callID, const std::string& to) -> decltype(DRing::transfer(callID, to))
- {
- return DRing::transfer(callID, to);
- }
- auto
- DBusCallManager::attendedTransfer(const std::string& transferID, const std::string& targetID) -> decltype(DRing::attendedTransfer(transferID, targetID))
- {
- return DRing::attendedTransfer(transferID, targetID);
- }
- auto
- DBusCallManager::getCallDetails(const std::string& callID) -> decltype(DRing::getCallDetails(callID))
- {
- return DRing::getCallDetails(callID);
- }
- auto
- DBusCallManager::getCallList() -> decltype(DRing::getCallList())
- {
- return DRing::getCallList();
- }
- void
- DBusCallManager::removeConference(const std::string& conference_id)
- {
- DRing::removeConference(conference_id);
- }
- auto
- DBusCallManager::joinParticipant(const std::string& sel_callID, const std::string& drag_callID) -> decltype(DRing::joinParticipant(sel_callID, drag_callID))
- {
- return DRing::joinParticipant(sel_callID, drag_callID);
- }
- void
- DBusCallManager::createConfFromParticipantList(const std::vector< std::string >& participants)
- {
- DRing::createConfFromParticipantList(participants);
- }
- auto
- DBusCallManager::isConferenceParticipant(const std::string& call_id) -> decltype(DRing::isConferenceParticipant(call_id))
- {
- return DRing::isConferenceParticipant(call_id);
- }
- auto
- DBusCallManager::addParticipant(const std::string& callID, const std::string& confID) -> decltype(DRing::addParticipant(callID, confID))
- {
- return DRing::addParticipant(callID, confID);
- }
- auto
- DBusCallManager::addMainParticipant(const std::string& confID) -> decltype(DRing::addMainParticipant(confID))
- {
- return DRing::addMainParticipant(confID);
- }
- auto
- DBusCallManager::detachLocalParticipant() -> decltype(DRing::detachLocalParticipant())
- {
- return DRing::detachLocalParticipant();
- }
- auto
- DBusCallManager::detachParticipant(const std::string& callID) -> decltype(DRing::detachParticipant(callID))
- {
- return DRing::detachParticipant(callID);
- }
- auto
- DBusCallManager::joinConference(const std::string& sel_confID, const std::string& drag_confID) -> decltype(DRing::joinConference(sel_confID, drag_confID))
- {
- return DRing::joinConference(sel_confID, drag_confID);
- }
- auto
- DBusCallManager::hangUpConference(const std::string& confID) -> decltype(DRing::hangUpConference(confID))
- {
- return DRing::hangUpConference(confID);
- }
- auto
- DBusCallManager::holdConference(const std::string& confID) -> decltype(DRing::holdConference(confID))
- {
- return DRing::holdConference(confID);
- }
- auto
- DBusCallManager::unholdConference(const std::string& confID) -> decltype(DRing::unholdConference(confID))
- {
- return DRing::unholdConference(confID);
- }
- auto
- DBusCallManager::getConferenceList() -> decltype(DRing::getConferenceList())
- {
- return DRing::getConferenceList();
- }
- auto
- DBusCallManager::getParticipantList(const std::string& confID) -> decltype(DRing::getParticipantList(confID))
- {
- return DRing::getParticipantList(confID);
- }
- auto
- DBusCallManager::getDisplayNames(const std::string& confID) -> decltype(DRing::getDisplayNames(confID))
- {
- return DRing::getDisplayNames(confID);
- }
- auto
- DBusCallManager::getConferenceId(const std::string& callID) -> decltype(DRing::getConferenceId(callID))
- {
- return DRing::getConferenceId(callID);
- }
- auto
- DBusCallManager::getConferenceDetails(const std::string& callID) -> decltype(DRing::getConferenceDetails(callID))
- {
- return DRing::getConferenceDetails(callID);
- }
- auto
- DBusCallManager::startRecordedFilePlayback(const std::string& filepath) -> decltype(DRing::startRecordedFilePlayback(filepath))
- {
- return DRing::startRecordedFilePlayback(filepath);
- }
- void
- DBusCallManager::stopRecordedFilePlayback(const std::string& filepath)
- {
- DRing::stopRecordedFilePlayback(filepath);
- }
- auto
- DBusCallManager::toggleRecording(const std::string& callID) -> decltype(DRing::toggleRecording(callID))
- {
- return DRing::toggleRecording(callID);
- }
- void
- DBusCallManager::setRecording(const std::string& callID)
- {
- DRing::setRecording(callID);
- }
- void
- DBusCallManager::recordPlaybackSeek(const double& value)
- {
- DRing::recordPlaybackSeek(value);
- }
- auto
- DBusCallManager::getIsRecording(const std::string& callID) -> decltype(DRing::getIsRecording(callID))
- {
- return DRing::getIsRecording(callID);
- }
- void
- DBusCallManager::switchInput(const std::string& callID, const std::string& input)
- {
- DRing::switchInput(callID, input);
- }
- auto
- DBusCallManager::getCurrentAudioCodecName(const std::string& callID) -> decltype(DRing::getCurrentAudioCodecName(callID))
- {
- return DRing::getCurrentAudioCodecName(callID);
- }
- void
- DBusCallManager::playDTMF(const std::string& key)
- {
- DRing::playDTMF(key);
- }
- void
- DBusCallManager::startTone(const int32_t& start, const int32_t& type)
- {
- DRing::startTone(start, type);
- }
- void
- DBusCallManager::sendTextMessage(const std::string& callID, const std::map<std::string, std::string>& messages, const bool& isMixed)
- {
- DRing::sendTextMessage(callID, messages, "Me", isMixed);
- }
- void
- DBusCallManager::startSmartInfo(const uint32_t& refreshTimeMs)
- {
- DRing::startSmartInfo(refreshTimeMs);
- }
- void
- DBusCallManager::stopSmartInfo()
- {
- DRing::stopSmartInfo();
- }
|