Files
libreoffice/shell/source/backends/wininetbe/wininetlayer.hxx
Rüdiger Timm 1bf7c1b16a INTEGRATION: CWS changefileheader (1.3.154); FILE MERGED
2008/04/01 15:40:16 thb 1.3.154.2: #i85898# Stripping all external header guards
2008/04/01 12:41:11 thb 1.3.154.1: #i85898# Stripping all external header guards
2008-04-11 07:06:03 +00:00

74 lines
2.3 KiB
C++

#ifndef _WinInetLayer_HXX_
#define _WinInetLayer_HXX_
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/configuration/backend/XLayer.hpp>
#include <com/sun/star/configuration/backend/PropertyInfo.hpp>
#include <com/sun/star/configuration/backend/BackendAccessException.hpp>
#ifndef _COM_SUN_STAR_CONFIGURATION_BACKEND_XLAYERCONTENTDESCIBER_HPP_
#include <com/sun/star/configuration/backend/XLayerContentDescriber.hpp>
#endif
#include <com/sun/star/util/XTimeStamped.hpp>
#include <com/sun/star/uno/Sequence.hxx>
#include <cppuhelper/implbase2.hxx>
#if defined _MSC_VER
#pragma warning(push, 1)
#endif
#include <windows.h>
#include <wininet.h>
#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<backend::XLayer, util::XTimeStamped>
{
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<uno::XComponentContext>& xContext);
/** Destructor */
~WinInetLayer(void) {}
// XLayer
virtual void SAL_CALL readData(const uno::Reference<backend::XLayerHandler>& 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<backend::XLayerContentDescriber> m_xLayerContentDescriber ;
// The InternetQueryOption function pointer
InternetQueryOption_Proc_T m_lpfnInternetQueryOption;
} ;
#endif // _WinInetLayer_HXX_