00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef BOBLINK_H
00022 #define BOBLINK_H
00023
00024 #define __GEDDEI_BUILD
00025
00026 #include <qcanvas.h>
00027
00028 #include "refresher.h"
00029
00030 class QDomElement;
00031 class QDomDocument;
00032 class BobPort;
00033
00037 class BobLink: public QCanvasLine, public Refresher
00038 {
00039 friend class BobPort;
00040 BobPort *theFrom, *theTo;
00041 bool theConnected;
00042 uint theBufferSize, theProximity;
00043
00044 public:
00045 static int RTTI;
00046 virtual int rtti() const { return 1002; }
00047
00048 void refresh();
00049 bool connected() { return theConnected; }
00050 void setConnected(bool c) { theConnected = c; }
00051 BobPort *destination() { return theTo; }
00052
00053 void saveYourself(QDomElement &element, QDomDocument &doc);
00054 void loadYourself(QDomElement &element);
00055
00056 void setBufferSize(const uint bufferSize) { theBufferSize = bufferSize; }
00057 const uint bufferSize() { return theBufferSize; }
00058 void setProximity(const uint proximity) { theProximity = proximity; }
00059 const uint proximity() { return theProximity; }
00060
00061 BobLink(BobPort *from, BobPort *to);
00062 ~BobLink();
00063 };
00064
00065 #endif