#include "stdafx.h" #include "Intent.h" CIntent::CIntent() { m_nCode = 0; m_pContext = nullptr; } CIntent::CIntent(int nCode, const char* pszMsg, CContext* pContext) { m_nCode = nCode; m_strMsg = pszMsg; m_pContext = pContext; } CIntent::~CIntent() { } void CIntent::setCode(int nCode) { m_nCode = nCode; } int CIntent::getCode() { return m_nCode; } void CIntent::setMsg(const char* pszMsg) { m_strMsg = pszMsg; } const char* CIntent::getMsg() { return m_strMsg.c_str(); } void CIntent::setContext(CContext* pContext) { pContext->addRef(); m_pContext = pContext; } CContext* CIntent::getContext() { return m_pContext; }