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
be0f3bca
Commit
be0f3bca
authored
Apr 07, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(src/components/assistant): comment useless code for the moment
parent
9954c943
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
52 deletions
+65
-52
AssistantModel.cpp
linphone-desktop/src/components/assistant/AssistantModel.cpp
+61
-52
AssistantModel.hpp
linphone-desktop/src/components/assistant/AssistantModel.hpp
+2
-0
AssistantUseLinphoneSipAccount.qml
...ews/App/Main/Assistant/AssistantUseLinphoneSipAccount.qml
+2
-0
No files found.
linphone-desktop/src/components/assistant/AssistantModel.cpp
View file @
be0f3bca
...
...
@@ -37,11 +37,11 @@ public:
m_assistant
=
assistant
;
}
void
onCreateAccount
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
//
void onCreateAccount (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
void
onIsAccountExist
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
...
...
@@ -59,53 +59,53 @@ public:
}
}
void
onActivateAccount
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onIsAccountActivated
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onLinkAccount
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onActivateAlias
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onIsAliasUsed
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onIsAccountLinked
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onRecoverAccount
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
void
onUpdateAccount
(
const
shared_ptr
<
linphone
::
AccountCreator
>
&
creator
,
linphone
::
AccountCreatorStatus
status
,
const
string
&
resp
)
override
{}
//
void onActivateAccount (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onIsAccountActivated (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onLinkAccount (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onActivateAlias (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onIsAliasUsed (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onIsAccountLinked (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onRecoverAccount (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
//
//
void onUpdateAccount (
//
const shared_ptr<linphone::AccountCreator> &creator,
//
linphone::AccountCreatorStatus status,
//
const string &resp
//
) override {}
private:
AssistantModel
*
m_assistant
;
...
...
@@ -176,6 +176,15 @@ void AssistantModel::setPassword (const QString &password) {
emit
passwordChanged
(
password
,
error
);
}
void
AssistantModel
::
setPhoneNumber
(
const
QString
&
phone_number
)
{
// shared_ptr<linphone::Config> config = CoreManager::getInstance()->getCore()->getConfig();
QString
error
;
// TODO: use the future wrapped function: `set_phone_number`.
emit
phoneNumberChanged
(
phone_number
,
error
);
}
// -----------------------------------------------------------------------------
void
AssistantModel
::
login
()
{
...
...
linphone-desktop/src/components/assistant/AssistantModel.hpp
View file @
be0f3bca
...
...
@@ -38,12 +38,14 @@ public:
Q_INVOKABLE
void
setUsername
(
const
QString
&
username
);
Q_INVOKABLE
void
setPassword
(
const
QString
&
password
);
Q_INVOKABLE
void
setPhoneNumber
(
const
QString
&
phone_number
);
Q_INVOKABLE
void
login
();
signals:
void
usernameChanged
(
const
QString
&
username
,
const
QString
&
error
);
void
passwordChanged
(
const
QString
&
password
,
const
QString
&
error
);
void
phoneNumberChanged
(
const
QString
&
phone_number
,
const
QString
&
error
);
void
loginStatusChanged
(
const
QString
&
error
);
...
...
linphone-desktop/ui/views/App/Main/Assistant/AssistantUseLinphoneSipAccount.qml
View file @
be0f3bca
...
...
@@ -115,6 +115,8 @@ AssistantAbstractView {
text
:
qsTr
(
'
useUsernameToLogin
'
)
width
:
AssistantUseLinphoneSipAccountStyle
.
checkBox
.
width
onClicked
:
requestBlock
.
stop
(
''
)
}
RequestBlock
{
...
...
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