Skip to content
Snippets Groups Projects
Unverified Commit 7fee6550 authored by Trevor Tabah's avatar Trevor Tabah Committed by Sébastien Blin
Browse files

lrc: link to monitor API

Gitlab: jami-client-qt#406

Change-Id: Ib51b86de3da5a2cfc587191490d2ae5898614528
parent 4d51a872
Branches
No related tags found
No related merge requests found
......@@ -119,6 +119,11 @@ public:
*/
static std::atomic_bool holdConferences;
/**
* Make monitor continous or discrete
*/
static void monitor(bool continous);
private:
std::unique_ptr<LrcPimpl> lrcPimpl_;
};
......
......@@ -239,6 +239,8 @@ CallbacksHandler::CallbacksHandler(const Lrc& parent)
this,
&CallbacksHandler::slotAudioMeterReceived,
Qt::QueuedConnection);
}
CallbacksHandler::~CallbacksHandler() {}
......@@ -247,10 +249,11 @@ void
CallbacksHandler::subscribeToDebugReceived()
{
connect(&ConfigurationManager::instance(),
&ConfigurationManagerInterface::debugMessageReceived,
&ConfigurationManagerInterface::messageSend,
this,
&CallbacksHandler::slotDebugMessageReceived,
Qt::QueuedConnection);
}
void
......
......@@ -214,6 +214,12 @@ isFinished(const QString& callState)
return false;
}
void
Lrc::monitor(bool continuous)
{
ConfigurationManager::instance().monitor(continuous);
}
LrcPimpl::LrcPimpl(Lrc& linked, MigrationCb& willMigrateCb, MigrationCb& didMigrateCb)
: linked(linked)
, behaviorController(std::make_unique<BehaviorController>())
......
......@@ -221,7 +221,7 @@ public:
}),
exportable_callback<ConfigurationSignal::MessageSend>(
[this](const std::string& message) {
Q_EMIT this->debugMessageReceived(QString(message.c_str()));
Q_EMIT this->messageSend(QString(message.c_str()));
}),
exportable_callback<ConfigurationSignal::ComposingStatusChanged>(
[this](const std::string& account_id, const std::string& from, int status) {
......@@ -517,6 +517,8 @@ public Q_SLOTS: // METHODS
void registerAllAccounts() { DRing::registerAllAccounts(); }
void monitor(bool continuous) { DRing::monitor(continuous); }
void removeAccount(const QString& accountID) { DRing::removeAccount(accountID.toStdString()); }
bool changeAccountPassword(const QString& id,
......@@ -889,7 +891,7 @@ Q_SIGNALS: // SIGNALS
void accountProfileReceived(const QString& accountId,
const QString& displayName,
const QString& userPhoto);
void debugMessageReceived(const QString& message);
void messageSend(const QString& message);
void composingStatusChanged(const QString& accountId,
const QString& contactId,
bool isComposing);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment