source: vendor/synergy/current/lib/io/IStream.cpp

Last change on this file was 2749, checked in by bird, 19 years ago

synergy v1.3.1 sources (zip).

File size: 1.6 KB
Line 
1/*
2 * synergy -- mouse and keyboard sharing utility
3 * Copyright (C) 2004 Chris Schoeneman
4 *
5 * This package is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * found in the file COPYING that should have accompanied this file.
8 *
9 * This package is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14
15#include "IStream.h"
16
17//
18// IStream
19//
20
21CEvent::Type IStream::s_inputReadyEvent = CEvent::kUnknown;
22CEvent::Type IStream::s_outputFlushedEvent = CEvent::kUnknown;
23CEvent::Type IStream::s_outputErrorEvent = CEvent::kUnknown;
24CEvent::Type IStream::s_inputShutdownEvent = CEvent::kUnknown;
25CEvent::Type IStream::s_outputShutdownEvent = CEvent::kUnknown;
26
27CEvent::Type
28IStream::getInputReadyEvent()
29{
30 return CEvent::registerTypeOnce(s_inputReadyEvent,
31 "IStream::inputReady");
32}
33
34CEvent::Type
35IStream::getOutputFlushedEvent()
36{
37 return CEvent::registerTypeOnce(s_outputFlushedEvent,
38 "IStream::outputFlushed");
39}
40
41CEvent::Type
42IStream::getOutputErrorEvent()
43{
44 return CEvent::registerTypeOnce(s_outputErrorEvent,
45 "IStream::outputError");
46}
47
48CEvent::Type
49IStream::getInputShutdownEvent()
50{
51 return CEvent::registerTypeOnce(s_inputShutdownEvent,
52 "IStream::inputShutdown");
53}
54
55CEvent::Type
56IStream::getOutputShutdownEvent()
57{
58 return CEvent::registerTypeOnce(s_outputShutdownEvent,
59 "IStream::outputShutdown");
60}
Note: See TracBrowser for help on using the repository browser.