#include <list>
#include <string>
-#include "os_int.h"
+#include "stg/os_int.h"
+#include "stg/const.h"
#include "netunit.h"
-#include "stg_const.h"
void Start(void *data, const char *el, const char **attr);
void End(void *data, const char *el);
std::string password;
double cash;
double credit;
+ time_t creditExpire;
double lastCash;
double prepaidTraff;
int down;
RecvServerInfoDataCb_t RecvServerInfoDataCb;
void * serverInfoDataCb;
- USERDATA user;
int depth;
bool error;
SERVERINFO serverInfo;
int GetServerInfo();
int CheckUser(const char * login, const char * password);
- char * GetStrError();
- int GetError();
+ const std::string & GetStrError() const;
+ int GetError();
int Start(const char *el, const char **attr);
void End(const char *el);
NETTRANSACT nt;
int parseDepth;
- USERDATA ud;
- char errorMsg[MAX_ERR_STR_LEN];
- int error;
- XML_Parser parser;
+ std::string errorMsg;
+ int error;
+ XML_Parser parser;
RecvUserDataCb_t RecvUserDataCb;
RecvUserDataCb_t RecvGetUserDataCb;