refs #690, remember last login data

* cache/setting for last values
* integrated in login component
* allow to set default value for server selection
This commit is contained in:
Klaus Basan
2016-06-27 20:59:09 +02:00
parent 42fdcea72c
commit b4a9531357
7 changed files with 140 additions and 58 deletions

View File

@@ -0,0 +1,32 @@
/* Copyright (C) 2016
* swift project community / contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \file
#ifndef BLACKGUI_SETTINGS_GUI_H
#define BLACKGUI_SETTINGS_GUI_H
#include "blackgui/blackguiexport.h"
#include "blackmisc/settingscache.h"
#include "blackmisc/simulation/aircraftmodel.h"
namespace BlackGui
{
namespace Settings
{
//! Settings for last manual entries of own aircraft mode
struct OwnAircraftModel : public BlackMisc::CSettingTrait<BlackMisc::Simulation::CAircraftModel>
{
//! Key in data cache
static const char *key() { return "guinownaircraftmodel"; }
};
} // ns
} // ns
#endif // guard