MoSync 3.3
MAP::MapCache Class Reference

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

#include <MAP/MapCache.h>

Inheritance diagram for MAP::MapCache:
MAP::IMapSourceListener MAPUtil::Broadcaster< IMapCacheListener >

List of all members.

Public Member Functions

virtual ~MapCache ()
void requestTiles (MapSource *source, const LonLat centerpoint, const MagnificationType magnification, const int pixelWidth, const int pixelHeight, const double directionX, const double directionY)
void clear ()
void tileReceived (MapSource *sender, MapTile *tile)
void downloadCancelled (MapSource *sender)
void error (MapSource *source, int code)
void jobComplete (MapSource *source)
int getCapacity () const
void setCapacity (int capacity)
int size ()
void addListener (IMapCacheListener *listener)
void removeListener (IMapCacheListener *listener)
Vector< IMapCacheListener * > * getListeners ()

Static Public Member Functions

static MapCacheget ()
static void shutdown ()

Detailed Description

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


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 ( MapSource source,
const LonLat  centerpoint,
const MagnificationType  magnification,
const int  pixelWidth,
const int  pixelHeight,
const double  directionX,
const double  directionY 
)

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

Frees all tiles in cache.

void MAP::MapCache::tileReceived ( MapSource sender,
MapTile tile 
) [virtual]
void MAP::MapCache::downloadCancelled ( MapSource sender) [virtual]
void MAP::MapCache::error ( MapSource source,
int  code 
) [virtual]
void MAP::MapCache::jobComplete ( MapSource source) [virtual]
void MAP::MapCache::setCapacity ( int  capacity)
void MAPUtil::Broadcaster< IMapCacheListener >::addListener ( IMapCacheListener *  listener) [inline, inherited]

Add a listener. Clients should call this to register for notification.

void MAPUtil::Broadcaster< IMapCacheListener >::removeListener ( IMapCacheListener *  listener) [inline, inherited]

Remove a listener. Clients should call this to unregister for notification.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines