mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
fix(app): many changes
This commit is contained in:
parent
7c92738cd7
commit
75c11911ac
5 changed files with 32 additions and 26 deletions
|
|
@ -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
|
||||
|
||||
call: incall.call
|
||||
|
||||
height: container.height
|
||||
width: container.width
|
||||
|
||||
launcher: callQuality
|
||||
|
||||
relativeTo: callQuality
|
||||
relativeY: info.height + elapsedTime.height * 2
|
||||
call: incall.call
|
||||
width: container.width
|
||||
height: container.height
|
||||
launcher: callQuality
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue