NOT PART OF BUILD. regmozctl slowly inching towards being able to update the PATH environment for control support
git-svn-id: svn://10.0.0.236/trunk@78390 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user