1/* 2 * Copyright 2007, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * All rights reserved. Distributed under the terms of the MIT license. 4 */ 5 6#ifndef NODE_LISTENER_H 7#define NODE_LISTENER_H 8 9class Node; 10 11// listening flags 12enum { 13 NODE_LISTEN_ANY_NODE = 0x01, 14 NODE_LISTEN_ADDED = 0x02, 15 NODE_LISTEN_REMOVED = 0x04, 16 NODE_LISTEN_ALL = NODE_LISTEN_ADDED | NODE_LISTEN_REMOVED, 17}; 18 19class NodeListener { 20public: 21 NodeListener(); 22 virtual ~NodeListener(); 23 24 virtual void NodeAdded(Node *node); 25 virtual void NodeRemoved(Node *node); 26}; 27 28#endif // NODE_LISTENER_H 29