Apply clang-format to Lts/Common and DTC/enum headers
- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
848 files changed
+89305
-100020
No files matched your search
Executable → Regular
+85
-72
@@ -1,27 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include <LtsAppDescriptor/lts_app_descriptor.h>
|
||||
#include <Lts/Common/ProjectConfig/project_defines.h>
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <LtsWidgets/lts_base_layout_widget.h>
|
||||
#include <LtsAppDescriptor/lts_app_descriptor.h>
|
||||
#include <LtsSession/lts_session.h>
|
||||
#include <memory>
|
||||
#include <LtsWidgets/lts_base_layout_widget.h>
|
||||
#include <LtsWidgets/lts_dialog.h>
|
||||
#include <QObject>
|
||||
#include <QVector>
|
||||
|
||||
#include <memory>
|
||||
|
||||
#ifndef LTSAPPMANAGER_EXPORT
|
||||
# ifdef BUILD_STATIC_LIBRARIES
|
||||
# define LTSAPPMANAGER_EXPORT
|
||||
# else
|
||||
# if defined(MAKE_LTSAPPMANAGER_LIB)
|
||||
# define LTSAPPMANAGER_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define LTSAPPMANAGER_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
# endif
|
||||
#ifdef BUILD_STATIC_LIBRARIES
|
||||
#define LTSAPPMANAGER_EXPORT
|
||||
#else
|
||||
#if defined(MAKE_LTSAPPMANAGER_LIB)
|
||||
#define LTSAPPMANAGER_EXPORT Q_DECL_EXPORT
|
||||
#else
|
||||
#define LTSAPPMANAGER_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
namespace LtsPluginManager
|
||||
{
|
||||
@@ -37,7 +35,7 @@ namespace LtsSession
|
||||
{
|
||||
class LtsSession;
|
||||
struct DdsConnectionParams;
|
||||
}
|
||||
} // namespace LtsSession
|
||||
|
||||
namespace DeveloperTools
|
||||
{
|
||||
@@ -46,78 +44,93 @@ class DevDialog;
|
||||
|
||||
class QTcpSocket;
|
||||
|
||||
|
||||
namespace LtsAppManager
|
||||
{
|
||||
|
||||
class LTSAPPMANAGER_EXPORT LtsAppManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static LtsAppManager* getInstance();
|
||||
public:
|
||||
static LtsAppManager* getInstance();
|
||||
|
||||
void showLogin();
|
||||
|
||||
void showLogin();
|
||||
|
||||
LtsPluginManager::LtsPluginManager *createApp(LtsAppDescriptor::App appId, const LtsSession::DdsConnectionParams &connParams,
|
||||
const QString &workspaceId = QString(), bool hidden = false, bool force = false);
|
||||
bool startAppOrLetUserChoose(LtsAppDescriptor::App appId, const LtsSession::DdsConnectionParams &connParams, bool force = false);
|
||||
void setLoginPluginIid(const QString &loginPluginIid) { m_loginPluginIid = loginPluginIid; }
|
||||
void setMainApp(LtsAppDescriptor::App appId = LtsAppDescriptor::App::Login);
|
||||
QVector<LtsPluginManager::LtsPluginManager *> getAppList() const { return m_appList ;}
|
||||
LtsAppDescriptor::AppDescriptionVector getAvailableApps() const { return m_availableApps; }
|
||||
void setAvailableApps(const LtsAppDescriptor::AppDescriptionVector &availableApps);
|
||||
bool hasRightForApp(const LtsAppDescriptor::AppDescription &appDescription) const;
|
||||
LtsAppDescriptor::AppDescription getApp(LtsAppDescriptor::App appId) const;
|
||||
bool hasApp(LtsAppDescriptor::App appId) const;
|
||||
int getNumberOfSituationMapInstances() const;
|
||||
void debugSendMessage(const QString &msg);
|
||||
LtsPluginManager::LtsPluginManager* createApp(LtsAppDescriptor::App appId,
|
||||
const LtsSession::DdsConnectionParams& connParams,
|
||||
const QString& workspaceId = QString(), bool hidden = false,
|
||||
bool force = false);
|
||||
bool startAppOrLetUserChoose(LtsAppDescriptor::App appId, const LtsSession::DdsConnectionParams& connParams,
|
||||
bool force = false);
|
||||
|
||||
|
||||
void setLoginPluginIid(const QString& loginPluginIid)
|
||||
{
|
||||
m_loginPluginIid = loginPluginIid;
|
||||
}
|
||||
|
||||
bool otherSessionsResponsibility(LtsSession::LtsSession *thisSession, const QVector<LtsAppDescriptor::App> &requiredAppTypes,
|
||||
const QVector<IDL::PartitionType> &requiredPartitionTypes, const QString &menuGroup,
|
||||
const QString &identifier, LtsWidgets::LayoutArea area);
|
||||
void setMainApp(LtsAppDescriptor::App appId = LtsAppDescriptor::App::Login);
|
||||
|
||||
private:
|
||||
friend struct LtsAppManagerHandler;
|
||||
friend class DeveloperTools::DevDialog;
|
||||
QVector<LtsPluginManager::LtsPluginManager*> getAppList() const
|
||||
{
|
||||
return m_appList;
|
||||
}
|
||||
|
||||
LtsAppManager();
|
||||
~LtsAppManager();
|
||||
LtsAppDescriptor::AppDescriptionVector getAvailableApps() const
|
||||
{
|
||||
return m_availableApps;
|
||||
}
|
||||
|
||||
bool startAppOrLetUserChoose(const LtsAppDescriptor::AppDescription &appDescription, const LtsSession::DdsConnectionParams &connParams, bool force = false);
|
||||
LtsPluginManager::LtsPluginManager *createApp(const LtsAppDescriptor::AppDescription &appDescription,
|
||||
const LtsSession::DdsConnectionParams &connParams,
|
||||
const QString &workspaceId = QString(),
|
||||
bool hidden = false, bool force = false);
|
||||
void saveState();
|
||||
void setAvailableApps(const LtsAppDescriptor::AppDescriptionVector& availableApps);
|
||||
bool hasRightForApp(const LtsAppDescriptor::AppDescription& appDescription) const;
|
||||
LtsAppDescriptor::AppDescription getApp(LtsAppDescriptor::App appId) const;
|
||||
bool hasApp(LtsAppDescriptor::App appId) const;
|
||||
int getNumberOfSituationMapInstances() const;
|
||||
void debugSendMessage(const QString& msg);
|
||||
|
||||
LtsAppDescriptor::AppDescriptionVector m_availableApps;
|
||||
QVector<LtsPluginManager::LtsPluginManager *> m_appList;
|
||||
LtsLogin::LtsLogin *m_login;
|
||||
LtsAppDescriptor::AppDescription m_app;
|
||||
QString m_loginPluginIid;
|
||||
bool otherSessionsResponsibility(LtsSession::LtsSession* thisSession,
|
||||
const QVector<LtsAppDescriptor::App>& requiredAppTypes,
|
||||
const QVector<IDL::PartitionType>& requiredPartitionTypes,
|
||||
const QString& menuGroup, const QString& identifier, LtsWidgets::LayoutArea area);
|
||||
|
||||
public slots:
|
||||
void slotLogout();
|
||||
private:
|
||||
friend struct LtsAppManagerHandler;
|
||||
friend class DeveloperTools::DevDialog;
|
||||
|
||||
private slots:
|
||||
void slotQuit();
|
||||
void slotSoftQuit();
|
||||
void slotShowLogin();
|
||||
void slotAppDestroyed();
|
||||
void slotStartDebugServer();
|
||||
void hideAllOtherBLWs(QObject *_caller);
|
||||
void taskSwitch(QObject *_caller);
|
||||
LtsAppManager();
|
||||
~LtsAppManager();
|
||||
|
||||
signals:
|
||||
void signalLoginDone();
|
||||
void signalLogoffDone();
|
||||
void signalShowLogin();
|
||||
void signalInitializationFinished();
|
||||
void signalCommand(QTcpSocket *client, const QStringList argList);
|
||||
bool startAppOrLetUserChoose(const LtsAppDescriptor::AppDescription& appDescription,
|
||||
const LtsSession::DdsConnectionParams& connParams, bool force = false);
|
||||
LtsPluginManager::LtsPluginManager* createApp(const LtsAppDescriptor::AppDescription& appDescription,
|
||||
const LtsSession::DdsConnectionParams& connParams,
|
||||
const QString& workspaceId = QString(), bool hidden = false,
|
||||
bool force = false);
|
||||
void saveState();
|
||||
|
||||
LtsAppDescriptor::AppDescriptionVector m_availableApps;
|
||||
QVector<LtsPluginManager::LtsPluginManager*> m_appList;
|
||||
LtsLogin::LtsLogin* m_login;
|
||||
LtsAppDescriptor::AppDescription m_app;
|
||||
QString m_loginPluginIid;
|
||||
|
||||
public slots:
|
||||
void slotLogout();
|
||||
|
||||
private slots:
|
||||
void slotQuit();
|
||||
void slotSoftQuit();
|
||||
void slotShowLogin();
|
||||
void slotAppDestroyed();
|
||||
void slotStartDebugServer();
|
||||
void hideAllOtherBLWs(QObject* _caller);
|
||||
void taskSwitch(QObject* _caller);
|
||||
|
||||
signals:
|
||||
void signalLoginDone();
|
||||
void signalLogoffDone();
|
||||
void signalShowLogin();
|
||||
void signalInitializationFinished();
|
||||
void signalCommand(QTcpSocket* client, const QStringList argList);
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace LtsAppManager
|
||||
Reference in new issue
Block a user