Telescope.hpp   Telescope.hpp 
skipping to change at line 24 skipping to change at line 24
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
#ifndef TELESCOPE_HPP_ #ifndef TELESCOPE_HPP_
#define TELESCOPE_HPP_ #define TELESCOPE_HPP_
#include <QObject> #include <QObject>
#include <QString> #include <QString>
#include <QSqlRecord> #include <QSettings>
class Telescope : public QObject class Telescope : public QObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QString name READ name WRITE setName)
Q_PROPERTY(double diameter READ diameter WRITE setDiameter)
Q_PROPERTY(double focalLength READ focalLength WRITE setFocalLength)
Q_PROPERTY(bool hFlipped READ isHFlipped WRITE setHFlipped)
Q_PROPERTY(bool vFlipped READ isVFlipped WRITE setVFlipped)
public: public:
Telescope(QSqlRecord record); Telescope();
Q_INVOKABLE Telescope(const QObject& other);
virtual ~Telescope(); virtual ~Telescope();
double getDiameter(); static Telescope* telescopeFromSettings(QSettings* theSettings, int
double getFocalLength(); telescopeIndex);
int getTelescopeID(); static Telescope* telescopeModel();
const QString getName();
bool isHFlipped(); double diameter() const;
bool isVFlipped(); void setDiameter(double theValue);
double focalLength() const;
void setFocalLength(double theValue);
const QString name() const;
void setName(QString theValue);
bool isHFlipped() const;
void setHFlipped(bool flipped);
bool isVFlipped() const;
void setVFlipped(bool flipped);
QMap<int, QString> propertyMap();
private: private:
int telescopeID; QString m_name;
QString name; double m_diameter;
double diameter; double m_focalLength;
double focalLength; bool m_hFlipped;
bool hFlipped; bool m_vFlipped;
bool vFlipped;
}; };
#endif /*TELESCOPE_HPP_*/ #endif /*TELESCOPE_HPP_*/
 End of changes. 6 change blocks. 
14 lines changed or deleted 29 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/