mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-22 01:56:44 +00:00
feat(GODT-3121): QML request suggestions.
This commit is contained in:
@ -303,6 +303,16 @@ void QMLBackend::openExternalLink(QString const &url) {
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
//
|
||||
//****************************************************************************************************************************************************
|
||||
void QMLBackend::requestKnowledgeBaseSuggestions() const {
|
||||
HANDLE_EXCEPTION(
|
||||
app().grpc().requestKnowledgeBaseSuggestions("Test");
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
//****************************************************************************************************************************************************
|
||||
/// \return The value for the 'showOnStartup' property.
|
||||
//****************************************************************************************************************************************************
|
||||
|
||||
@ -66,6 +66,7 @@ public: // member functions.
|
||||
Q_INVOKABLE void clearAnswers(); ///< Clear all collected answers.
|
||||
Q_INVOKABLE bool isTLSCertificateInstalled(); ///< Check if the bridge certificate is installed in the OS keychain.
|
||||
Q_INVOKABLE void openExternalLink(QString const & url = QString()); ///< Open a knowledge base article.
|
||||
Q_INVOKABLE void requestKnowledgeBaseSuggestions() const; ///< Request knowledgebase article suggestions.
|
||||
|
||||
public: // Qt/QML properties. Note that the NOTIFY-er signal is required even for read-only properties (QML warning otherwise)
|
||||
Q_PROPERTY(bool showOnStartup READ showOnStartup NOTIFY showOnStartupChanged)
|
||||
|
||||
@ -5,11 +5,6 @@
|
||||
<file>qml/AccountView.qml</file>
|
||||
<file>qml/Banner.qml</file>
|
||||
<file>qml/Bridge.qml</file>
|
||||
<file>qml/BugCategoryView.qml</file>
|
||||
<file>qml/BugQuestionView.qml</file>
|
||||
<file>qml/BugReportFlow.qml</file>
|
||||
<file>qml/BugReportView.qml</file>
|
||||
<file>qml/CategoryItem.qml</file>
|
||||
<file>qml/Configuration.qml</file>
|
||||
<file>qml/ConfigurationItem.qml</file>
|
||||
<file>qml/ContentWrapper.qml</file>
|
||||
@ -89,6 +84,11 @@
|
||||
<file>qml/Notifications/Notifications.qml</file>
|
||||
<file>qml/Notifications/qmldir</file>
|
||||
<file>qml/PortSettings.qml</file>
|
||||
<file>qml/BugReport/BugCategoryView.qml</file>
|
||||
<file>qml/BugReport/BugQuestionView.qml</file>
|
||||
<file>qml/BugReport/BugReportFlow.qml</file>
|
||||
<file>qml/BugReport/BugReportView.qml</file>
|
||||
<file>qml/BugReport/CategoryItem.qml</file>
|
||||
<file>qml/Proton/Action.qml</file>
|
||||
<file>qml/Proton/ApplicationWindow.qml</file>
|
||||
<file>qml/Proton/Button.qml</file>
|
||||
|
||||
@ -14,6 +14,7 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import ".."
|
||||
|
||||
SettingsView {
|
||||
id: root
|
||||
@ -14,6 +14,7 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import ".."
|
||||
|
||||
SettingsView {
|
||||
id: root
|
||||
@ -15,6 +15,7 @@ import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import Notifications
|
||||
import ".."
|
||||
|
||||
Item {
|
||||
id: root
|
||||
@ -77,6 +78,7 @@ Item {
|
||||
root.showBugCategory();
|
||||
}
|
||||
onQuestionAnswered: {
|
||||
Backend.requestKnowledgeBaseSuggestions();
|
||||
root.showBugReport();
|
||||
}
|
||||
}
|
||||
@ -14,6 +14,7 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import ".."
|
||||
|
||||
SettingsView {
|
||||
id: root
|
||||
@ -14,6 +14,7 @@ import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import ".."
|
||||
|
||||
Item {
|
||||
id: root
|
||||
@ -15,6 +15,7 @@ import QtQuick.Layouts
|
||||
import QtQuick.Controls
|
||||
import Proton
|
||||
import Notifications
|
||||
import "BugReport"
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
||||
@ -18,6 +18,7 @@ import QtQuick.Controls
|
||||
import Proton
|
||||
import Notifications
|
||||
import "SetupWizard"
|
||||
import "BugReport"
|
||||
|
||||
ApplicationWindow {
|
||||
id: root
|
||||
|
||||
Reference in New Issue
Block a user