00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
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