00001 /* 00002 * synergy -- mouse and keyboard sharing utility 00003 * Copyright (C) 2003 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 #ifndef ISCREEN_H 00016 #define ISCREEN_H 00017 00018 #include "IInterface.h" 00019 #include "ClipboardTypes.h" 00020 #include "CEvent.h" 00021 00022 class IClipboard; 00023 00025 00028 class IScreen : public IInterface { 00029 public: 00030 struct CClipboardInfo { 00031 public: 00032 ClipboardID m_id; 00033 UInt32 m_sequenceNumber; 00034 }; 00035 00037 00038 00040 00043 virtual void* getEventTarget() const = 0; 00044 00046 00050 virtual bool getClipboard(ClipboardID id, IClipboard*) const = 0; 00051 00053 00057 virtual void getShape(SInt32& x, SInt32& y, 00058 SInt32& width, SInt32& height) const = 0; 00059 00061 00064 virtual void getCursorPos(SInt32& x, SInt32& y) const = 0; 00065 00067 00071 static CEvent::Type getErrorEvent(); 00072 00074 00078 static CEvent::Type getShapeChangedEvent(); 00079 00081 00086 static CEvent::Type getClipboardGrabbedEvent(); 00087 00089 00093 static CEvent::Type getSuspendEvent(); 00094 00096 00100 static CEvent::Type getResumeEvent(); 00101 00103 00104 private: 00105 static CEvent::Type s_errorEvent; 00106 static CEvent::Type s_shapeChangedEvent; 00107 static CEvent::Type s_clipboardGrabbedEvent; 00108 static CEvent::Type s_suspendEvent; 00109 static CEvent::Type s_resumeEvent; 00110 }; 00111 00112 #endif