Back to index

lightning-sunbird  0.9+nobinonly
RegTask.h
Go to the documentation of this file.
00001 // RegTask.h: interface for the CRegTask class.
00002 //
00004 
00005 #if !defined(AFX_REGTASK_H__28D3BD27_F767_4412_B00B_236E3562B214__INCLUDED_)
00006 #define AFX_REGTASK_H__28D3BD27_F767_4412_B00B_236E3562B214__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 class CRegTaskManager;
00013 
00014 class CRegTask  
00015 {
00016 protected:
00017     CRegTaskManager *m_pTaskMgr;
00018     CString m_szDesc;
00019 
00020 public:
00021     static HRESULT PopulateTasks(CRegTaskManager &cMgr);
00022 
00023 public:
00024        CRegTask();
00025     CRegTask(CRegTaskManager *pMgr);
00026        virtual ~CRegTask();
00027 
00028     CString GetDescription()
00029     {
00030         return m_szDesc;
00031     }
00032 
00033        virtual HRESULT DoTask() = 0;
00034 };
00035 
00036 #endif // !defined(AFX_REGTASK_H__28D3BD27_F767_4412_B00B_236E3562B214__INCLUDED_)