source: src/lib/siweatherstation.h@ 915dc18

Last change on this file since 915dc18 was d83a844, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago
  • Added type and typeUrl to the stations data, to allow the user to get an idea of the used weather station
    • Started to implement c++ client, which runs on the weather station
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*
2 Copyright (C) 2015 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 MA 02110-1301 USA.
18*/
19
20#ifndef SIWEATHERSTATION_H
21#define SIWEATHERSTATION_H
22
23#include <siglobal.h>
24
25#include <QString>
26#include <QUuid>
27#include <QUrl>
28
29namespace SiWeather {
30 namespace Library {
31 class SI_LIB_EXPORT SiWeatherStation
32 {
33 public:
34 SiWeatherStation();
35 SiWeatherStation(const QString &uuid, const QString &name);
36
37 void setUuid(const QString &uuid);
38 QUuid uuid() const;
39 void setName(const QString &name);
40 QString name() const;
41 void setCity(const QString &city);
42 QString city() const;
43 void setLongitude(double longitude);
44 double longitude() const;
45 void setLatitude(double latitude);
46 double latitude() const;
47 void setType(const QString &type);
48 QString type() const;
49 void setTypeUrl(const QString &typeUrl);
50 QUrl typeUrl() const;
51 void setEMail(const QString &address);
52 QString eMail() const;
53
54 private:
55 void init();
56
57 QUuid _uuid;
58 QString _name, _city;
59 QString _type, _eMail;
60 double _longitude, _latitude;
61 QUrl _typeUrl;
62 };
63 };
64};
65
66#endif // SIWEATHERSTATION_H
Note: See TracBrowser for help on using the repository browser.