Axivion: integrate generated DTOs

We are not yet making use of the integrated DTOs as this will happen
in a future commit along with the network requests to fetch the data.

Change-Id: I72cf9005cae052c41a7e906e0fae5dbe176e0882
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Andreas Loth <andreas.loth@qt.io>
This commit is contained in:
Mehdi Salem
2023-08-09 15:52:36 +02:00
committed by Andreas Loth
parent 5ae116618e
commit 10feedf9de
5 changed files with 7295 additions and 0 deletions

View File

@@ -12,4 +12,6 @@ add_qtc_plugin(Axivion
axivionsettings.cpp axivionsettings.h axivionsettings.cpp axivionsettings.h
axivionsettingspage.cpp axivionsettingspage.h axivionsettingspage.cpp axivionsettingspage.h
axiviontr.h axiviontr.h
dashboard/dto.cpp dashboard/dto.h
dashboard/concat.cpp dashboard/concat.h
) )

View File

@@ -0,0 +1,41 @@
/*
* Copyright (C) 2022-current by Axivion GmbH
* https://www.axivion.com/
*
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*
* Purpose: Helper functions to concatenate strings/bytes
*
* !!!!!! GENERATED, DO NOT EDIT !!!!!!
*
* This file was generated with the script at
* <AxivionSuiteRepo>/projects/libs/dashboard_cpp_api/generator/generate_dashboard_cpp_api.py
*/
#include "dashboard/concat.h"
#include <utility>
template<typename Input, typename Output>
static Output concat(const std::initializer_list<const Input> &args) {
size_t size = 0;
for (const Input &arg : args)
size += arg.size();
Output output;
output.reserve(size);
for (const Input &arg : args)
output += arg;
return output;
}
std::string concat(const std::initializer_list<const std::string_view> &args) {
return concat<std::string_view, std::string>(args);
}
QString concat(const std::initializer_list<const QStringView> &args) {
return concat<QStringView, QString>(args);
}
QByteArray concat_bytes(const std::initializer_list<const QByteArrayView> &args) {
return concat<QByteArrayView, QByteArray>(args);
}

View File

@@ -0,0 +1,30 @@
#pragma once
/*
* Copyright (C) 2022-current by Axivion GmbH
* https://www.axivion.com/
*
* SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
*
* Purpose: Helper functions to concatenate strings/bytes
*
* !!!!!! GENERATED, DO NOT EDIT !!!!!!
*
* This file was generated with the script at
* <AxivionSuiteRepo>/projects/libs/dashboard_cpp_api/generator/generate_dashboard_cpp_api.py
*/
#include <QByteArray>
#include <QByteArrayView>
#include <QString>
#include <QStringView>
#include <string>
#include <string_view>
std::string concat(const std::initializer_list<const std::string_view> &args);
QString concat(const std::initializer_list<const QStringView> &args);
QByteArray concat_bytes(const std::initializer_list<const QByteArrayView> &args);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff