Back to index

lightning-sunbird  0.9+nobinonly
RegTaskManager.h
Go to the documentation of this file.
00001 // RegTaskManager.h: interface for the CRegTaskManager class.
00002 //
00004 
00005 #if !defined(AFX_REGTASKMANAGER_H__516D62F5_00EC_4450_B965_003425CF33E1__INCLUDED_)
00006 #define AFX_REGTASKMANAGER_H__516D62F5_00EC_4450_B965_003425CF33E1__INCLUDED_
00007 
00008 #include <vector>
00009 
00010 #include "RegTask.h"
00011 
00012 #if _MSC_VER > 1000
00013 #pragma once
00014 #endif // _MSC_VER > 1000
00015 
00016 class CRegTaskManager  
00017 {
00018     std::vector<CRegTask *> m_cTasks;
00019     BOOL m_bNeedReboot;
00020 
00021     CString m_szBinDirPath;
00022 
00023 public:
00024        CRegTaskManager();
00025        virtual ~CRegTaskManager();
00026 
00027     void SetValue(const TCHAR *szName, const TCHAR *szValue);
00028        void GetValue(const TCHAR *szName, CString &szValue);
00029        void SetNeedReboot();
00030     
00031     void AddTask(CRegTask *pTask);
00032     int GetTaskCount() const { return m_cTasks.size(); }
00033     CRegTask *GetTask(int nIndex) { return m_cTasks[nIndex]; }
00034 };
00035 
00036 
00037 #endif // !defined(AFX_REGTASKMANAGER_H__516D62F5_00EC_4450_B965_003425CF33E1__INCLUDED_)