Commit be0f3bca authored by Ronan Abhamon's avatar Ronan Abhamon

feat(src/components/assistant): comment useless code for the moment

parent 9954c943
...@@ -37,11 +37,11 @@ public: ...@@ -37,11 +37,11 @@ public:
m_assistant = assistant; m_assistant = assistant;
} }
void onCreateAccount ( // void onCreateAccount (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
void onIsAccountExist ( void onIsAccountExist (
const shared_ptr<linphone::AccountCreator> &creator, const shared_ptr<linphone::AccountCreator> &creator,
...@@ -59,53 +59,53 @@ public: ...@@ -59,53 +59,53 @@ public:
} }
} }
void onActivateAccount ( // void onActivateAccount (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onIsAccountActivated ( // void onIsAccountActivated (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onLinkAccount ( // void onLinkAccount (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onActivateAlias ( // void onActivateAlias (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onIsAliasUsed ( // void onIsAliasUsed (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onIsAccountLinked ( // void onIsAccountLinked (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onRecoverAccount ( // void onRecoverAccount (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
//
void onUpdateAccount ( // void onUpdateAccount (
const shared_ptr<linphone::AccountCreator> &creator, // const shared_ptr<linphone::AccountCreator> &creator,
linphone::AccountCreatorStatus status, // linphone::AccountCreatorStatus status,
const string &resp // const string &resp
) override {} // ) override {}
private: private:
AssistantModel *m_assistant; AssistantModel *m_assistant;
...@@ -176,6 +176,15 @@ void AssistantModel::setPassword (const QString &password) { ...@@ -176,6 +176,15 @@ void AssistantModel::setPassword (const QString &password) {
emit passwordChanged(password, error); 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 () { void AssistantModel::login () {
......
...@@ -38,12 +38,14 @@ public: ...@@ -38,12 +38,14 @@ public:
Q_INVOKABLE void setUsername (const QString &username); Q_INVOKABLE void setUsername (const QString &username);
Q_INVOKABLE void setPassword (const QString &password); Q_INVOKABLE void setPassword (const QString &password);
Q_INVOKABLE void setPhoneNumber (const QString &phone_number);
Q_INVOKABLE void login (); Q_INVOKABLE void login ();
signals: signals:
void usernameChanged (const QString &username, const QString &error); void usernameChanged (const QString &username, const QString &error);
void passwordChanged (const QString &password, 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); void loginStatusChanged (const QString &error);
......
...@@ -115,6 +115,8 @@ AssistantAbstractView { ...@@ -115,6 +115,8 @@ AssistantAbstractView {
text: qsTr('useUsernameToLogin') text: qsTr('useUsernameToLogin')
width: AssistantUseLinphoneSipAccountStyle.checkBox.width width: AssistantUseLinphoneSipAccountStyle.checkBox.width
onClicked: requestBlock.stop('')
} }
RequestBlock { RequestBlock {
......
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