Core: Move CredentialQuery from Axivion into Core plugin

Change-Id: I9febc0d5f8f141b77435fc0877522791d41aaadd
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Jarek Kobus
2024-10-08 09:22:56 +02:00
committed by hjk
parent 598505ce76
commit 212f373cae
7 changed files with 16 additions and 13 deletions

View File

@@ -1,14 +1,13 @@
add_qtc_plugin(Axivion add_qtc_plugin(Axivion
PLUGIN_DEPENDS PLUGIN_DEPENDS
Core Debugger ProjectExplorer TextEditor Core Debugger ProjectExplorer TextEditor
DEPENDS Qt::Network Qt::Widgets ExtensionSystem Utils qtkeychain DEPENDS Qt::Network Qt::Widgets ExtensionSystem Utils
SOURCES SOURCES
axivion.qrc axivion.qrc
axivionperspective.cpp axivionperspective.h axivionperspective.cpp axivionperspective.h
axivionplugin.cpp axivionplugin.h axivionplugin.cpp axivionplugin.h
axivionsettings.cpp axivionsettings.h axivionsettings.cpp axivionsettings.h
axiviontr.h axiviontr.h
credentialquery.h credentialquery.cpp
dashboard/dto.cpp dashboard/dto.h dashboard/dto.cpp dashboard/dto.h
dashboard/concat.cpp dashboard/concat.h dashboard/concat.cpp dashboard/concat.h
dashboard/error.h dashboard/error.cpp dashboard/error.h dashboard/error.cpp

View File

@@ -9,7 +9,6 @@ QtcPlugin {
Depends { name: "ProjectExplorer" } Depends { name: "ProjectExplorer" }
Depends { name: "TextEditor" } Depends { name: "TextEditor" }
Depends { name: "Utils" } Depends { name: "Utils" }
Depends { name: "qtkeychain" }
Depends { name: "Qt.widgets" } Depends { name: "Qt.widgets" }
Depends { name: "Qt.network" } Depends { name: "Qt.network" }
@@ -22,8 +21,6 @@ QtcPlugin {
"axivionsettings.cpp", "axivionsettings.cpp",
"axivionsettings.h", "axivionsettings.h",
"axiviontr.h", "axiviontr.h",
"credentialquery.cpp",
"credentialquery.h",
"dynamiclistmodel.cpp", "dynamiclistmodel.cpp",
"dynamiclistmodel.h", "dynamiclistmodel.h",
"issueheaderview.cpp", "issueheaderview.cpp",

View File

@@ -6,10 +6,10 @@
#include "axivionperspective.h" #include "axivionperspective.h"
#include "axivionsettings.h" #include "axivionsettings.h"
#include "axiviontr.h" #include "axiviontr.h"
#include "credentialquery.h"
#include "dashboard/dto.h" #include "dashboard/dto.h"
#include "dashboard/error.h" #include "dashboard/error.h"
#include <coreplugin/credentialquery.h>
#include <coreplugin/editormanager/documentmodel.h> #include <coreplugin/editormanager/documentmodel.h>
#include <coreplugin/editormanager/editormanager.h> #include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/icore.h> #include <coreplugin/icore.h>

View File

@@ -1,5 +1,5 @@
add_qtc_plugin(Core add_qtc_plugin(Core
DEPENDS Qt::PrintSupport Qt::Qml Qt::Sql Qt::Gui Qt::GuiPrivate TerminalLib DEPENDS Qt::PrintSupport Qt::Qml Qt::Sql Qt::Gui Qt::GuiPrivate TerminalLib qtkeychain
PUBLIC_DEPENDS Aggregation ExtensionSystem Utils PUBLIC_DEPENDS Aggregation ExtensionSystem Utils
SOURCES SOURCES
actionmanager/actioncontainer.cpp actionmanager/actioncontainer.cpp
@@ -29,6 +29,8 @@ add_qtc_plugin(Core
coreplugin.cpp coreplugin.cpp
coreplugin.h coreplugin.h
coreplugintr.h coreplugintr.h
credentialquery.cpp
credentialquery.h
designmode.cpp designmode.cpp
designmode.h designmode.h
dialogs/addtovcsdialog.cpp dialogs/addtovcsdialog.cpp

View File

@@ -16,6 +16,7 @@ QtcPlugin {
Depends { name: "Utils" } Depends { name: "Utils" }
Depends { name: "Aggregation" } Depends { name: "Aggregation" }
Depends { name: "TerminalLib" } Depends { name: "TerminalLib" }
Depends { name: "qtkeychain" }
cpp.dynamicLibraries: { cpp.dynamicLibraries: {
if (qbs.targetOS.contains("windows")) if (qbs.targetOS.contains("windows"))
@@ -43,6 +44,8 @@ QtcPlugin {
"coreplugin.cpp", "coreplugin.cpp",
"coreplugin.h", "coreplugin.h",
"coreplugintr.h", "coreplugintr.h",
"credentialquery.cpp",
"credentialquery.h",
"designmode.cpp", "designmode.cpp",
"designmode.h", "designmode.h",
"diffservice.cpp", "diffservice.cpp",

View File

@@ -8,7 +8,7 @@
using namespace QKeychain; using namespace QKeychain;
using namespace Tasking; using namespace Tasking;
namespace Axivion::Internal { namespace Core {
CredentialQueryTaskAdapter::~CredentialQueryTaskAdapter() = default; CredentialQueryTaskAdapter::~CredentialQueryTaskAdapter() = default;
@@ -51,4 +51,4 @@ void CredentialQueryTaskAdapter::start()
job->start(); job->start();
} }
} // Axivion::Internal } // Core

View File

@@ -3,13 +3,15 @@
#pragma once #pragma once
#include "core_global.h"
#include <solutions/tasking/tasktree.h> #include <solutions/tasking/tasktree.h>
namespace Axivion::Internal { namespace Core {
enum class CredentialOperation { Get, Set, Delete }; enum class CredentialOperation { Get, Set, Delete };
class CredentialQuery class CORE_EXPORT CredentialQuery
{ {
public: public:
void setOperation(CredentialOperation operation) { m_operation = operation; } void setOperation(CredentialOperation operation) { m_operation = operation; }
@@ -30,7 +32,7 @@ private:
friend class CredentialQueryTaskAdapter; friend class CredentialQueryTaskAdapter;
}; };
class CredentialQueryTaskAdapter final : public Tasking::TaskAdapter<CredentialQuery> class CORE_EXPORT CredentialQueryTaskAdapter final : public Tasking::TaskAdapter<CredentialQuery>
{ {
private: private:
~CredentialQueryTaskAdapter(); ~CredentialQueryTaskAdapter();
@@ -40,4 +42,4 @@ private:
using CredentialQueryTask = Tasking::CustomTask<CredentialQueryTaskAdapter>; using CredentialQueryTask = Tasking::CustomTask<CredentialQueryTaskAdapter>;
} // Axivion::Internal } // Core