D:/opendownloadmanager/ODM-1.x/misc.h File Reference

#include "list.h"
#include "fsDownload.h"

Go to the source code of this file.

Defines

#define CLR_INQUIRY   RGB (255, 255, 210)
#define CLR_INQUIRY2   RGB (255, 255, 220)
#define CLR_DONE   RGB (230, 255, 250)
#define CLR_RESPONSE_S   RGB (230, 255, 230)
#define CLR_RESPONSE_S2   RGB (250, 255, 240)
#define CLR_RESPONSE_E   RGB (250, 240, 240)
#define CLR_WARNING   RGB (250, 240, 200)

Functions

void DrawVerticalFrame (HDC hdc, int xStart, int xEnd, int yStart, int height)
void DrawHorizontalFrame (HDC hdc, int yStart, int yEnd, int xStart, int width)
void BytesToXBytes (UINT64 uBytes, float *pfXBytes, LPSTR pszXVal)
CString BytesToString (UINT64 uSize)
void SystemTimeToStr (SYSTEMTIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds=TRUE)
void FileTimeToStr (FILETIME *time, LPSTR pszDate, LPSTR pszTime, BOOL bSeconds=TRUE)
BOOL fsErrorToStr (LPSTR pszErr, DWORD dwMaxSize, DWORD *pdwLastError=NULL)
BOOL fsBuildPathToFile (LPCSTR pszFileName)
BOOL fsBuildPathToFileW (LPCWSTR pszFileName)
BOOL DPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString)
BOOL DPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask)
BOOL DNPEntry_IsAllEqual (DLDS_LIST *pv, int offset, int size, BOOL bString)
void DPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal)
void DNPEntry_SetValue (DLDS_LIST *pv, int offset, int size, BOOL bString, const void *lpNewVal)
void DPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
void DPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
BOOL DNPEntry_IsAllEqual_BitMask (DLDS_LIST *pv, int offset, DWORD dwBitMask)
void DNPEntry_SetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
void DNPEntry_UnsetValue_BitMask (DLDS_LIST *pv, int offset, DWORD dwMask)
BOOL IsExtInExtsStr (LPCSTR pszExts, LPCSTR pszExt)
void fsGetPath (LPCSTR pszFile, LPSTR pszPath)
void fsGetFileName (LPCSTR pszFilePath, LPSTR pszFileName)
void fsPathToGoodPath (LPSTR pszPath)
void fsPathToGoodUrlPath (LPSTR pszPath)
BOOL fsSaveStrToFile (LPCSTR pszStr, HANDLE hFile)
BOOL fsReadStrFromFile (LPSTR *ppszStr, HANDLE hFile)
BOOL fsReadStringFromFile (HANDLE hFile, fsString &str)
DWORD fsGetTimeDelta (FILETIME *t1, FILETIME *t2)
DWORD fsGetTimeDelta (const SYSTEMTIME *t1, const SYSTEMTIME *t2)
CString fsTimeInSecondsToStr (DWORD dwAmount)
CString fsBytesToStr (UINT64 uBytes)
CString fsGetGrpOTHEROutFolder ()
void fsOpenBuyPage ()
void vmsUtf8ToAscii (LPSTR psz)
std::wstring vmsUtf8Unicode (LPCSTR psz)


Define Documentation

#define CLR_DONE   RGB (230, 255, 250)

Definition at line 68 of file misc.h.

Referenced by CHFEWnd::_EventsFunc(), and fsDownloadsMgr::GetEventColors().

#define CLR_INQUIRY   RGB (255, 255, 210)

#define CLR_INQUIRY2   RGB (255, 255, 220)

Definition at line 67 of file misc.h.

Referenced by fsDownloadsMgr::GetEventColors().

#define CLR_RESPONSE_E   RGB (250, 240, 240)

#define CLR_RESPONSE_S   RGB (230, 255, 230)

#define CLR_RESPONSE_S2   RGB (250, 255, 240)

Definition at line 70 of file misc.h.

Referenced by fsDownloadsMgr::GetEventColors().

#define CLR_WARNING   RGB (250, 240, 200)

Definition at line 72 of file misc.h.

Referenced by fsDownloadsMgr::GetEventColors().


Function Documentation

CString BytesToString ( UINT64  uSize  ) 

void BytesToXBytes ( UINT64  uBytes,
float *  pfXBytes,
LPSTR  pszXVal 
)

BOOL DNPEntry_IsAllEqual ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString 
)

Definition at line 332 of file misc.cpp.

References FALSE, LPVOID, and TRUE.

Referenced by CDownloadProperties_ProtocolPage::OnInitDialog().

BOOL DNPEntry_IsAllEqual_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwBitMask 
)

