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

StelLocationMgr Class Reference

Manage the list of available location. More...

#include <StelLocationMgr.hpp>

List of all members.

Public Member Functions

 StelLocationMgr ()
 ~StelLocationMgr ()
QStringListModel * getModelAll ()
QList< StelLocationgetAll () const
const StelLocation locationForString (const QString &s, bool *ok=NULL) const
const StelLocation locationForSmallString (const QString &s, bool *ok=NULL) const
const StelLocationgetLastResortLocation () 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.


Member Function Documentation

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