mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-21 21:58:06 +00:00
feat(src/components/assistant): comment useless code for the moment
This commit is contained in:
parent
9954c943eb
commit
be0f3bcaed
3 changed files with 65 additions and 52 deletions
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -115,6 +115,8 @@ AssistantAbstractView {
|
|||
|
||||
text: qsTr('useUsernameToLogin')
|
||||
width: AssistantUseLinphoneSipAccountStyle.checkBox.width
|
||||
|
||||
onClicked: requestBlock.stop('')
|
||||
}
|
||||
|
||||
RequestBlock {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue