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
1e83bd74
Commit
1e83bd74
authored
Mar 01, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(ui/views/App/Settings/SettingsCallsChat): supports auto answer delay
parent
391a9759
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
SettingsModel.cpp
linphone-desktop/src/components/settings/SettingsModel.cpp
+13
-0
SettingsModel.hpp
linphone-desktop/src/components/settings/SettingsModel.hpp
+7
-0
SettingsCallsChat.qml
linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml
+8
-0
No files found.
linphone-desktop/src/components/settings/SettingsModel.cpp
View file @
1e83bd74
...
@@ -42,6 +42,19 @@ SettingsModel::SettingsModel (QObject *parent) : QObject(parent) {
...
@@ -42,6 +42,19 @@ SettingsModel::SettingsModel (QObject *parent) : QObject(parent) {
// Chat & calls.
// Chat & calls.
// =============================================================================
// =============================================================================
// -----------------------------------------------------------------------------
int
SettingsModel
::
getAutoAnswerDelay
()
const
{
return
m_config
->
getInt
(
UI_SECTION
,
"auto_answer_delay"
,
0
);
}
void
SettingsModel
::
setAutoAnswerDelay
(
int
delay
)
{
m_config
->
setInt
(
UI_SECTION
,
"auto_answer_delay"
,
delay
);
emit
autoAnswerDelayChanged
(
delay
);
}
// -----------------------------------------------------------------------------
bool
SettingsModel
::
getAutoAnswerStatus
()
const
{
bool
SettingsModel
::
getAutoAnswerStatus
()
const
{
return
!!
m_config
->
getInt
(
UI_SECTION
,
"auto_answer"
,
0
);
return
!!
m_config
->
getInt
(
UI_SECTION
,
"auto_answer"
,
0
);
}
}
...
...
linphone-desktop/src/components/settings/SettingsModel.hpp
View file @
1e83bd74
...
@@ -38,6 +38,8 @@ class SettingsModel : public QObject {
...
@@ -38,6 +38,8 @@ class SettingsModel : public QObject {
// Chat & calls. -------------------------------------------------------------
// Chat & calls. -------------------------------------------------------------
Q_PROPERTY
(
bool
autoAnswerStatus
READ
getAutoAnswerStatus
WRITE
setAutoAnswerStatus
NOTIFY
autoAnswerStatusChanged
);
Q_PROPERTY
(
bool
autoAnswerStatus
READ
getAutoAnswerStatus
WRITE
setAutoAnswerStatus
NOTIFY
autoAnswerStatusChanged
);
Q_PROPERTY
(
int
autoAnswerDelay
READ
getAutoAnswerDelay
WRITE
setAutoAnswerDelay
NOTIFY
autoAnswerDelayChanged
);
Q_PROPERTY
(
QString
fileTransferUrl
READ
getFileTransferUrl
WRITE
setFileTransferUrl
NOTIFY
fileTransferUrlChanged
);
Q_PROPERTY
(
QString
fileTransferUrl
READ
getFileTransferUrl
WRITE
setFileTransferUrl
NOTIFY
fileTransferUrlChanged
);
Q_PROPERTY
(
bool
limeIsSupported
READ
getLimeIsSupported
CONSTANT
);
Q_PROPERTY
(
bool
limeIsSupported
READ
getLimeIsSupported
CONSTANT
);
...
@@ -114,6 +116,9 @@ public:
...
@@ -114,6 +116,9 @@ public:
bool
getAutoAnswerStatus
()
const
;
bool
getAutoAnswerStatus
()
const
;
void
setAutoAnswerStatus
(
bool
status
);
void
setAutoAnswerStatus
(
bool
status
);
int
getAutoAnswerDelay
()
const
;
void
setAutoAnswerDelay
(
int
delay
);
QString
getFileTransferUrl
()
const
;
QString
getFileTransferUrl
()
const
;
void
setFileTransferUrl
(
const
QString
&
url
);
void
setFileTransferUrl
(
const
QString
&
url
);
...
@@ -199,6 +204,8 @@ signals:
...
@@ -199,6 +204,8 @@ signals:
// Chat & calls. -------------------------------------------------------------
// Chat & calls. -------------------------------------------------------------
void
autoAnswerStatusChanged
(
bool
status
);
void
autoAnswerStatusChanged
(
bool
status
);
void
autoAnswerDelayChanged
(
int
delay
);
void
fileTransferUrlChanged
(
const
QString
&
url
);
void
fileTransferUrlChanged
(
const
QString
&
url
);
void
mediaEncryptionChanged
(
MediaEncryption
encryption
);
void
mediaEncryptionChanged
(
MediaEncryption
encryption
);
...
...
linphone-desktop/ui/views/App/Settings/SettingsCallsChat.qml
View file @
1e83bd74
...
@@ -68,6 +68,14 @@ TabContainer {
...
@@ -68,6 +68,14 @@ TabContainer {
NumericField
{
NumericField
{
readOnly
:
!
autoAnswer
.
checked
readOnly
:
!
autoAnswer
.
checked
minValue
:
0
maxValue
:
30000
step
:
1000
text
:
SettingsModel
.
autoAnswerDelay
onEditingFinished
:
SettingsModel
.
autoAnswerDelay
=
text
}
}
}
}
}
}
...
...
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