diff options
Diffstat (limited to 'src/programlink.cpp')
-rw-r--r-- | src/programlink.cpp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/src/programlink.cpp b/src/programlink.cpp deleted file mode 100644 index f9453c2..0000000 --- a/src/programlink.cpp +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | ||
3 | * | ||
4 | * This file is part of the libbu++ library and is released under the | ||
5 | * terms of the license contained in the file LICENSE. | ||
6 | */ | ||
7 | |||
8 | #include "bu/programlink.h" | ||
9 | #include "bu/programchain.h" | ||
10 | |||
11 | using namespace Bu; | ||
12 | |||
13 | Bu::ProgramLink::ProgramLink() | ||
14 | { | ||
15 | } | ||
16 | |||
17 | Bu::ProgramLink::~ProgramLink() | ||
18 | { | ||
19 | } | ||
20 | |||
21 | LinkMessage *Bu::ProgramLink::sendIRM( LinkMessage *pMsgOut ) | ||
22 | { | ||
23 | return pChain->broadcastIRM( pMsgOut, this ); | ||
24 | } | ||
25 | |||
26 | void Bu::ProgramLink::setChain( ProgramChain *pNewChain ) | ||
27 | { | ||
28 | pChain = pNewChain; | ||
29 | } | ||
30 | |||
31 | /* | ||
32 | void ProgramLink::postMessage( LinkMessage *pMsg, int nLvl ) | ||
33 | { | ||
34 | if( nLvl == msgToChain ) | ||
35 | { | ||
36 | qMsgToChain.enqueue( pMsg ); | ||
37 | } | ||
38 | else if( nLvl == msgToLink ) | ||
39 | { | ||
40 | qMsgToLink.enqueue( pMsg ); | ||
41 | } | ||
42 | else | ||
43 | { | ||
44 | // ERROR! | ||
45 | } | ||
46 | } | ||
47 | |||
48 | LinkMessage *ProgramLink::getMessage( int nLvl ) | ||
49 | { | ||
50 | if( nLvl == msgToChain ) | ||
51 | { | ||
52 | return (LinkMessage *)qMsgToChain.dequeue(); | ||
53 | } | ||
54 | else if( nLvl == msgToLink ) | ||
55 | { | ||
56 | return (LinkMessage *)qMsgToLink.dequeue(); | ||
57 | } | ||
58 | else | ||
59 | { | ||
60 | // ERROR! | ||
61 | } | ||
62 | } | ||
63 | */ | ||