mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-11 02:10:17 +01:00
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
// RegTaskManager.cpp: implementation of the CRegTaskManager class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#include "stdafx.h"
|
|
#include "regmozctl.h"
|
|
#include "RegTaskManager.h"
|
|
|
|
#include <string.h>
|
|
#include <tchar.h>
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char THIS_FILE[]=__FILE__;
|
|
#define new DEBUG_NEW
|
|
#endif
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
CRegTaskManager::CRegTaskManager()
|
|
{
|
|
m_bNeedReboot = FALSE;
|
|
}
|
|
|
|
CRegTaskManager::~CRegTaskManager()
|
|
{
|
|
|
|
}
|
|
|
|
void CRegTaskManager::SetNeedReboot()
|
|
{
|
|
m_bNeedReboot = TRUE;
|
|
}
|
|
|
|
void CRegTaskManager::AddTask(CRegTask *pTask)
|
|
{
|
|
m_cTasks.push_back(pTask);
|
|
}
|
|
|
|
|
|
void CRegTaskManager::SetValue(const TCHAR *szName, const TCHAR *szValue)
|
|
{
|
|
if (_tcscmp(szName, c_szValueBinDirPath) == 0)
|
|
{
|
|
m_szBinDirPath = szValue;
|
|
}
|
|
}
|
|
|
|
void CRegTaskManager::GetValue(const TCHAR *szName, CString &szValue)
|
|
{
|
|
if (_tcscmp(szName, c_szValueBinDirPath) == 0)
|
|
{
|
|
szValue = m_szBinDirPath;
|
|
}
|
|
}
|