mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08: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:
parent
3b0000a074
commit
0b1e5fc32b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user