MeteorShowers.hpp   MeteorShowers.hpp 
skipping to change at line 34 skipping to change at line 34
#include "MeteorShowersMgr.hpp" #include "MeteorShowersMgr.hpp"
typedef QSharedPointer<MeteorShower> MeteorShowerP; typedef QSharedPointer<MeteorShower> MeteorShowerP;
//! @class MeteorShowers //! @class MeteorShowers
//! This class manages a collection of MeteorShower objects. //! This class manages a collection of MeteorShower objects.
//! It inherits from MeteorShowersMgr and is basically used to //! It inherits from MeteorShowersMgr and is basically used to
//! reimplement the methods defined in the StelObjectModule class. //! reimplement the methods defined in the StelObjectModule class.
//! @author Marcos Cardinot <mcardinot@gmail.com> //! @author Marcos Cardinot <mcardinot@gmail.com>
//! @ingroup meteorShowers //! @ingroup meteorShowers
class MeteorShowers : public MeteorShowersMgr class MeteorShowers : public StelObjectModule
{ {
Q_OBJECT Q_OBJECT
public: public:
//! @struct SearchResult //! @struct SearchResult
typedef struct typedef struct
{ {
QString name; QString name;
QString zhr; QString zhr;
QString type; QString type;
QDate peak; QDate peak;
} SearchResult; } SearchResult;
//! Constructor //! Constructor
MeteorShowers(MeteorShowersMgr *mgr); MeteorShowers(MeteorShowersMgr *mgr);
virtual void init(void) {}
//! Destructor //! Destructor
virtual ~MeteorShowers(); virtual ~MeteorShowers();
//! Update //! Update
//! @param deltaTime the time increment in seconds since the last ca ll. //! @param deltaTime the time increment in seconds since the last ca ll.
virtual void update(double deltaTime); virtual void update(double deltaTime);
//! Draw //! Draw
virtual void draw(StelCore* core); virtual void draw(StelCore* core);
skipping to change at line 76 skipping to change at line 78
//! @param dateTo //! @param dateTo
//! @return list //! @return list
QList<SearchResult> searchEvents(QDate dateFrom, QDate dateTo) const ; QList<SearchResult> searchEvents(QDate dateFrom, QDate dateTo) const ;
// //
// Methods defined in StelObjectModule class // Methods defined in StelObjectModule class
// //
virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const; virtual QList<StelObjectP> searchAround(const Vec3d& v, double limit Fov, const StelCore* core) const;
virtual StelObjectP searchByNameI18n(const QString& nameI18n) const; virtual StelObjectP searchByNameI18n(const QString& nameI18n) const;
virtual StelObjectP searchByName(const QString& name) const; virtual StelObjectP searchByName(const QString& name) const;
virtual StelObjectP searchByID(const QString &id) const;
virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=true) const; virtual QStringList listMatchingObjects(const QString& objPrefix, in t maxNbItem=5, bool useStartOfWords=false, bool inEnglish=true) const;
virtual QStringList listAllObjects(bool inEnglish) const; virtual QStringList listAllObjects(bool inEnglish) const;
virtual QString getName() const { return "Meteor Showers"; } virtual QString getName() const { return "Meteor Showers"; }
virtual QString getStelObjectType() const { return MeteorShower::MET EORSHOWER_TYPE; }
private: private:
MeteorShowersMgr* m_mgr; MeteorShowersMgr* m_mgr;
QList<MeteorShowerP> m_meteorShowers; QList<MeteorShowerP> m_meteorShowers;
//! Draw pointer //! Draw pointer
void drawPointer(StelCore* core); void drawPointer(StelCore* core);
}; };
#endif /*METEORSHOWERS_HPP_*/ #endif /*METEORSHOWERS_HPP_*/
 End of changes. 4 change blocks. 
1 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/