readSettings()
read ini-file for binary (e.g. ATBUpdateTool, ATBUpdateDC etc). 1: using optional path 2: under /etc... 3: under /opt...
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#define UTILS_INTERNAL_H_INCLUDED
|
||||
|
||||
#include <QString>
|
||||
#include <QSettings>
|
||||
#include <memory>
|
||||
|
||||
namespace internal {
|
||||
|
||||
@@ -62,13 +64,19 @@ namespace internal {
|
||||
static constexpr const int PERCENT_UPDATE_DC{80};
|
||||
static constexpr const int PERCENT_SHOW_FINAL_STATUS{90};
|
||||
|
||||
static constexpr const char *DEFAULT_INI_DIR{"/etc/tools/atbupdate/"};
|
||||
static constexpr const char *DEFAULT_INSTALL_DIR{"/opt/app/tools/atbupdate/"};
|
||||
|
||||
int read1stLineOfFile(QString fileName);
|
||||
QString customerRepoRoot();
|
||||
QString customerRepoDir();
|
||||
QString customerRepoDcDir();
|
||||
QString customerRepoDirName();
|
||||
QString repositoryUrl();
|
||||
QString branchName();
|
||||
bool customerRepoExists();
|
||||
std::unique_ptr<QSettings> readSettings(QString const &optionalDirName = "");
|
||||
std::unique_ptr<QString> dcCandidateToInstall(QString const &dcDirectory = "");
|
||||
}
|
||||
|
||||
#endif // UTILS_INTERNAL_H_INCLUDED
|
||||
|
Reference in New Issue
Block a user