/****************************************************************************
                Service Master Mode Class Header
                -----------------------------------------
    begin      : 2014/09/02
    copyright  : (C) 2005 Solbox Inc.
    author     : Storage Dev Team	                
    email      : storage.sd@solbox.com
    version    : 3.4

    CopyRight(C) 2005 Solbox Inc. All Rights reserved.
    Redistribution and use in source and binary forms, with or with out
    modification, are not permitted in outside of Solbox Inc.
*****************************************************************************/

#ifndef __SERVICE_MASTER_MODE_H__
#define __SERVICE_MASTER_MODE_H__

#include "ModeBase.h"

class CWorkResult
{
public:
	CWorkResult(){};
	~CWorkResult(){};

public:
	bool bSuccess;					// 성공 여부
	std::string strMasterID; 		// sync_master
	std::string strMessage;  		// error message
	std::string strRcts;	 		// rcts info
	std::string strSyncFileName;	// sync file name
};

// class CServiceMode : Service Master Mode class
class CMasterMode : public CServiceMode
{
public:
	CMasterMode(CProcessSocketControl * pclient);
	virtual ~CMasterMode();

	// 요청 받은 데이터(CReqMasterData) 대한 Sync 정보 만듦
	//   함수 수행 성공일 때 Execute() 함수 수행됨
	bool CreateSyncList(CReqMasterData &d);
	
	// master mode 작업 수행
	virtual void Execute();

private:

};

#endif /* __SERVICE_MASTER_MODE_H__ */
