source: subversion/applications/editors/osm-editor/qt3/SegSplitter.h @ 16590

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

moved current version to qt3 directory in preparation for qt4

File size: 901 bytes
Line 
1#ifndef SEGSPLITTER_H
2#define SEGSPLITTER_H
3
4#include "Components2.h"
5#include "HTTPHandler.h"
6#include <qcstring.h>
7
8#include <utility>
9
10namespace OpenStreetMap
11{
12
13class SegSplitter : public QObject
14{
15Q_OBJECT
16
17private:
18        Components2 *components;
19        HTTPHandler *osmhttp;
20        std::pair<Segment*,Segment*> * segments;
21        int wayID, wayIndex;
22
23public:
24        SegSplitter() { segments=NULL; }
25        ~SegSplitter();
26        void setComponents(Components2 *comp) { components=comp; }
27        void setHTTPHandler(HTTPHandler *handler) { osmhttp=handler; }
28
29        void splitSeg(Segment*,const EarthPoint&,int);
30        void addSplitSegs();
31
32public slots:
33        void nodeAdded(const QByteArray&,void*);
34        void splitSegAdded(const QByteArray&,void*);
35        void finished(const QByteArray&,void*);
36        void handleHttpError(int i,const QString& e);
37        void handleError(const QString& e);
38
39signals:
40        void done();
41        void error(const QString&);
42};
43
44}
45
46#endif // SEGSPLITTER_H
Note: See TracBrowser for help on using the repository browser.