Loading...
Searching...
No Matches
GeopackagePublisher.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2012 National Institute For Space Research (INPE) - Brazil.
2
3This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5TerraLib is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 3 of the License,
8or (at your option) any later version.
9
10TerraLib is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU Lesser General Public License for more details.
14
15You should have received a copy of the GNU Lesser General Public License
16along with TerraLib. See COPYING. If not, write to
17TerraLib Team at <terralib-team@terralib.org>.
18*/
19
20/*!
21\file src/terraMobilePlugin/core/GeopackagePublisher.h
22
23\brief This file is used to Publisher operation.
24*/
25
26#ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEPUBLISHER_H
27#define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEPUBLISHER_H
28
29#include "../Config.h"
30
31//Qt
32#include <QObject>
33
34// STL
35#include <string>
36#include <vector>
37
38namespace te
39{
40 namespace qt
41 {
42 namespace plugins
43 {
44 namespace terramobile
45 {
46
48 {
49 std::string m_name;
50 std::string m_status;
51 std::string m_objId;
52 std::string m_desc;
53 };
54
55 typedef std::vector<GeopackageFile> GeopackageFiles;
56
58 {
62 };
63
64 /*!
65 \class GeoPackagePublisher
66
67 \brief This file is used to Publisher operation.
68 */
69 class GeopackagePublisher : public QObject
70 {
71 Q_OBJECT
72
73 public:
74
76
78
79
80 public:
81
82 std::string getErrorMessage();
83
85
86 void downloadGeopackageFile(std::string url, GeopackageFile gpkgFile, std::string pathDir);
87
88 void uploadGeopackageFile(std::string url, std::string filePath, std::string fileName);
89
90 protected:
91
92 GeopackageFiles readJSONInfo(std::string stream);
93
94 public:
95
96 void emitSignal(double curStep, double totalStep);
97
98 signals:
99
100 void setCurrentStep(double curStep, double totalStep, std::string msg);
101
102 protected:
103
104 std::string m_errorMessage;
105
106 public:
107
109
111 };
112 } // end namespace thirdParty
113 } // end namespace plugins
114 } // end namespace qt
115} // end namespace te
116
117#endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_GEOPACKAGEPUBLISHER_H
118
void emitSignal(double curStep, double totalStep)
GeopackageFiles readJSONInfo(std::string stream)
void uploadGeopackageFile(std::string url, std::string filePath, std::string fileName)
void setCurrentStep(double curStep, double totalStep, std::string msg)
GeopackageFiles getGeopackageFiles(std::string url)
static GeopackagePublisherOperation m_gpkgOpType
void downloadGeopackageFile(std::string url, GeopackageFile gpkgFile, std::string pathDir)
std::vector< GeopackageFile > GeopackageFiles
TerraLib.