barrier/net/XNetwork.h

53 lines
926 B
C
Raw Normal View History

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