Commit 75c11911 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): many changes

parent 7c92738c
......@@ -20,7 +20,7 @@
* Author: Ronan Abhamon
*/
#include "utils.hpp"
#include "Utils.hpp"
// =============================================================================
......
......@@ -426,25 +426,6 @@ inline QVariantMap createStat (const QString &key, const QString &value) {
return m;
}
inline QString iceStateToString (linphone::IceState state) const {
switch (state) {
case linphone::IceStateNotActivated:
return tr("iceStateNotActivated");
case linphone::IceStateFailed:
return tr("iceStateFailed");
case linphone::IceStateInProgress:
return tr("iceStateInProgress");
case linphone::IceStateReflexiveConnection:
return tr("iceStateReflexiveConnection");
case linphone::IceStateHostConnection:
return tr("iceStateHostConnection");
case linphone::IceStateRelayConnection:
return tr("iceStateRelayConnection");
default:
return tr("iceStateInvalid");
}
}
void CallModel::updateStats (const linphone::CallStats &callStats, QVariantList &stats) {
QString family;
shared_ptr<const linphone::CallParams> params = mLinphoneCall->getCurrentParams();
......@@ -512,3 +493,22 @@ void CallModel::updateStats (const linphone::CallStats &callStats, QVariantList
break;
}
}
QString CallModel::iceStateToString (linphone::IceState state) const {
switch (state) {
case linphone::IceStateNotActivated:
return tr("iceStateNotActivated");
case linphone::IceStateFailed:
return tr("iceStateFailed");
case linphone::IceStateInProgress:
return tr("iceStateInProgress");
case linphone::IceStateReflexiveConnection:
return tr("iceStateReflexiveConnection");
case linphone::IceStateHostConnection:
return tr("iceStateHostConnection");
case linphone::IceStateRelayConnection:
return tr("iceStateRelayConnection");
default:
return tr("iceStateInvalid");
}
}
......@@ -128,6 +128,8 @@ private:
QVariantList getVideoStats () const;
void updateStats (const linphone::CallStats &callStats, QVariantList &stats);
QString iceStateToString (linphone::IceState state) const;
bool mPausedByRemote = false;
bool mPausedByUser = false;
bool mRecording = false;
......
......@@ -16,10 +16,10 @@ var MAP_STATUS_TO_PARAMS = (function () {
handler: (function () { call.pausedByUser = true }),
name: qsTr('pauseCall')
}, {
handler: (function () { call.transfer() }),
handler: call.transfer,
name: qsTr('transferCall')
}, {
handler: (function () { call.terminate() }),
handler: call.terminate,
name: qsTr('terminateCall')
}],
component: callActions,
......
......@@ -85,12 +85,16 @@ Rectangle {
CallStatistics {
id: callStatistics
relativeTo: callQuality
relativeY: info.height + elapsedTime.height * 2
call: incall.call
width: container.width
height: container.height
width: container.width
launcher: callQuality
relativeTo: callQuality
relativeY: info.height + elapsedTime.height * 2
}
}
......
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