Exoplanets.hpp   Exoplanets.hpp 
skipping to change at line 132 skipping to change at line 132
//! get whether or not the plugin will try to update TLE data from t he internet //! get whether or not the plugin will try to update TLE data from t he internet
//! @return true if updates are set to be done, false otherwise //! @return true if updates are set to be done, false otherwise
bool getUpdatesEnabled(void) {return updatesEnabled;} bool getUpdatesEnabled(void) {return updatesEnabled;}
//! set whether or not the plugin will try to update TLE data from t he internet //! set whether or not the plugin will try to update TLE data from t he internet
//! @param b if true, updates will be enabled, else they will be dis abled //! @param b if true, updates will be enabled, else they will be dis abled
void setUpdatesEnabled(bool b) {updatesEnabled=b;} void setUpdatesEnabled(bool b) {updatesEnabled=b;}
bool getDisplayMode(void) {return distributionEnabled;} bool getDisplayMode(void) {return distributionEnabled;}
void setDisplayMode(bool b) {distributionEnabled=b;} void setDisplayMode(bool b) {distributionEnabled=b;}
bool getTimelineMode(void) {return timelineEnabled;} bool getTimelineMode(void) {return timelineEnabled;}
void setTimelineMode(bool b) {timelineEnabled=b;} void setTimelineMode(bool b) {timelineEnabled=b;}
void setEnableAtStartup(bool b) { enableAtStartup=b; }
bool getEnableAtStartup(void) { return enableAtStartup; }
//! get the date and time the TLE elements were updated //! get the date and time the TLE elements were updated
QDateTime getLastUpdate(void) {return lastUpdate;} QDateTime getLastUpdate(void) {return lastUpdate;}
//! get the update frequency in hours //! get the update frequency in hours
int getUpdateFrequencyHours(void) {return updateFrequencyHours;} int getUpdateFrequencyHours(void) {return updateFrequencyHours;}
void setUpdateFrequencyHours(int hours) {updateFrequencyHours = hour s;} void setUpdateFrequencyHours(int hours) {updateFrequencyHours = hour s;}
//! get the number of seconds till the next update //! get the number of seconds till the next update
int getSecondsToUpdate(void); int getSecondsToUpdate(void);
skipping to change at line 163 skipping to change at line 167
void jsonUpdateComplete(void); void jsonUpdateComplete(void);
public slots: public slots:
//! Download JSON from web recources described in the module section of the //! Download JSON from web recources described in the module section of the
//! module.ini file and update the local JSON file. //! module.ini file and update the local JSON file.
void updateJSON(void); void updateJSON(void);
void setFlagShowExoplanets(bool b) { flagShowExoplanets=b; } void setFlagShowExoplanets(bool b) { flagShowExoplanets=b; }
bool getFlagShowExoplanets(void) { return flagShowExoplanets; } bool getFlagShowExoplanets(void) { return flagShowExoplanets; }
//! Define whether the button toggling exoplanets should be visible
void setFlagShowExoplanetsButton(bool b);
bool getFlagShowExoplanetsButton(void) { return flagShowExoplanetsBu
tton; }
//! Display a message. This is used for plugin-specific warnings and such //! Display a message. This is used for plugin-specific warnings and such
void displayMessage(const QString& message, const QString hexColor=" #999999"); void displayMessage(const QString& message, const QString hexColor=" #999999");
void messageTimeout(void); void messageTimeout(void);
private: private:
// Font used for displaying our text // Font used for displaying our text
QFont font; QFont font;
// if existing, delete Satellites section in main config.ini, then c reate with default values // if existing, delete Satellites section in main config.ini, then c reate with default values
void restoreDefaultConfigIni(void); void restoreDefaultConfigIni(void);
// Upgrade config.ini: rename old key settings to new
void upgradeConfigIni(void);
//! replace the json file with the default from the compiled-in reso urce //! replace the json file with the default from the compiled-in reso urce
void restoreDefaultJsonFile(void); void restoreDefaultJsonFile(void);
//! read the json file and create list of exoplanets. //! read the json file and create list of exoplanets.
void readJsonFile(void); void readJsonFile(void);
//! Creates a backup of the exoplanets.json file called exoplanets.j son.old //! Creates a backup of the exoplanets.json file called exoplanets.j son.old
//! @param deleteOriginal if true, the original file is removed, els e not //! @param deleteOriginal if true, the original file is removed, els e not
//! @return true on OK, false on failure //! @return true on OK, false on failure
bool backupJsonFile(bool deleteOriginal=false); bool backupJsonFile(bool deleteOriginal=false);
//! Get the version of catalog format from the "version" value in th e exoplanets.json file //! Get the version of catalog format from the "version of the forma t" value in the exoplanets.json file
//! @return version string, e.g. "1" //! @return version string, e.g. "1"
int getJsonFileVersion(void); int getJsonFileFormatVersion(void);
//! parse JSON file and load exoplanets to map //! parse JSON file and load exoplanets to map
QVariantMap loadEPMap(QString path=QString()); QVariantMap loadEPMap(QString path=QString());
//! set items for list of struct from data map //! set items for list of struct from data map
void setEPMap(const QVariantMap& map); void setEPMap(const QVariantMap& map);
QString jsonCatalogPath; QString jsonCatalogPath;
StelTextureNew* texPointer; StelTextureNew* texPointer;
StelTextureNew* markerTexture; StelTextureNew* markerTexture;
QList<ExoplanetP> ep; QList<ExoplanetP> ep;
// variables and functions for the updater // variables and functions for the updater
UpdateState updateState; UpdateState updateState;
QNetworkAccessManager* downloadMgr; QNetworkAccessManager* downloadMgr;
QString updateUrl; QString updateUrl;
QString updateFile;
QTimer* updateTimer; QTimer* updateTimer;
QTimer* messageTimer; QTimer* messageTimer;
QList<int> messageIDs; QList<int> messageIDs;
bool updatesEnabled; bool updatesEnabled;
QDateTime lastUpdate; QDateTime lastUpdate;
int updateFrequencyHours; int updateFrequencyHours;
bool distributionEnabled; bool distributionEnabled;
bool timelineEnabled; bool timelineEnabled;
bool enableAtStartup;
QSettings* conf; QSettings* conf;
// GUI // GUI
ExoplanetsDialog* exoplanetsConfigDialog; ExoplanetsDialog* exoplanetsConfigDialog;
bool flagShowExoplanets; bool flagShowExoplanets;
bool flagShowExoplanetsButton;
QPixmap* OnIcon; QPixmap* OnIcon;
QPixmap* OffIcon; QPixmap* OffIcon;
QPixmap* GlowIcon; QPixmap* GlowIcon;
StelButton* toolbarButton; StelButton* toolbarButton;
QProgressBar* progressBar; QProgressBar* progressBar;
private slots: private slots:
//! check to see if an update is required. This is called periodica lly by a timer //! check to see if an update is required. This is called periodica lly by a timer
//! if the last update was longer than updateFrequencyHours ago then the update is //! if the last update was longer than updateFrequencyHours ago then the update is
//! done. //! done.
 End of changes. 9 change blocks. 
3 lines changed or deleted 16 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/