• Main Page
  • Classes
  • Files
  • File List

IScreen.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2003 Chris Schoeneman
00005  * 
00006  * This package is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License
00008  * found in the file COPYING that should have accompanied this file.
00009  * 
00010  * This package is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00017  */
00018 
00019 #ifndef ISCREEN_H
00020 #define ISCREEN_H
00021 
00022 #include "IInterface.h"
00023 #include "ClipboardTypes.h"
00024 #include "CEvent.h"
00025 
00026 class IClipboard;
00027 
00029 
00032 class IScreen : public IInterface {
00033 public:
00034     struct CClipboardInfo {
00035     public:
00036         ClipboardID     m_id;
00037         UInt32          m_sequenceNumber;
00038     };
00039 
00041 
00042 
00044 
00047     virtual void*       getEventTarget() const = 0;
00048 
00050 
00054     virtual bool        getClipboard(ClipboardID id, IClipboard*) const = 0;
00055 
00057 
00061     virtual void        getShape(SInt32& x, SInt32& y,
00062                             SInt32& width, SInt32& height) const = 0;
00063 
00065 
00068     virtual void        getCursorPos(SInt32& x, SInt32& y) const = 0;
00069 
00071 
00075     static CEvent::Type getErrorEvent();
00076 
00078 
00082     static CEvent::Type getShapeChangedEvent();
00083 
00085 
00090     static CEvent::Type getClipboardGrabbedEvent();
00091 
00093 
00097     static CEvent::Type getSuspendEvent();
00098     
00100 
00104     static CEvent::Type getResumeEvent();
00105     
00107 
00108 private:
00109     static CEvent::Type s_errorEvent;
00110     static CEvent::Type s_shapeChangedEvent;
00111     static CEvent::Type s_clipboardGrabbedEvent;
00112     static CEvent::Type s_suspendEvent;
00113     static CEvent::Type s_resumeEvent;
00114 };
00115 
00116 #endif

Generated on Thu May 23 2013 00:00:04 for Synergy by  doxygen 1.7.1