| 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 |
|
|---|
| 21 | CEvent::Type IStream::s_inputReadyEvent = CEvent::kUnknown;
|
|---|
| 22 | CEvent::Type IStream::s_outputFlushedEvent = CEvent::kUnknown;
|
|---|
| 23 | CEvent::Type IStream::s_outputErrorEvent = CEvent::kUnknown;
|
|---|
| 24 | CEvent::Type IStream::s_inputShutdownEvent = CEvent::kUnknown;
|
|---|
| 25 | CEvent::Type IStream::s_outputShutdownEvent = CEvent::kUnknown;
|
|---|
| 26 |
|
|---|
| 27 | CEvent::Type
|
|---|
| 28 | IStream::getInputReadyEvent()
|
|---|
| 29 | {
|
|---|
| 30 | return CEvent::registerTypeOnce(s_inputReadyEvent,
|
|---|
| 31 | "IStream::inputReady");
|
|---|
| 32 | }
|
|---|
| 33 |
|
|---|
| 34 | CEvent::Type
|
|---|
| 35 | IStream::getOutputFlushedEvent()
|
|---|
| 36 | {
|
|---|
| 37 | return CEvent::registerTypeOnce(s_outputFlushedEvent,
|
|---|
| 38 | "IStream::outputFlushed");
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | CEvent::Type
|
|---|
| 42 | IStream::getOutputErrorEvent()
|
|---|
| 43 | {
|
|---|
| 44 | return CEvent::registerTypeOnce(s_outputErrorEvent,
|
|---|
| 45 | "IStream::outputError");
|
|---|
| 46 | }
|
|---|
| 47 |
|
|---|
| 48 | CEvent::Type
|
|---|
| 49 | IStream::getInputShutdownEvent()
|
|---|
| 50 | {
|
|---|
| 51 | return CEvent::registerTypeOnce(s_inputShutdownEvent,
|
|---|
| 52 | "IStream::inputShutdown");
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | CEvent::Type
|
|---|
| 56 | IStream::getOutputShutdownEvent()
|
|---|
| 57 | {
|
|---|
| 58 | return CEvent::registerTypeOnce(s_outputShutdownEvent,
|
|---|
| 59 | "IStream::outputShutdown");
|
|---|
| 60 | }
|
|---|