source: subversion/applications/editors/osm-editor/qt3/NodeHandler.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: 1.3 KB
Line 
1/*
2Copyright (C) 2006 Nick Whitelegg, Hogweed Software, nick@hogweed.org
3
4This program is free software; you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation; either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
17
18 */
19#ifndef NODEHANDLER_H
20#define NODEHANDLER_H
21
22#include <qcstring.h>
23#include <qobject.h>
24#include "Node.h"
25
26namespace OpenStreetMap
27{
28
29class NodeHandler : public QObject
30{
31Q_OBJECT
32
33private:
34        void *emitdata;
35        Node *finalNode;       
36
37public:
38        NodeHandler();
39        void setEmit(void*,QObject*,const char *);
40        void discnnect() { this->disconnect(SIGNAL(newNodeAddedSig(void*))); }
41        void setFinalNode(Node *n) { finalNode=n; }
42
43public slots:
44        void newNodeAdded(const QByteArray&,void*);
45
46signals:
47        void newNodeAddedSig(void*);
48        void finalNodeAddedSig();
49};
50
51}
52#endif
Note: See TracBrowser for help on using the repository browser.