Skip to content

Commit 51a3f17

Browse files
author
Christian Löpke
committed
Checkin. First release for development of client distribution system.
1 parent 3776255 commit 51a3f17

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

src/Launcher/OpenGMPLauncher.pro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ SOURCES += main.cpp \
3535
../../lib/ZenLib/utils/logger.cpp \
3636
Systems/jsonFile.cpp \
3737
Systems/serverCommunicator.cpp \
38+
Systems/clientInstallation.cpp \
3839
Objects/lserver.cpp \
3940
frmMainSettings.cpp \
4041
frmMain.cpp
@@ -49,6 +50,7 @@ HEADERS += \
4950
../Shared/Objects/server.hpp \
5051
Systems/jsonFile.hpp \
5152
Systems/serverCommunicator.hpp \
53+
Systems/clientInstallation.hpp \
5254
Objects/lserver.hpp \
5355
frmMainSettings.h \
5456
frmMain.h
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "clientInstallation.hpp"
2+
#include <ZenLib/utils/logger.h>
3+
#include <QStandardPaths>
4+
5+
using namespace OpenGMP;
6+
7+
ClientInstallation::ClientInstallation(Version &version)
8+
: version(version)
9+
{
10+
//LogInfo() << "Will install clients here: " << QStandardPaths::writableLocation(QStandardPaths::AppDataLocation).toStdString();
11+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#pragma once
2+
3+
#include <Shared/Components/version.hpp>
4+
#include <string>
5+
6+
namespace OpenGMP
7+
{
8+
/**
9+
* @brief The ClientInstallation class manages installations.
10+
* Intended to check installations, get new versions, etc.
11+
*/
12+
class ClientInstallation
13+
{
14+
public:
15+
ClientInstallation(Version &version);
16+
17+
std::string installationDirectory;
18+
Version version;
19+
};
20+
}

src/Launcher/frmMain.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ FrmMain::FrmMain(QWidget *parent)
3030
if(ServerStorage::LoadWebServerlist("raw.githubusercontent.com", "/ErrorFlexXx/OpenGMP/master/ServerList/serverList.json", serverList))
3131
ServerStorage::StoreCachedServerList("Serverlist.json", serverList); //Save to local cache.
3232
UpdateFrmServerList(); //Insert treeView items to form.
33+
//Create Updater Thread:
3334
serverCommunicator = new QThread();
3435
serverCommunicatorTask = new ServerCommunicator(parent);
3536
serverCommunicatorTask->SetServerList(serverList);

0 commit comments

Comments
 (0)