Skip to content

Commit 86b85d5

Browse files
committed
Remove comments and add Doxygen-Style Comments
1 parent 868b97e commit 86b85d5

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

mainwindow.cpp

+3-19
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ MainWindow::~MainWindow()
2525
delete ui;
2626
}
2727

28-
//Make sure version file and client exists.
28+
2929
void MainWindow::checkFiles()
3030
{
3131
//Client exists & Version missing
@@ -47,7 +47,7 @@ void MainWindow::checkFiles()
4747
}
4848
}
4949

50-
//Downloads client.
50+
5151
void MainWindow::downloadClient()
5252
{
5353

@@ -125,7 +125,7 @@ void MainWindow::replyFinished(QNetworkReply *reply)
125125
}
126126
}
127127

128-
//Updates progress bar.
128+
129129
void MainWindow::updateProgressBar(qint64 current, qint64 total)
130130
{
131131
ui->updateButton->setEnabled(false);
@@ -136,23 +136,7 @@ void MainWindow::updateProgressBar(qint64 current, qint64 total)
136136
ui->progressBar->setValue(current);
137137
}
138138

139-
//Replaces downloaded client with current client.
140-
void MainWindow::updateClient()
141-
{
142-
143-
MainWindow::consoleOut("Attempting to update client.");
144-
ui->pathText->setEnabled(false);
145-
146-
//Rename downloaded client.
147-
qd->rename(chosenPath + clientExe, chosenPath + clientExeOld);
148-
qd->rename(chosenPath + VersionFile, chosenPath + VersionOldFile);
149-
MainWindow::consoleOut("Updated client.");
150-
151-
152-
MainWindow::refreshValues();
153-
}
154139

155-
//Restores previous client.
156140
void MainWindow::restoreClient()
157141
{
158142

mainwindow.h

+31-1
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,41 @@ class MainWindow : public QMainWindow
2828
public:
2929
explicit MainWindow(QWidget *parent = 0);
3030
~MainWindow();
31+
32+
/**
33+
* @brief refreshValues Will read the Version from both the Local Client and the Web-Api
34+
*
35+
*/
3136
void refreshValues();
37+
38+
/**
39+
* @brief consoleOut Append a String to the Console in the MainWindow
40+
*
41+
* @param s This String will be appended to the Console
42+
*/
3243
void consoleOut(QString s);
44+
45+
/**
46+
* @brief restoreClient Restore the previous version of FusionLauncher.exe
47+
*
48+
* @todo This needs to replace all Files, like the lib, CLI and Updater too.
49+
*/
3350
void downloadClient();
34-
void updateClient();
51+
52+
53+
/**
54+
* @brief restoreClient Restore the previous version of FusionLauncher.exe
55+
*
56+
* @todo This needs to replace all Files, like the lib, CLI and Updater too.
57+
*/
3558
void restoreClient();
59+
60+
/**
61+
* @brief checkFiles Will check if neccessary files for Update exists
62+
* - Version File local
63+
* - Client File local
64+
* Will Show a Message-Dialog if a file does not exists.
65+
*/
3666
void checkFiles();
3767

3868
private slots:

0 commit comments

Comments
 (0)