• Main Page
  • Classes
  • Files
  • File List

XSynergy.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2012 Bolton Software Ltd.
00004  * Copyright (C) 2002 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 XSYNERGY_H
00020 #define XSYNERGY_H
00021 
00022 #include "XBase.h"
00023 
00025 XBASE_SUBCLASS(XSynergy, XBase);
00026 
00028 
00031 XBASE_SUBCLASS_WHAT(XBadClient, XSynergy);
00032 
00034 
00037 XBASE_SUBCLASS_WHAT(XBadCryptoMode, XSynergy);
00038 
00040 
00043 class XIncompatibleClient : public XSynergy {
00044 public:
00045     XIncompatibleClient(int major, int minor);
00046 
00048 
00049 
00051     int                 getMajor() const throw();
00053     int                 getMinor() const throw();
00054 
00056 
00057 protected:
00058     virtual CString     getWhat() const throw();
00059 
00060 private:
00061     int                 m_major;
00062     int                 m_minor;
00063 };
00064 
00066 
00070 class XDuplicateClient : public XSynergy {
00071 public:
00072     XDuplicateClient(const CString& name);
00073 
00075 
00076 
00078     virtual const CString&
00079                         getName() const throw();
00080 
00082 
00083 protected:
00084     virtual CString     getWhat() const throw();
00085 
00086 private:
00087     CString             m_name;
00088 };
00089 
00091 
00095 class XUnknownClient : public XSynergy {
00096 public:
00097     XUnknownClient(const CString& name);
00098 
00100 
00101 
00103     virtual const CString&
00104                         getName() const throw();
00105 
00107 
00108 protected:
00109     virtual CString     getWhat() const throw();
00110 
00111 private:
00112     CString             m_name;
00113 };
00114 
00116 
00121 class XExitApp : public XSynergy {
00122 public:
00123     XExitApp(int code);
00124 
00126     int getCode() const throw();
00127 
00128 protected:
00129     virtual CString getWhat() const throw();
00130     
00131 private:
00132     int m_code;
00133 };
00134 
00135 #endif

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