LAPTOP-SNT8I5JK\Boounion
2025-06-21 088edcedd822070b6df3599aa87e08bea25a251d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#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;
}