Home · All Namespaces · All Classes · Functions · Coding Style · Scripting · Plugins · File Structure

StelLocationMgr Class Reference

Manage the list of available location. More...

#include <StelLocationMgr.hpp>

List of all members.

Public Member Functions

 StelLocationMgr ()
 ~StelLocationMgr ()
QStringListModel * getModelAll ()
const StelLocation locationForSmallString (const QString &s) const
bool canSaveUserLocation (const StelLocation &loc) const
bool saveUserLocation (const StelLocation &loc)
bool canDeleteUserLocation (const QString &id) const
bool deleteUserLocation (const QString &id)


Detailed Description

Manage the list of available location.


Constructor & Destructor Documentation

StelLocationMgr::StelLocationMgr (  ) 

Default constructor.

StelLocationMgr::~StelLocationMgr (  ) 

Destructor.


Member Function Documentation

QStringListModel* StelLocationMgr::getModelAll (  )  [inline]

Return the model containing all the city.

const StelLocation StelLocationMgr::locationForSmallString ( const QString &  s  )  const

Return the StelLocation for the given row (match modelAllLocation index row).

bool StelLocationMgr::canSaveUserLocation ( const StelLocation loc  )  const

Get whether a location can be permanently added to the list of user locations The main constraint is that the small string must be unique.

bool StelLocationMgr::saveUserLocation ( const StelLocation loc  ) 

Add permanently a location to the list of user locations It is later identified by its small string.

bool StelLocationMgr::canDeleteUserLocation ( const QString &  id  )  const

Get whether a location can be deleted from the list of user locations If the location comes from the base read only list, it cannot be deleted.

Parameters:
id the location ID

bool StelLocationMgr::deleteUserLocation ( const QString &  id  ) 

Delete permanently the given location from the list of user locations If the location comes from the base read only list, it cannot be deleted and false is returned.

Parameters:
id the location ID


Generated on Mon Mar 22 09:55:38 2010 for Stellarium by  doxygen 1.5.5