Definition at line 459 of file misc.cpp.

References FALSE, LPDWORD, and TRUE.

void DNPEntry_SetValue ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString,
const void *  lpNewVal 
)

Definition at line 431 of file misc.cpp.

References fsnew, LPSTR, LPVOID, and SAFE_DELETE_ARRAY.

void DNPEntry_SetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 480 of file misc.cpp.

References LPDWORD.

void DNPEntry_UnsetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 489 of file misc.cpp.

References LPDWORD.

BOOL DPEntry_IsAllEqual ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString 
)

Definition at line 300 of file misc.cpp.

References FALSE, LPVOID, and TRUE.

BOOL DPEntry_IsAllEqual_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwBitMask 
)

Definition at line 364 of file misc.cpp.

References FALSE, LPDWORD, and TRUE.

void DPEntry_SetValue ( DLDS_LIST pv,
int  offset,
int  size,
BOOL  bString,
const void *  lpNewVal 
)

Definition at line 385 of file misc.cpp.

References fsnew, LPSTR, LPVOID, and SAFE_DELETE_ARRAY.

void DPEntry_SetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 413 of file misc.cpp.

References LPDWORD.

void DPEntry_UnsetValue_BitMask ( DLDS_LIST pv,
int  offset,
DWORD  dwMask 
)

Definition at line 422 of file misc.cpp.

References LPDWORD.

void DrawHorizontalFrame ( HDC  hdc,
int  yStart,
int  yEnd,
int  xStart,
int  width 
)

Definition at line 50 of file misc.cpp.

References NULL.

Referenced by CWndSplitter::OnPaint().

void DrawVerticalFrame ( HDC  hdc,
int  xStart,
int  xEnd,
int  yStart,
int  height 
)

Definition at line 21 of file misc.cpp.

References NULL.

Referenced by CWndSplitter::OnPaint().

void FileTimeToStr ( FILETIME time,
LPSTR  pszDate,
LPSTR  pszTime,
BOOL  bSeconds = TRUE 
)

BOOL fsBuildPathToFile ( LPCSTR  pszFileName  ) 

BOOL fsBuildPathToFileW ( LPCWSTR  pszFileName  ) 

Definition at line 279 of file misc.cpp.

References MY_MAX_PATH, NULL, and TRUE.

Referenced by vmsBtDownloadManager::MoveToFolder().

CString fsBytesToStr ( UINT64  uBytes  ) 

BOOL fsErrorToStr ( LPSTR  pszErr,
DWORD  dwMaxSize,
DWORD *  pdwLastError = NULL 
)

void fsGetFileName ( LPCSTR  pszFilePath,
LPSTR  pszFileName 
)

CString fsGetGrpOTHEROutFolder (  ) 

Definition at line 744 of file misc.cpp.

References _DldsGrps, vmsDownloadsGroupsMgr::FindGroup(), and GRP_OTHER_ID.

void fsGetPath ( LPCSTR  pszFile,
LPSTR  pszPath 
)

DWORD fsGetTimeDelta ( const SYSTEMTIME *  t1,
const SYSTEMTIME *  t2 
)

Definition at line 648 of file misc.cpp.

References fsGetTimeDelta().

DWORD fsGetTimeDelta ( FILETIME t1,
FILETIME t2 
)

void fsOpenBuyPage (  ) 

void fsPathToGoodPath ( LPSTR  pszPath  ) 

void fsPathToGoodUrlPath ( LPSTR  pszPath  ) 

Definition at line 677 of file misc.cpp.

References LPSTR.

Referenced by fsWebPageDownloader::GetFileForReplace().

BOOL fsReadStrFromFile ( LPSTR ppszStr,
HANDLE  hFile 
)

BOOL fsReadStringFromFile ( HANDLE  hFile,
fsString str 
)

BOOL fsSaveStrToFile ( LPCSTR  pszStr,
HANDLE  hFile 
)

CString fsTimeInSecondsToStr ( DWORD  dwAmount  ) 

Definition at line 656 of file misc.cpp.

Referenced by CDownloads_Tasks::GetDownloadText(), and CUpdateDlg::OnTimer().

BOOL IsExtInExtsStr ( LPCSTR  pszExts,
LPCSTR  pszExt 
)

void SystemTimeToStr ( SYSTEMTIME *  time,
LPSTR  pszDate,
LPSTR  pszTime,
BOOL  bSeconds = TRUE 
)

void vmsUtf8ToAscii ( LPSTR  psz  ) 

std::wstring vmsUtf8Unicode ( LPCSTR  psz  ) 

Definition at line 758 of file misc.cpp.

Referenced by vmsBtDownloadManager::get_FileNameW().


Generated on Sun May 25 00:20:15 2008 by  doxygen 1.5.6