1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

OP-37 GCS/MapPlugin Added SetCacheLocation to Configuration class.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@807 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
zedamota 2010-06-17 21:48:23 +00:00 committed by zedamota
parent 3b0000a074
commit 0b1e5fc32b

View File

@ -7,6 +7,7 @@
#include <QFont>
#include "../core/opmaps.h"
#include "../core/accessmode.h"
#include "../core/cache.h"
class Configuration
{
public:
@ -26,6 +27,9 @@ public:
void SetUseMemoryCache(bool const& value){core::OPMaps::Instance()->setUseMemoryCache(value);}
bool UseMemoryCache(){return core::OPMaps::Instance()->UseMemoryCache();}
void SetCacheLocation(QString const& dir){core::Cache::Instance()->setCacheLocation(dir);}
QString CacheLocation(){return core::Cache::Instance()->CacheLocation();}
};
#endif // CONFIGURATION_H