#include <utilities.h>
Static Public Member Functions | |
static bool | compareVersion (QString oldVersion, QString newVersion) |
Compares the versions. | |
static int | getNbLines (QString path) |
Counts and returns the number of lines in the file path . | |
static void | createBackup (QString path) |
Creates a backup of the file path . | |
static bool | compareVersion (QString oldVersion, QString newVersion) |
Compares the versions. | |
static int | getNbLines (QString path) |
Counts and returns the number of lines in the file path . | |
static void | createBackup (QString path) |
Creates a backup of the file path . |
static bool Utilities::compareVersion | ( | QString | oldVersion, | |
QString | newVersion | |||
) | [inline, static] |
Compares the versions.
oldVersion | the old version | |
newVersion | the new version |
newVersion
is superior to oldVersion
, false otherwise. int Utilities::getNbLines | ( | QString | path | ) | [static] |
Counts and returns the number of lines in the file path
.
path | file path. |
void Utilities::createBackup | ( | QString | path | ) | [static] |
Creates a backup of the file path
.
The backup file name is the original file name with an additional ~.
path | file path. |
static bool Utilities::compareVersion | ( | QString | oldVersion, | |
QString | newVersion | |||
) | [inline, static] |
Compares the versions.
oldVersion | the old version | |
newVersion | the new version |
newVersion
is superior to oldVersion
, false otherwise. static int Utilities::getNbLines | ( | QString | path | ) | [static] |
Counts and returns the number of lines in the file path
.
path | file path. |
static void Utilities::createBackup | ( | QString | path | ) | [static] |
Creates a backup of the file path
.
The backup file name is the original file name with an additional ~.
path | file path. |