2019-07-27 22:44:32 +08:00
|
|
|
|
#pragma once
|
2014-11-19 00:25:21 +08:00
|
|
|
|
|
|
|
|
|
struct POP3_METER;
|
|
|
|
|
class pop3_callback;
|
|
|
|
|
|
|
|
|
|
class pop3_store : public acl::rpc_request
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
pop3_store(const char* user, const char* pop3_ip,
|
|
|
|
|
const POP3_METER& meter, pop3_callback& callback);
|
|
|
|
|
protected:
|
|
|
|
|
~pop3_store();
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// 基类虚函数:子线程处理函数
|
2014-11-19 00:25:21 +08:00
|
|
|
|
virtual void rpc_run();
|
|
|
|
|
|
2019-07-27 22:44:32 +08:00
|
|
|
|
// 基类虚函数:主线程处理过程,收到子线程任务完成的消息
|
2014-11-19 00:25:21 +08:00
|
|
|
|
virtual void rpc_onover();
|
|
|
|
|
private:
|
|
|
|
|
bool ok_;
|
|
|
|
|
char* user_;
|
|
|
|
|
char* pop3_ip_;
|
|
|
|
|
POP3_METER* meter_;
|
|
|
|
|
pop3_callback& callback_;
|
|
|
|
|
acl::string dbpath_;
|
|
|
|
|
|
|
|
|
|
bool create_tbl(acl::db_handle& db);
|
|
|
|
|
void insert_tbl(acl::db_handle& db);
|
2013-08-18 17:42:25 +08:00
|
|
|
|
};
|