Skip to content
Snippets Groups Projects
Commit e2d3703d authored by Sébastien Blin's avatar Sébastien Blin Committed by Philippe Gorley
Browse files

newcallmodel: link to isRecording


Clients should be able to get if a call is recording or not.

Change-Id: I325f5ec5cc6c07295c9d3335f0f235a32a441ba3
Reviewed-by: default avatarPhilippe Gorley <philippe.gorley@savoirfairelinux.com>
parent f961bb5d
Branches
No related tags found
No related merge requests found
...@@ -173,6 +173,13 @@ public: ...@@ -173,6 +173,13 @@ public:
*/ */
std::string getFormattedCallDuration(const std::string& callId) const; std::string getFormattedCallDuration(const std::string& callId) const;
/**
* Get if a call is recording
* @param callId
* @return true if the call is recording else false
*/
bool isRecording(const std::string& callId) const;
Q_SIGNALS: Q_SIGNALS:
/** /**
* Emitted when a call state changes * Emitted when a call state changes
......
...@@ -350,6 +350,13 @@ NewCallModel::getFormattedCallDuration(const std::string& callId) const ...@@ -350,6 +350,13 @@ NewCallModel::getFormattedCallDuration(const std::string& callId) const
return formattedString; return formattedString;
} }
bool
NewCallModel::isRecording(const std::string& callId) const
{
if (pimpl_->calls.find(callId) == pimpl_->calls.end()) return false;
return CallManager::instance().getIsRecording(callId.c_str());
}
NewCallModelPimpl::NewCallModelPimpl(const NewCallModel& linked, const CallbacksHandler& callbacksHandler) NewCallModelPimpl::NewCallModelPimpl(const NewCallModel& linked, const CallbacksHandler& callbacksHandler)
: linked(linked) : linked(linked)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment