MAP::MapCache Class Reference

#include <MAP/MapCache.h>

Inheritance diagram for MAP::MapCache:

MAP::IMapSourceListener List of all members.

Detailed Description

Manages map caches for clients to access. Implemented as singleton.


Public Member Functions

virtual ~MapCache ()
void requestTiles (IMapCacheListener *listener, MapSourceKind source, const LonLat centerpoint, const int magnification, const int pixelWidth, const int pixelHeight)
void clear ()
void tileReceived (MapSource *sender, MapTile *tile, MapSourceClientData *clientData)
void downloadCancelled (MapSource *sender)
void error (MapSource *source, int code)
int getCapacity () const
void setCapacity (int capacity)

Static Public Member Functions

static MapCacheget ()
static void shutdown ()


Constructor & Destructor Documentation

virtual MAP::MapCache::~MapCache  )  [virtual]
 


Member Function Documentation

static MapCache* MAP::MapCache::get  )  [static]
 

Returns the MapCache singleton.

static void MAP::MapCache::shutdown  )  [static]
 

Shuts down map cache properly. Call at application shutdown to free all resources.

void MAP::MapCache::requestTiles IMapCacheListener listener,
MapSourceKind  source,
const LonLat  centerpoint,
const int  magnification,
const int  pixelWidth,
const int  pixelHeight
 

Requests tiles to cover specified rectangle, in pixels, around a centerpoint.

void MAP::MapCache::clear  ) 
 

Frees all tiles in cache.

void MAP::MapCache::tileReceived MapSource sender,
MapTile tile,
MapSourceClientData clientData
[virtual]
 

Implements MAP::IMapSourceListener.

void MAP::MapCache::downloadCancelled MapSource sender  )  [virtual]
 

Implements MAP::IMapSourceListener.

void MAP::MapCache::error MapSource source,
int  code
[virtual]
 

Implements MAP::IMapSourceListener.

int MAP::MapCache::getCapacity  )  const
 

void MAP::MapCache::setCapacity int  capacity  ) 
 


Generated on Sat Feb 13 00:15:38 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO