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