diff options
Diffstat (limited to 'src/protocol.cpp')
-rw-r--r-- | src/protocol.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/protocol.cpp b/src/protocol.cpp new file mode 100644 index 0000000..1b2621f --- /dev/null +++ b/src/protocol.cpp | |||
@@ -0,0 +1,31 @@ | |||
1 | /*************************************************************************** | ||
2 | * Copyright (C) 2003 by Mike Buland * | ||
3 | * eichlan@yf-soft.com * | ||
4 | * * | ||
5 | * This program is free software; you can redistribute it and/or modify * | ||
6 | * it under the terms of the GNU General Public License as published by * | ||
7 | * the Free Software Foundation; either version 2 of the License, or * | ||
8 | * (at your option) any later version. * | ||
9 | ***************************************************************************/ | ||
10 | #include "protocol.h" | ||
11 | |||
12 | Protocol::Protocol() | ||
13 | { | ||
14 | pConnection = NULL; | ||
15 | } | ||
16 | |||
17 | Protocol::~Protocol() | ||
18 | { | ||
19 | } | ||
20 | |||
21 | void Protocol::setConnection( Connection *pNewConnection ) | ||
22 | { | ||
23 | pConnection = pNewConnection; | ||
24 | |||
25 | onNewConnection(); | ||
26 | } | ||
27 | |||
28 | Connection *Protocol::getConnection() | ||
29 | { | ||
30 | return pConnection; | ||
31 | } | ||