OpenCPN Partial API docs
Loading...
Searching...
No Matches
plugin_cache.cpp File Reference

Implement plugin_cache.h – downloaded plugins cache. More...

#include <fstream>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/filefn.h>
#include "model/base_platform.h"
#include "model/ocpn_utils.h"
#include "model/plugin_cache.h"

Go to the source code of this file.

Namespaces

namespace  ocpn
 Standard, mostly strings utilities.
 

Functions

bool ocpn::store_metadata (const char *path)
 Store metadata in metadata cache, return success/fail.
 
std::string ocpn::lookup_metadata (const char *name=0)
 Get metadata path for a given name defaulting to ocpn-plugins.xml)
 
bool ocpn::store_tarball (const char *path, const char *basename)
 Store a tarball in tarball cache, return success/fail.
 
std::string ocpn::lookup_tarball (const char *basename)
 Get path to tarball in cache for given filename.
 
unsigned ocpn::cache_file_count ()
 Return number of files in cache.
 
unsigned long ocpn::cache_size ()
 Return total size of files in cache in kbytes.
 
void ocpn::cache_clear ()
 Remove all files in cache:
 

Detailed Description

Implement plugin_cache.h – downloaded plugins cache.

Definition in file plugin_cache.cpp.