• Main Page
  • Classes
  • Files
  • File List

IScreen.cpp

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2004 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 #include "IScreen.h"
00020 #include "CEventQueue.h"
00021 
00022 //
00023 // IScreen
00024 //
00025 
00026 CEvent::Type            IScreen::s_errorEvent            = CEvent::kUnknown;
00027 CEvent::Type            IScreen::s_shapeChangedEvent     = CEvent::kUnknown;
00028 CEvent::Type            IScreen::s_clipboardGrabbedEvent = CEvent::kUnknown;
00029 CEvent::Type            IScreen::s_suspendEvent          = CEvent::kUnknown;
00030 CEvent::Type            IScreen::s_resumeEvent           = CEvent::kUnknown;
00031 
00032 CEvent::Type
00033 IScreen::getErrorEvent()
00034 {
00035     return EVENTQUEUE->registerTypeOnce(s_errorEvent,
00036                             "IScreen::error");
00037 }
00038 
00039 CEvent::Type
00040 IScreen::getShapeChangedEvent()
00041 {
00042     return EVENTQUEUE->registerTypeOnce(s_shapeChangedEvent,
00043                             "IScreen::shapeChanged");
00044 }
00045 
00046 CEvent::Type
00047 IScreen::getClipboardGrabbedEvent()
00048 {
00049     return EVENTQUEUE->registerTypeOnce(s_clipboardGrabbedEvent,
00050                             "IScreen::clipboardGrabbed");
00051 }
00052 
00053 CEvent::Type
00054 IScreen::getSuspendEvent()
00055 {
00056     return EVENTQUEUE->registerTypeOnce(s_suspendEvent,
00057                                     "IScreen::suspend");
00058 }
00059 
00060 CEvent::Type
00061 IScreen::getResumeEvent()
00062 {
00063     return EVENTQUEUE->registerTypeOnce(s_resumeEvent,
00064                                     "IScreen::resume");
00065 }

Generated on Sun May 26 2013 00:00:05 for Synergy by  doxygen 1.7.1