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_FSSERVERCONNECTION_H__0CD5653D_2D57_4456_B496_204556B72225__INCLUDED_) 00007 #define AFX_FSSERVERCONNECTION_H__0CD5653D_2D57_4456_B496_204556B72225__INCLUDED_ 00008 00009 #if _MSC_VER > 1000 00010 #pragma once 00011 #endif 00012 00013 #include <windows.h> 00014 #include <wininet.h> 00015 #include "fsinet.h" 00016 #include <fsString.h> 00017 #include "fsSpeaking.h" 00018 00019 class fsInternetServerConnection : public fsSpeaking 00020 { 00021 public: 00022 00023 INTERNET_PORT GetServerPort(); 00024 00025 LPCSTR GetServerName(); 00026 00027 00028 class fsInternetSession* GetSession(); 00029 00030 void CloseHandle(); 00031 00032 LPCSTR GetLastError (); 00033 00034 00035 00036 00037 virtual fsInternetResult Connect (LPCSTR pszServer, LPCSTR pszUser, LPCSTR pszPassword, INTERNET_PORT nPort) = NULL; 00038 00039 00040 fsInternetResult Initialize (class fsInternetSession *pSession); 00041 00042 HINTERNET GetHandle(); 00043 fsInternetServerConnection(); 00044 virtual ~fsInternetServerConnection(); 00045 00046 protected: 00047 INTERNET_PORT m_uPort; 00048 fsString m_strServer; 00049 char *m_pszLastError; 00050 HINTERNET m_hServer; 00051 class fsInternetSession* m_pSession; 00052 }; 00053 00054 #endif
1.5.6