map2d_widget
mapripper.h
Go to the documentation of this file.
1 
12 /*
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 */
27 #ifndef MAPRIPPER_H
28 #define MAPRIPPER_H
29 
30 #include <QThread>
31 #include "../internals/core.h"
32 #include "mapripform.h"
33 #include <QObject>
34 #include <QMessageBox>
35 namespace mapcontrol
36 {
37  class MapRipper:public QThread
38  {
39  Q_OBJECT
40  public:
42  void run();
43  private:
44  QList<core::Point> points;
45  int zoom;
47  int sleep;
49  bool cancel;
50  MapRipForm * progressForm;
51  int maxzoom;
52  internals::Core * core;
53 
54  signals:
55  void percentageChanged(int const& perc);
56  void numberOfTilesChanged(int const& total,int const& actual);
57  void providerChanged(QString const& prov,int const& zoom);
58 
59 
60  public slots:
61  void finish();
62  };
63 }
64 #endif // MAPRIPPER_H
void percentageChanged(int const &perc)
Definition: rectlatlng.h:37
Types
Definition: maptype.h:39
Definition: mapripper.h:37
void providerChanged(QString const &prov, int const &zoom)
Definition: core.h:68
Form to be used with the MapRipper class.
void numberOfTilesChanged(int const &total, int const &actual)
void run()
Definition: mapripper.cpp:77
void finish()
Definition: mapripper.cpp:50
Definition: mapripform.h:36
MapRipper(internals::Core *, internals::RectLatLng const &)
Definition: mapripper.cpp:31