Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
314899ac
Commit
314899ac
authored
Mar 17, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): little fixes on Presence
parent
7339b7e4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
36 deletions
+9
-36
fr.ts
linphone-desktop/assets/languages/fr.ts
+4
-15
Presence.cpp
linphone-desktop/src/components/presence/Presence.cpp
+2
-1
AccountSettingsModel.cpp
...-desktop/src/components/settings/AccountSettingsModel.cpp
+0
-10
AccountSettingsModel.hpp
...-desktop/src/components/settings/AccountSettingsModel.hpp
+1
-8
ComboBox.js
linphone-desktop/ui/modules/Common/Form/ComboBox.js
+1
-1
ComboBox.qml
linphone-desktop/ui/modules/Common/Form/ComboBox.qml
+1
-1
No files found.
linphone-desktop/assets/languages/fr.ts
View file @
314899ac
...
...
@@ -595,30 +595,19 @@ Url du serveur non configurée.</translation>
<
name
>
Presence
<
/name
>
<
message
>
<
source
>
presenceOnline
<
/source
>
<
translation
type
=
"
unfinished
"
>
En
ligne
<
/translation
>
<
translation
>
En
ligne
<
/translation
>
<
/message
>
<
message
>
<
source
>
presenceBusy
<
/source
>
<
translation
type
=
"
unfinished
"
>
<
/translation
>
<
translation
>
Occup
é
<
/translation
>
<
/message
>
<
message
>
<
source
>
presenceDoNotDisturb
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
source
>
presenceOffline
<
/source
>
<
translation
type
=
"
unfinished
"
>
Hors
-
ligne
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
PresenceString
<
/name
>
<
message
>
<
source
>
presenceOnline
<
/source
>
<
translation
type
=
"
vanished
"
>
En
ligne
<
/translation
>
<
translation
>
Ne
pas
d
é
ranger
<
/translation
>
<
/message
>
<
message
>
<
source
>
presenceOffline
<
/source
>
<
translation
type
=
"
vanished
"
>
Hors
-
ligne
<
/translation
>
<
translation
>
Hors
-
ligne
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
linphone-desktop/src/components/presence/Presence.cpp
View file @
314899ac
...
...
@@ -63,7 +63,8 @@ QString Presence::getPresenceLevelIconName (const PresenceLevel &level) {
case
Red
:
return
"led_red"
;
case
White
:
default:
return
"led_white"
;
default:
return
""
;
}
}
linphone-desktop/src/components/settings/AccountSettingsModel.cpp
View file @
314899ac
...
...
@@ -57,16 +57,6 @@ void AccountSettingsModel::setUsername (const QString &username) {
// -----------------------------------------------------------------------------
Presence
::
PresenceLevel
AccountSettingsModel
::
getPresenceLevel
()
const
{
return
Presence
::
Green
;
}
Presence
::
PresenceStatus
AccountSettingsModel
::
getPresenceStatus
()
const
{
return
Presence
::
Online
;
}
// -----------------------------------------------------------------------------
QString
AccountSettingsModel
::
getSipAddress
()
const
{
return
::
Utils
::
linphoneStringToQString
(
getDefaultSipAddress
()
->
asStringUriOnly
());
}
...
...
linphone-desktop/src/components/settings/AccountSettingsModel.hpp
View file @
314899ac
...
...
@@ -23,8 +23,7 @@
#ifndef ACCOUNT_SETTINGS_MODEL_H_
#define ACCOUNT_SETTINGS_MODEL_H_
#include "../presence/Presence.hpp"
#include <linphone++/linphone.hh>
#include <QObject>
// =============================================================================
...
...
@@ -36,9 +35,6 @@ class AccountSettingsModel : public QObject {
Q_PROPERTY
(
QString
sipAddress
READ
getSipAddress
NOTIFY
accountUpdated
);
Q_PROPERTY
(
QVariantList
accounts
READ
getAccounts
NOTIFY
accountUpdated
);
Q_PROPERTY
(
Presence
::
PresenceLevel
presenceLevel
READ
getPresenceLevel
CONSTANT
);
Q_PROPERTY
(
Presence
::
PresenceStatus
presenceStatus
READ
getPresenceStatus
CONSTANT
);
public:
AccountSettingsModel
(
QObject
*
parent
=
Q_NULLPTR
)
:
QObject
(
parent
)
{}
...
...
@@ -51,9 +47,6 @@ private:
QString
getUsername
()
const
;
void
setUsername
(
const
QString
&
username
);
Presence
::
PresenceLevel
getPresenceLevel
()
const
;
Presence
::
PresenceStatus
getPresenceStatus
()
const
;
QString
getSipAddress
()
const
;
QVariantList
getAccounts
()
const
;
...
...
linphone-desktop/ui/modules/Common/Form/ComboBox.js
View file @
314899ac
...
...
@@ -21,7 +21,7 @@ function getSelectedEntryIcon () {
)
||
''
}
function
getEntryIcon
()
{
function
getEntryIcon
(
item
)
{
var
iconRole
=
comboBox
.
iconRole
return
(
iconRole
.
length
&&
item
.
flattenedModel
[
iconRole
])
||
''
}
linphone-desktop/ui/modules/Common/Form/ComboBox.qml
View file @
314899ac
...
...
@@ -111,7 +111,7 @@ ComboBox {
width
:
item
.
width
Icon
{
icon
:
Logic
.
getEntryIcon
()
icon
:
Logic
.
getEntryIcon
(
item
)
iconSize
:
ComboBoxStyle
.
delegate
.
contentItem
.
iconSize
visible
:
icon
.
length
>
0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment