acl/app/net_tools/mail/pop3_store.h

29 lines
610 B
C
Raw Normal View History

#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();
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴߳<DFB3><CCB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
2014-11-19 00:25:21 +08:00
virtual void rpc_run();
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E9BAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̴߳<DFB3><CCB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̣<EFBFBD><CCA3>յ<EFBFBD><D5B5><EFBFBD><EFBFBD>߳<EFBFBD><DFB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɵ<EFBFBD><C9B5><EFBFBD>Ϣ
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);
};