MultiLevelJsonBase.hpp   MultiLevelJsonBase.hpp 
skipping to change at line 42 skipping to change at line 42
//! Abstract base class for managing multi-level tree objects stored in JSO N format. //! Abstract base class for managing multi-level tree objects stored in JSO N format.
//! The JSON files can be stored on disk or remotely and are loaded into th reads. //! The JSON files can be stored on disk or remotely and are loaded into th reads.
class MultiLevelJsonBase : public StelSkyLayer class MultiLevelJsonBase : public StelSkyLayer
{ {
Q_OBJECT Q_OBJECT
friend class JsonLoadThread; friend class JsonLoadThread;
public: public:
//! Default constructor. //! Default constructor.
MultiLevelJsonBase(MultiLevelJsonBase* parent=NULL); MultiLevelJsonBase(MultiLevelJsonBase* parent=Q_NULLPTR);
//! Init the element from a URL. //! Init the element from a URL.
//! This method should be called by the constructors of the subclass . //! This method should be called by the constructors of the subclass .
void initFromUrl(const QString& url); void initFromUrl(const QString& url);
//! Init the element from a QVariantMap. //! Init the element from a QVariantMap.
//! This method should be called by the constructors of the subclass . //! This method should be called by the constructors of the subclass .
void initFromQVariantMap(const QVariantMap& map); void initFromQVariantMap(const QVariantMap& map);
//! Destructor. //! Destructor.
~MultiLevelJsonBase(); ~MultiLevelJsonBase();
//! Return the short name for this image to be used in the loading b ar. //! Return the short name for this image to be used in the loading b ar.
QString getShortName() const {return shortName;} QString getShortName() const {return shortName;}
//! Return true if an error occured while loading the data. //! Return true if an error occured while loading the data.
bool hasErrorOccured() const {return errorOccured;} bool hasErrorOccured() const {return errorOccured;}
//! Get the depth level in the tree. //! Get the depth level in the tree.
int getLevel() const {return parent()==NULL ? 0 : (qobject_cast<Mult iLevelJsonBase*>(parent()))->getLevel()+1;} int getLevel() const {return parent()==Q_NULLPTR ? 0 : (qobject_cast <MultiLevelJsonBase*>(parent()))->getLevel()+1;}
//! Convert the image informations to a map following the JSON struc ture. //! Convert the image informations to a map following the JSON struc ture.
//! It can be saved as JSON using the StelJsonParser methods. //! It can be saved as JSON using the StelJsonParser methods.
QVariantMap toQVariantMap() const; QVariantMap toQVariantMap() const;
//! Schedule a deletion for all the childs. //! Schedule a deletion for all the childs.
//! It will practically occur after the delay passed as argument to deleteUnusedTiles() has expired. //! It will practically occur after the delay passed as argument to deleteUnusedTiles() has expired.
void scheduleChildsDeletion(); void scheduleChildsDeletion();
private slots: private slots:
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/