LocationSearchService.hpp   LocationSearchService.hpp 
skipping to change at line 36 skipping to change at line 36
//! @ingroup remoteControl //! @ingroup remoteControl
//! Provides predefined location search functionality, using the StelLocati onMgr. //! Provides predefined location search functionality, using the StelLocati onMgr.
//! //!
//! @see \ref rcLocationSearchService, LocationService //! @see \ref rcLocationSearchService, LocationService
//! @note This service supports threaded operation //! @note This service supports threaded operation
class LocationSearchService : public AbstractAPIService class LocationSearchService : public AbstractAPIService
{ {
Q_OBJECT Q_OBJECT
public: public:
LocationSearchService(const QByteArray& serviceName, QObject* parent LocationSearchService(QObject* parent = Q_NULLPTR);
= 0);
virtual ~LocationSearchService() {}
//! We work on a copy of the StelLocationMgr, to prevent hitches as the web user is typing //! We work on a copy of the StelLocationMgr, to prevent hitches as the web user is typing
//! @returns true //! @returns true
bool supportsThreadedOperation() const Q_DECL_OVERRIDE { return true virtual bool isThreadSafe() const Q_DECL_OVERRIDE { return true; }
; } virtual QLatin1String getPath() const Q_DECL_OVERRIDE { return QLati
protected: n1String("locationsearch"); }
//! @brief Implements the GET method. //! @brief Implements the GET method.
//! @see \ref rcLocationSearchServiceGET //! @see \ref rcLocationSearchServiceGET
virtual void getImpl(const QByteArray& operation,const APIParameters & parameters, APIServiceResponse& response) Q_DECL_OVERRIDE; virtual void get(const QByteArray& operation,const APIParameters& pa rameters, APIServiceResponse& response) Q_DECL_OVERRIDE;
private slots: private slots:
// connected to the main location manager in the main thread // connected to the main location manager in the main thread
void mainLocationManagerUpdated(); void mainLocationManagerUpdated();
private: private:
//the location mgr is actually copied to be used in HTTP threads wit hout blocking the main app //the location mgr is actually copied to be used in HTTP threads wit hout blocking the main app
StelLocationMgr locMgr; StelLocationMgr locMgr;
QMutex locMgrMutex; QMutex locMgrMutex;
}; };
#endif #endif
 End of changes. 3 change blocks. 
8 lines changed or deleted 5 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/