update dev300-m58
[ooovba.git] / bridges / source / remote / urp / urp_property.hxx
blob67e8a77593879a06dde5960ed9f9b7e7b70f9b25
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: urp_property.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _URP_PROPERTY_HXX_
31 #define _URP_PROPERTY_HXX_
32 #ifndef _BRIDGES_REMOTE_REMOTE_H_
33 #include <bridges/remote/remote.h>
34 #endif
35 #include <rtl/ustring.hxx>
36 #include <rtl/byteseq.hxx>
38 namespace bridges_urp
40 struct Properties
42 ::rtl::ByteSequence seqBridgeID;
43 sal_Int32 nTypeCacheSize;
44 sal_Int32 nOidCacheSize;
45 sal_Int32 nTidCacheSize;
46 ::rtl::OUString sSupportedVersions;
47 ::rtl::OUString sVersion;
48 sal_Int32 nFlushBlockSize;
49 sal_Int32 nOnewayTimeoutMUSEC;
50 sal_Bool bSupportsMustReply;
51 sal_Bool bSupportsSynchronous;
52 sal_Bool bSupportsMultipleSynchronous;
53 sal_Bool bClearCache;
54 sal_Bool bNegotiate;
55 sal_Bool bForceSynchronous;
56 sal_Bool bCurrentContext;
58 inline Properties()
59 : nTypeCacheSize( 256 )
60 , nOidCacheSize( 256 )
61 , nTidCacheSize( 256 )
62 , sSupportedVersions( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "1.0" ) ) )
63 , sVersion( ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "1.0" )))
64 , nFlushBlockSize( 4*1024 )
65 , nOnewayTimeoutMUSEC( 10000 )
66 , bSupportsMustReply( sal_False )
67 , bSupportsSynchronous( sal_False )
68 , bSupportsMultipleSynchronous( sal_False )
69 , bClearCache( sal_False )
70 , bNegotiate( sal_True )
71 , bForceSynchronous( sal_True )
72 , bCurrentContext( sal_False )
75 inline Properties & SAL_CALL operator = ( const Properties &props )
77 seqBridgeID = props.seqBridgeID;
78 nTypeCacheSize = props.nTypeCacheSize;
79 nOidCacheSize = props.nOidCacheSize;
80 nTidCacheSize = props.nTidCacheSize;
81 sSupportedVersions = props.sSupportedVersions;
82 sVersion = props.sVersion;
83 nFlushBlockSize = props.nFlushBlockSize;
84 nOnewayTimeoutMUSEC = props.nOnewayTimeoutMUSEC;
85 bSupportsMustReply = props.bSupportsMustReply;
86 bSupportsSynchronous = props.bSupportsSynchronous;
87 bSupportsMultipleSynchronous = props.bSupportsMultipleSynchronous;
88 bClearCache = props.bClearCache;
89 bNegotiate = props.bNegotiate;
90 bForceSynchronous = props.bForceSynchronous;
91 bCurrentContext = props.bCurrentContext;
92 return *this;
95 } // end namespace bridges_urp
96 #endif