XSynergy.h

00001 /*
00002  * synergy -- mouse and keyboard sharing utility
00003  * Copyright (C) 2002 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 XSYNERGY_H
00016 #define XSYNERGY_H
00017 
00018 #include "XBase.h"
00019 
00021 XBASE_SUBCLASS(XSynergy, XBase);
00022 
00024 
00027 XBASE_SUBCLASS_WHAT(XBadClient, XSynergy);
00028 
00030 
00033 class XIncompatibleClient : public XSynergy {
00034 public:
00035     XIncompatibleClient(int major, int minor);
00036 
00038 
00039 
00041     int                 getMajor() const throw();
00043     int                 getMinor() const throw();
00044 
00046 
00047 protected:
00048     virtual CString     getWhat() const throw();
00049 
00050 private:
00051     int                 m_major;
00052     int                 m_minor;
00053 };
00054 
00056 
00060 class XDuplicateClient : public XSynergy {
00061 public:
00062     XDuplicateClient(const CString& name);
00063 
00065 
00066 
00068     virtual const CString&
00069                         getName() const throw();
00070 
00072 
00073 protected:
00074     virtual CString     getWhat() const throw();
00075 
00076 private:
00077     CString             m_name;
00078 };
00079 
00081 
00085 class XUnknownClient : public XSynergy {
00086 public:
00087     XUnknownClient(const CString& name);
00088 
00090 
00091 
00093     virtual const CString&
00094                         getName() const throw();
00095 
00097 
00098 protected:
00099     virtual CString     getWhat() const throw();
00100 
00101 private:
00102     CString             m_name;
00103 };
00104 
00105 #endif

Generated on Fri Nov 6 00:18:46 2009 for synergy-plus by  doxygen 1.4.7