data: Saving application version to storage and refresh when version changes

The version string of the application is stored on every parse. The utility class Version is used to parse the version
string and compare application and stored string. The third number in the version string is now the storage refresh
number, the project will be refreshed when it changes. (0.2.1 -> 0.2.2)
This commit is contained in:
Eberhard Graether
2015-11-02 10:14:03 +01:00
parent 1ad2dbe86e
commit 42ab36fbad
12 changed files with 256 additions and 12 deletions
+6 -2
View File
@@ -5,6 +5,7 @@
#include "utility/messaging/type/MessageActivateNodes.h"
#include "utility/messaging/type/MessageStatus.h"
#include "utility/scheduling/TaskScheduler.h"
#include "utility/Version.h"
#include "component/view/GraphViewStyle.h"
#include "component/controller/NetworkFactory.h"
@@ -14,8 +15,11 @@
#include "settings/ApplicationSettings.h"
#include "settings/ColorScheme.h"
std::shared_ptr<Application> Application::create(ViewFactory* viewFactory, NetworkFactory* networkFactory)
{
std::shared_ptr<Application> Application::create(
const Version& version, ViewFactory* viewFactory, NetworkFactory* networkFactory
){
Version::setApplicationVersion(version);
loadSettings();
std::shared_ptr<Application> ptr(new Application());