00001 /* 00002 Free Download Manager Copyright (c) 2003-2007 FreeDownloadManager.ORG 00003 Open Download Manager Copyright (c) 2008-2010 OpenDownloadManager.ORG 00004 */ 00005 00006 #if !defined(AFX_FSEVENTSMGR_H__E2192B1F_EA57_41D6_9F36_601379609A9D__INCLUDED_) 00007 #define AFX_FSEVENTSMGR_H__E2192B1F_EA57_41D6_9F36_601379609A9D__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include "list.h" 00014 00015 struct fsDescEvent 00016 { 00017 LPSTR pszEvent; 00018 COLORREF clrBg; 00019 COLORREF clrText; 00020 FILETIME timeEvent; 00021 int iImage; 00022 }; 00023 00024 class fsEventsMgr 00025 { 00026 public: 00027 00028 void add (fsDescEvent* ev); 00029 00030 void clear(); 00031 00032 fsDescEvent* GetEvent (UINT uIndex); 00033 00034 UINT GetEventCount(); 00035 00036 BOOL Save (HANDLE hFile); 00037 00038 BOOL Load (HANDLE hFile); 00039 00040 fsEventsMgr(); 00041 virtual ~fsEventsMgr(); 00042 00043 protected: 00044 fs::list <fsDescEvent> m_vEvents; 00045 }; 00046 00047 #endif
1.5.6