2001-11-19 03:33:36 +03:00
|
|
|
#ifndef XNETWORK_H
|
|
|
|
#define XNETWORK_H
|
|
|
|
|
|
|
|
#include "XBase.h"
|
2002-06-11 02:06:45 +04:00
|
|
|
#include "CString.h"
|
2001-11-19 03:33:36 +03:00
|
|
|
|
|
|
|
class XNetwork : public XBase { };
|
|
|
|
|
|
|
|
class XNetworkUnavailable : public XNetwork {
|
2002-04-29 18:40:01 +04:00
|
|
|
protected:
|
2001-11-19 03:33:36 +03:00
|
|
|
// XBase overrides
|
|
|
|
virtual CString getWhat() const throw();
|
|
|
|
};
|
|
|
|
|
|
|
|
class XNetworkFailed : public XNetwork {
|
2002-04-29 18:40:01 +04:00
|
|
|
protected:
|
2001-11-19 03:33:36 +03:00
|
|
|
// XBase overrides
|
|
|
|
virtual CString getWhat() const throw();
|
|
|
|
};
|
|
|
|
|
|
|
|
class XNetworkVersion : public XNetwork {
|
2002-04-29 18:40:01 +04:00
|
|
|
public:
|
2001-11-19 03:33:36 +03:00
|
|
|
XNetworkVersion(int major, int minor) throw();
|
|
|
|
|
|
|
|
// accessors
|
|
|
|
|
|
|
|
int getMajor() const throw();
|
|
|
|
int getMinor() const throw();
|
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
protected:
|
2001-11-19 03:33:36 +03:00
|
|
|
// XBase overrides
|
|
|
|
virtual CString getWhat() const throw();
|
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
private:
|
2001-11-19 03:33:36 +03:00
|
|
|
int m_major;
|
|
|
|
int m_minor;
|
|
|
|
};
|
|
|
|
|
|
|
|
class XNetworkFunctionUnavailable : public XNetwork {
|
2002-04-29 18:40:01 +04:00
|
|
|
public:
|
2001-11-19 03:33:36 +03:00
|
|
|
XNetworkFunctionUnavailable(const char* name) throw();
|
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
protected:
|
2001-11-19 03:33:36 +03:00
|
|
|
// XBase overrides
|
|
|
|
virtual CString getWhat() const throw();
|
|
|
|
|
2002-04-29 18:40:01 +04:00
|
|
|
private:
|
2001-11-19 03:33:36 +03:00
|
|
|
CString m_name;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|