00001 /* 00002 * synergy -- mouse and keyboard sharing utility 00003 * Copyright (C) 2004 Chris Schoeneman 00004 * 00005 * This package is free software; you can redistribute it and/or 00006 * modify it under the terms of the GNU General Public License 00007 * found in the file COPYING that should have accompanied this file. 00008 * 00009 * This package is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 */ 00014 00015 #include "IStream.h" 00016 00017 // 00018 // IStream 00019 // 00020 00021 CEvent::Type IStream::s_inputReadyEvent = CEvent::kUnknown; 00022 CEvent::Type IStream::s_outputFlushedEvent = CEvent::kUnknown; 00023 CEvent::Type IStream::s_outputErrorEvent = CEvent::kUnknown; 00024 CEvent::Type IStream::s_inputShutdownEvent = CEvent::kUnknown; 00025 CEvent::Type IStream::s_outputShutdownEvent = CEvent::kUnknown; 00026 00027 CEvent::Type 00028 IStream::getInputReadyEvent() 00029 { 00030 return CEvent::registerTypeOnce(s_inputReadyEvent, 00031 "IStream::inputReady"); 00032 } 00033 00034 CEvent::Type 00035 IStream::getOutputFlushedEvent() 00036 { 00037 return CEvent::registerTypeOnce(s_outputFlushedEvent, 00038 "IStream::outputFlushed"); 00039 } 00040 00041 CEvent::Type 00042 IStream::getOutputErrorEvent() 00043 { 00044 return CEvent::registerTypeOnce(s_outputErrorEvent, 00045 "IStream::outputError"); 00046 } 00047 00048 CEvent::Type 00049 IStream::getInputShutdownEvent() 00050 { 00051 return CEvent::registerTypeOnce(s_inputShutdownEvent, 00052 "IStream::inputShutdown"); 00053 } 00054 00055 CEvent::Type 00056 IStream::getOutputShutdownEvent() 00057 { 00058 return CEvent::registerTypeOnce(s_outputShutdownEvent, 00059 "IStream::outputShutdown"); 00060 }