Commit a2214614 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by Tristan Matthews

client: supply stub implementation when dbus is not available

Change-Id: I958205c3512382283976102dc9a8955b6cefff57
Refs: #46447
parent 6cd4dcac
/*
* Copyright (C) 2014 Savoir-Faire Linux Inc.
* Author: Vittorio Giovara <vittorio.giovara@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., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#warning Using a stub file will produce a non working application
#include "client/callmanager.h"
CallManager::CallManager()
{}
void CallManager::callStateChanged(const std::string& callID,
const std::string& state)
{
}
void CallManager::transferFailed()
{
}
void CallManager::transferSucceeded()
{
}
void CallManager::recordPlaybackStopped(const std::string& path)
{
}
void CallManager::voiceMailNotify(const std::string& callID,
const int32_t& nd_msg)
{
}
void CallManager::incomingMessage(const std::string& ID,
const std::string& from,
const std::string& msg)
{
}
void CallManager::incomingCall(const std::string& accountID,
const std::string& callID,
const std::string& from)
{
}
void CallManager::recordPlaybackFilepath(const std::string& id,
const std::string& filename)
{
}
void CallManager::conferenceCreated(const std::string& confID)
{
}
void CallManager::conferenceChanged(const std::string& confID,
const std::string& state)
{
}
void CallManager::conferenceRemoved(const std::string& confID)
{
}
void CallManager::newCallCreated(const std::string& accountID,
const std::string& callID,
const std::string& to)
{
}
void CallManager::sipCallStateChanged(const std::string& accoundID,
const std::string& state,
const int32_t& code)
{
}
void CallManager::recordingStateChanged(const std::string& callID,
const bool& state)
{
}
void CallManager::updatePlaybackScale(const std::string& callID,
const int32_t&,
const int32_t&)
{
}
void CallManager::secureSdesOn(std::string const& callID)
{
}
void CallManager::secureSdesOff(std::string const& callID)
{
}
void CallManager::secureZrtpOn(const std::string& callID,
const std::string& cipher)
{
}
void CallManager::secureZrtpOff(const std::string& callID)
{
}
void CallManager::showSAS(const std::string& callID,
const std::string& sas,
const bool& verified)
{
}
void CallManager::zrtpNotSuppOther(const std::string& callID)
{
}
void CallManager::zrtpNegotiationFailed(const std::string& callID,
const std::string& reason,
const std::string& severity)
{
}
void CallManager::onRtcpReportReceived(const std::string& callID,
const std::map<std::string, int>& stats)
{
}
......@@ -28,6 +28,8 @@
* as that of the covered work.
*/
/* Note: this file is compiled only when dbus is not available */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
......@@ -40,7 +42,7 @@
Client::Client() : callManager_(new CallManager)
, configurationManager_(new ConfigurationManager)
#ifdef SFL_PRESENCE
, presenceManager_(new PresenceManager)
, presenceManager_(new PresenceManager)
#endif
, instanceManager_(0)
, dispatcher_(0)
......@@ -79,22 +81,26 @@ int Client::exit()
return 0;
}
CallManager *
Client::getCallManager()
CallManager * Client::getCallManager()
{
return callManager_;
}
ConfigurationManager *
Client::getConfigurationManager()
ConfigurationManager * Client::getConfigurationManager()
{
return configurationManager_;
}
#ifdef SFL_PRESENCE
PresenceManager *
Client::getPresenceManager()
PresenceManager * Client::getPresenceManager()
{
return presenceManager_;
}
#endif
#ifdef SFL_VIDEO
VideoControls * Client::getVideoControls()
{
return videoControls_;
}
#endif
/*
* Copyright (C) 2014 Savoir-Faire Linux Inc.
* Author: Vittorio Giovara <vittorio.giovara@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., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#warning Using a stub file will produce a non working application
#include "client/configurationmanager.h"
ConfigurationManager::ConfigurationManager() {}
void ConfigurationManager::accountsChanged()
{
}
void ConfigurationManager::historyChanged()
{
}
void ConfigurationManager::stunStatusFailure(const std::string& accountID)
{
}
void ConfigurationManager::volumeChanged(const std::string&,
const int&)
{
}
void ConfigurationManager::registrationStateChanged(const std::string& accountID,
int const& state)
{
}
void ConfigurationManager::sipRegistrationStateChanged(const std::string& accountID,
const std::string& state,
const int32_t& code)
{
}
void ConfigurationManager::errorAlert(const int& alertmsg)
{
}
std::vector< int32_t > ConfigurationManager::getHardwareAudioFormat()
{
}
std::vector<std::string> ConfigurationManager::getSupportedAudioManagers()
{
return {"STUB"};
}
/*
* Copyright (C) 2013 Savoir-Faire Linux Inc.
* Author: Patrick Keroulas <patrick.keroulas@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.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#warning Using a stub file will produce a non working application
#include "client/presencemanager.h"
PresenceManager::PresenceManager()
{}
void PresenceManager::newBuddyNotification(const std::string& accountID,
const std::string& buddyUri,
const bool& status,
const std::string& lineStatus)
{
}
void PresenceManager::subscriptionStateChanged(const std::string& accountID,
const std::string& buddyUri,
const bool& state)
{
}
void PresenceManager::newServerSubscriptionRequest(const std::string& remote)
{
}
void PresenceManager::serverError(const std::string& accountID,
const std::string& error,
const std::string& msg)
{
}
/*
* Copyright (C) 2013 Savoir-Faire Linux Inc.
* Author: Patrick Keroulas <patrick.keroulas@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.
*
* Additional permission under GNU GPL version 3 section 7:
*
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
*/
#warning Using a stub file will produce a non working application
#include "client/video_controls.h"
VideoControls::VideoControls()
{}
VideoPreference& VideoControls::getVideoPreferences()
{
}
void VideoControls::deviceEvent()
{
}
void VideoControls::startedDecoding(const std::string &id, const std::string,
int w, int h)
{
}
void VideoControls::stoppedDecoding(const std::string &id, const std::string)
{
}
std::map<std::string, std::string> VideoControls::getSettings()
{
std::map<std::string, std::string> stub;
return stub;
}
bool VideoControls::hasCameraStarted()
{
return false;
}
void VideoControls::startCamera()
{
}
void VideoControls::stopCamera()
{
}
std::weak_ptr<sfl_video::VideoFrameActiveWriter> VideoControls::getVideoCamera()
{
std::weak_ptr<sfl_video::VideoFrameActiveWriter> stub;
return stub;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment