2025-02-14 13:20:42 +01:00
|
|
|
#ifndef UTILS_INTERNAL_H_INCLUDED
|
|
|
|
#define UTILS_INTERNAL_H_INCLUDED
|
|
|
|
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace internal {
|
|
|
|
|
|
|
|
static constexpr const char *UPDATE_NOT_NECESSARY{"not necessary"};
|
|
|
|
static constexpr const char *UPDATE_NOT_REQUESTED{"not requested"};
|
|
|
|
static constexpr const char *UPDATE_REQUESTED{"requested"};
|
|
|
|
static constexpr const char *NO_CUSTOMER_REPOSITORY{"no customer repository"};
|
|
|
|
static constexpr const char *ISMAS_CONNECTED{"connected"};
|
|
|
|
static constexpr const char *ISMAS_DISCONNECTED{"disconnected"};
|
|
|
|
static constexpr const char *ISMAS_DISCONNECTING{"disconnecting"};
|
|
|
|
static constexpr const char *ISMAS_NOT_CONNECTED{"not connected"};
|
|
|
|
static constexpr const char *ISMAS_CONNECTION_IN_PROGRESS{"connecting"};
|
|
|
|
static constexpr const char *GIT_CUSTOMER_REPO_CHECKOUT_ERROR{"checkout error"};
|
|
|
|
static constexpr const char *GIT_CUSTOMER_REPO_PULL_ERROR{"pull error"};
|
|
|
|
static constexpr const char *GIT_CUSTOMER_REPO_UP_TO_DATE{"up to date"};
|
|
|
|
static constexpr const char *EXEC_OPKG_COMMANDS_SUCCESS{"success"};
|
2025-02-18 14:53:07 +01:00
|
|
|
static constexpr const char *EXEC_OPKG_COMMANDS_FAIL{"FAIL"};
|
|
|
|
static constexpr const char *EXEC_OPKG_COMMANDS_NOACTION_SUCCESS{"success"};
|
|
|
|
static constexpr const char *EXEC_OPKG_COMMANDS_NOACTION_FAIL{"FAIL"};
|
2025-02-14 13:20:42 +01:00
|
|
|
static constexpr const char *UPDATE_DC_JSON_FILES_SUCCESS{"success"};
|
|
|
|
static constexpr const char *SYNC_CUSTOMER_REPO_FILES_SUCCESS{"success"};
|
|
|
|
static constexpr const char *UPDATE_DC_FIRMARE_SUCCESS{"success"};
|
|
|
|
|
2025-02-18 14:53:07 +01:00
|
|
|
static constexpr const char *OPKG_MARKER{"<OPKG>"};
|
2025-02-18 15:25:03 +01:00
|
|
|
static constexpr const char *SYNC_MARKER{"<SYNC>"};
|
|
|
|
static constexpr const char *DC_MARKER{"<DC>"};
|
|
|
|
static constexpr const char *GIT_MARKER{"<GIT>"};
|
|
|
|
static constexpr const char *ISMAS_MARKER{"<ISMAS>"};
|
2025-02-18 14:53:07 +01:00
|
|
|
|
2025-02-14 13:20:42 +01:00
|
|
|
int read1stLineOfFile(QString fileName);
|
|
|
|
QString customerRepoRoot();
|
|
|
|
QString customerRepoDir();
|
|
|
|
QString customerRepoDirName();
|
|
|
|
QString repositoryUrl();
|
|
|
|
QString branchName();
|
|
|
|
bool customerRepoExists();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // UTILS_INTERNAL_H_INCLUDED
|