EmailScheduler/MailCore.framework/Versions/A/Headers/MCPOPOperation.h

54 lines
1.2 KiB
C
Raw Normal View History

2014-09-13 17:13:32 -05:00
//
// MCPOPOperation.h
// mailcore2
//
// Created by DINH Viêt Hoà on 1/16/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#ifndef MAILCORE_MCPOPOPERATION_H
#define MAILCORE_MCPOPOPERATION_H
#include <MailCore/MCBaseTypes.h>
#include <MailCore/MCPOPProgressCallback.h>
#ifdef __cplusplus
namespace mailcore {
class POPAsyncSession;
class POPOperationCallback;
class POPOperation : public Operation, public POPProgressCallback {
public:
POPOperation();
virtual ~POPOperation();
virtual void setSession(POPAsyncSession * session);
virtual POPAsyncSession * session();
virtual void setPopCallback(POPOperationCallback * callback);
virtual POPOperationCallback * popCallback();
virtual void setError(ErrorCode error);
virtual ErrorCode error();
virtual void start();
private:
POPAsyncSession * mSession;
POPOperationCallback * mPopCallback;
ErrorCode mError;
private:
virtual void bodyProgress(POPSession * session, unsigned int current, unsigned int maximum);
virtual void bodyProgressOnMainThread(void * context);
};
}
#endif
#endif