#ifndef _WinInetLayer_HXX_ #define _WinInetLayer_HXX_ #include #include #include #include #ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_ #include #endif #include #include #include #if defined _MSC_VER #pragma warning(push, 1) #endif #include #include #if defined _MSC_VER #pragma warning(pop) #endif namespace css = com::sun::star ; namespace uno = css::uno ; namespace lang = css::lang ; namespace backend = css::configuration::backend ; namespace util = css::util ; /** Implementation of the XLayer interfaces for fixed values */ class WinInetLayer : public cppu::WeakImplHelper2 { public : typedef BOOL ( WINAPI *InternetQueryOption_Proc_T )( HINTERNET, DWORD, LPVOID, LPDWORD ); /** Constructor given the requested component name @param lpfnInternetQueryOption function pointer into wininet.dll @param aTimestamp timestamp indicating last modifictaion */ WinInetLayer(InternetQueryOption_Proc_T lpfnInternetQueryOption, const uno::Reference& xContext); /** Destructor */ ~WinInetLayer(void) {} // XLayer virtual void SAL_CALL readData(const uno::Reference& xHandler) throw ( backend::MalformedDataException, lang::NullPointerException, lang::WrappedTargetException, uno::RuntimeException) ; // XTimeStamped virtual rtl::OUString SAL_CALL getTimestamp(void) throw (uno::RuntimeException); private : rtl::OUString m_aComponent ; uno::Reference m_xLayerContentDescriber ; // The InternetQueryOption function pointer InternetQueryOption_Proc_T m_lpfnInternetQueryOption; } ; #endif // _WinInetLayer_HXX_