source: src/clientcommandline/stationsregister.h@ 93ea008

Last change on this file since 93ea008 was 93ea008, checked in by Joachim Langenbach <joachim.langenbach@…>, 11 years ago

Command line client is now (nearly) able to register a station

  • Property mode set to 100644
File size: 1.5 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 STATIONSREGISTER_H
21#define STATIONSREGISTER_H
22
23class InputOutputHandler;
24
25#include <siwebserviceclient.h>
26
27#include <QPointer>
28
29class StationsRegister : public QObject
30{
31 Q_OBJECT
32 public:
33 StationsRegister(QObject *parent = NULL);
34
35 public slots:
36 void registerStation();
37
38 private slots:
39 void webserviceError(SiWeather::Library::SiWebserviceClient::ReplyType replyType, const QString &message);
40 void webserviceFinished(bool result, const QUuid &stationUuid, const QString &message);
41
42 private:
43 QString getCoordinate(const QString &type);
44
45 QPointer<InputOutputHandler> _ioHandler;
46};
47
48#endif //STATIONSREGISTER_H
Note: See TracBrowser for help on using the repository browser.