SimbadSearcher.hpp   SimbadSearcher.hpp 
skipping to change at line 37 skipping to change at line 37
class QNetworkAccessManager; class QNetworkAccessManager;
//! @class SimbadLookupReply //! @class SimbadLookupReply
//! Contains all the information about a current simbad lookup query. //! Contains all the information about a current simbad lookup query.
//! Instances of this class are generated by the SimbadSearcher class. //! Instances of this class are generated by the SimbadSearcher class.
class SimbadLookupReply : public QObject class SimbadLookupReply : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_ENUMS(SimbadLookupStatus) Q_ENUMS(SimbadLookupStatus)
public:
friend class SimbadSearcher; friend class SimbadSearcher;
public:
//! Possible status for a simbad query. //! Possible status for a simbad query.
enum SimbadLookupStatus enum SimbadLookupStatus
{ {
SimbadLookupQuerying, //!< Simbad is still being q ueried. SimbadLookupQuerying, //!< Simbad is still being q ueried.
SimbadLookupErrorOccured, //!< An error occured while looking up Simbad. Call getErrorString() for a description of the error. SimbadLookupErrorOccured, //!< An error occured while looking up Simbad. Call getErrorString() for a description of the error.
SimbadLookupFinished //!< The query is over. The reply can be deleted. SimbadLookupFinished //!< The query is over. The reply can be deleted.
}; };
~SimbadLookupReply(); ~SimbadLookupReply();
skipping to change at line 62 skipping to change at line 62
//! Get the current status. //! Get the current status.
SimbadLookupStatus getCurrentStatus() const {return currentStatus;} SimbadLookupStatus getCurrentStatus() const {return currentStatus;}
//! Get a I18n string describing the current status. It can be used e.g for reporting in widgets. //! Get a I18n string describing the current status. It can be used e.g for reporting in widgets.
QString getCurrentStatusString() const; QString getCurrentStatusString() const;
//! Get the error descrition string. Return empty string if no error occured. //! Get the error descrition string. Return empty string if no error occured.
QString getErrorString() const {return errorString;} QString getErrorString() const {return errorString;}
//! Explicitly delete the internal QNetworkReply. Must not be called
from a QNetworkReply signal.
void deleteNetworkReply();
signals: signals:
//! Triggered when the lookup status change. //! Triggered when the lookup status change.
void statusChanged(); void statusChanged();
private slots: private slots:
void httpQueryFinished(); void httpQueryFinished();
void delayTimerCompleted(); void delayTimerCompleted();
private: private:
//! Private constructor can be called by SimbadSearcher only. //! Private constructor can be called by SimbadSearcher only.
skipping to change at line 98 skipping to change at line 101
}; };
//! @class SimbadSearcher //! @class SimbadSearcher
//! Provides lookup features into the online Simbad service from CDS. //! Provides lookup features into the online Simbad service from CDS.
//! See http://simbad.u-strasbg.fr for more info. //! See http://simbad.u-strasbg.fr for more info.
class SimbadSearcher : public QObject class SimbadSearcher : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
SimbadSearcher(QObject* parent); SimbadSearcher(QObject* parent = NULL);
//! Lookup in Simbad for object which have a name starting with @em objectName. //! Lookup in Simbad for object which have a name starting with @em objectName.
//! @param serverUrl URL of the SIMBAD mirror server. //! @param serverUrl URL of the SIMBAD mirror server.
//! @param objectName the possibly truncated object name. //! @param objectName the possibly truncated object name.
//! @param maxNbResult the maximum number of returned result. //! @param maxNbResult the maximum number of returned result.
//! @param delayMs a delay in ms to wait for before actually trigger ing the lookup. //! @param delayMs a delay in ms to wait for before actually trigger ing the lookup.
//! This used to group requests, e.g. send only one request when a u sed types a word insead of one per letter. //! This used to group requests, e.g. send only one request when a u sed types a word insead of one per letter.
//! @return a new SimbadLookupReply which is owned by the caller. //! @return a new SimbadLookupReply which is owned by the caller.
SimbadLookupReply* lookup(const QString& serverUrl, const QString& o bjectName, int maxNbResult=1, int delayMs=500); SimbadLookupReply* lookup(const QString& serverUrl, const QString& o bjectName, int maxNbResult=1, int delayMs=500);
 End of changes. 4 change blocks. 
2 lines changed or deleted 6 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/