source: subversion/applications/editors/osm-editor/qt3/BatchUploader.h @ 32040

Last change on this file since 32040 was 1158, checked in by nick, 14 years ago

moved current version to qt3 directory in preparation for qt4

File size: 800 bytes
Line 
1#ifndef BATCHUPLOADER_H
2#define BATCHUPLOADER_H
3
4#include "Components2.h"
5#include "HTTPHandler.h"
6#include <qcstring.h>
7
8#include <map>
9
10namespace OpenStreetMap
11{
12
13class BatchUploader : public QObject
14{
15Q_OBJECT
16
17private:
18        Components2 *components;
19        HTTPHandler *osmhttp;
20        std::map<int,Node*> nodes;
21        int tp1, tp2, count;
22
23public:
24        BatchUploader() {  }
25        ~BatchUploader() { }
26        void setComponents(Components2 *comp) { components=comp; }
27        void setHTTPHandler(HTTPHandler *handler) { osmhttp=handler; }
28
29        void batchUpload(int,int);
30
31public slots:
32        void nodeAdded(const QByteArray&,void*);
33        void segmentAdded(const QByteArray&,void*);
34        void handleHttpError(int i,const QString& e);
35        void handleError(const QString& e);
36
37signals:
38        void done();
39        void error(const QString&);
40};
41
42}
43
44#endif // BATCHUPLOADER_H
Note: See TracBrowser for help on using the repository browser.