Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BARRY_M_MODE_BASE_H__
00023 #define __BARRY_M_MODE_BASE_H__
00024
00025 #include "dll.h"
00026 #include "controller.h"
00027
00028 namespace Barry {
00029
00030 namespace Mode {
00031
00032
00033
00034
00035
00036
00037 class BXEXPORT Mode
00038 {
00039 protected:
00040 Controller &m_con;
00041 Controller::ModeType m_modetype;
00042 SocketHandle m_socket;
00043
00044 uint16_t m_ModeSocket;
00045
00046
00047 public:
00048 Mode(Controller &con, Controller::ModeType type);
00049 virtual ~Mode();
00050
00051
00052
00053
00054 void Open(const char *password = 0);
00055 void Open(const char *password, const char *name);
00056 void RetryPassword(const char *password);
00057
00058
00059 protected:
00060
00061
00062
00063 virtual void OnOpen();
00064 };
00065
00066 }}
00067
00068 #endif
00069