home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC / include / afxinet.inl < prev    next >
Encoding:
Text File  |  1999-02-19  |  2.5 KB  |  74 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. // Inlines for AFXINET.H
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. //
  15.  
  16. #ifdef _AFXINET_INLINE
  17.  
  18. _AFXINET_INLINE DWORD CInternetSession::GetContext() const
  19.     { return m_dwContext; }
  20.  
  21. _AFXINET_INLINE CString CInternetConnection::GetServerName() const
  22.     { return m_strServerName; }
  23.  
  24. _AFXINET_INLINE CInternetSession* CInternetConnection::GetSession() const
  25.     { return m_pSession; }
  26.  
  27. _AFXINET_INLINE CInternetSession::operator HINTERNET() const
  28.     { return m_hSession; }
  29.  
  30. _AFXINET_INLINE BOOL CInternetSession::SetOption(DWORD dwOption, DWORD dwValue,
  31.     DWORD dwFlags /* = 0 */)
  32.     { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  33.  
  34.  
  35. #if !defined(_WIN32_WCE)
  36. _AFXINET_INLINE CGopherLocator::operator LPCTSTR() const
  37.     { return (LPCTSTR) m_Locator; }
  38.  
  39. _AFXINET_INLINE BOOL CGopherLocator::GetLocatorType(DWORD& dwRef) const
  40.     { return GopherGetLocatorType((LPCTSTR) m_Locator, &dwRef); }
  41.  
  42. _AFXINET_INLINE CGopherLocator::CGopherLocator(const CGopherLocator& ref)
  43.     { m_Locator = ref.m_Locator; m_dwBufferLength = ref.m_dwBufferLength; }
  44. #endif // _WIN32_WCE
  45.  
  46.  
  47. _AFXINET_INLINE CInternetConnection::operator HINTERNET() const
  48.     { return m_hConnection; }
  49.  
  50. _AFXINET_INLINE DWORD CInternetConnection::GetContext() const
  51.     { return m_dwContext; }
  52.  
  53. _AFXINET_INLINE BOOL CInternetConnection::SetOption(DWORD dwOption,
  54.     DWORD dwValue, DWORD dwFlags /* = 0 */)
  55.     { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  56.  
  57.  
  58. #if !defined(_WIN32_WCE)
  59. _AFXINET_INLINE DWORD CInternetFile::GetContext() const
  60.     { return m_dwContext; }
  61.  
  62. _AFXINET_INLINE CInternetFile::operator HINTERNET() const
  63.     { return m_hFile; }
  64.  
  65. _AFXINET_INLINE BOOL CInternetFile::SetOption(DWORD dwOption, DWORD dwValue,
  66.     DWORD dwFlags /* = 0 */)
  67.     { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  68. #endif // _WIN32_WCE
  69.  
  70.  
  71. #endif //_AFXINET_INLINE
  72.  
  73. /////////////////////////////////////////////////////////////////////////////
  74.