storlckb.hxx (b9fd132d) storlckb.hxx (aac4b212)
1/**************************************************************
1/**************************************************************
2 *
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
19 *
20 *************************************************************/
21
22
23
24#ifndef _STORE_STORLCKB_HXX_
25#define _STORE_STORLCKB_HXX_ "$Revision$"
26
27#include "sal/types.h"

--- 7 unchanged lines hidden (view full) ---

35
36namespace store
37{
38
39struct OStoreDataPageData;
40struct OStoreDirectoryPageData;
41
42/*========================================================================
20 *************************************************************/
21
22
23
24#ifndef _STORE_STORLCKB_HXX_
25#define _STORE_STORLCKB_HXX_ "$Revision$"
26
27#include "sal/types.h"

--- 7 unchanged lines hidden (view full) ---

35
36namespace store
37{
38
39struct OStoreDataPageData;
40struct OStoreDirectoryPageData;
41
42/*========================================================================
43 *
44 * OStoreLockBytes interface.
43 * OStoreLockBytes interface.
45 *
46 *======================================================================*/
47class OStoreLockBytes : public store::OStoreObject
48{
49public:
50 /** Construction.
51 */
52 OStoreLockBytes (void);
53

--- 43 unchanged lines hidden (view full) ---

97
98 /** setSize.
99 * @param nSize [in]
100 * @return store_E_None upon success
101 */
102 storeError setSize (sal_uInt32 nSize);
103
104 /** stat.
44 *======================================================================*/
45class OStoreLockBytes : public store::OStoreObject
46{
47public:
48 /** Construction.
49 */
50 OStoreLockBytes (void);
51

--- 43 unchanged lines hidden (view full) ---

95
96 /** setSize.
97 * @param nSize [in]
98 * @return store_E_None upon success
99 */
100 storeError setSize (sal_uInt32 nSize);
101
102 /** stat.
105 * @paran rnSize [out]
103 * @param rnSize [out]
106 * @return store_E_None upon success
107 */
108 storeError stat (sal_uInt32 &rnSize);
109
110 /** IStoreHandle.
111 */
112 virtual sal_Bool SAL_CALL isKindOf (sal_uInt32 nMagic);
113

--- 14 unchanged lines hidden (view full) ---

128
129 /** Representation.
130 */
131 rtl::Reference<OStorePageManager> m_xManager;
132
133 typedef OStoreDataPageData data;
134 typedef OStoreDirectoryPageData inode;
135
104 * @return store_E_None upon success
105 */
106 storeError stat (sal_uInt32 &rnSize);
107
108 /** IStoreHandle.
109 */
110 virtual sal_Bool SAL_CALL isKindOf (sal_uInt32 nMagic);
111

--- 14 unchanged lines hidden (view full) ---

126
127 /** Representation.
128 */
129 rtl::Reference<OStorePageManager> m_xManager;
130
131 typedef OStoreDataPageData data;
132 typedef OStoreDirectoryPageData inode;
133
136 typedef PageHolderObject< inode > inode_holder_type;
137 inode_holder_type m_xNode;
134 typedef PageHolderObject< inode > inode_holder_type;
135 inode_holder_type m_xNode;
138
139 bool m_bWriteable;
140
141 /** Not implemented.
142 */
143 OStoreLockBytes (const OStoreLockBytes&);
144 OStoreLockBytes& operator= (const OStoreLockBytes&);
145};

--- 4 unchanged lines hidden (view full) ---

150 if (pHandle && pHandle->isKindOf (OStoreLockBytes::m_nTypeId))
151 {
152 // Handle is kind of OStoreLockBytes.
153 return static_cast<OStoreLockBytes*>(pHandle);
154 }
155 return 0;
156}
157
136
137 bool m_bWriteable;
138
139 /** Not implemented.
140 */
141 OStoreLockBytes (const OStoreLockBytes&);
142 OStoreLockBytes& operator= (const OStoreLockBytes&);
143};

--- 4 unchanged lines hidden (view full) ---

148 if (pHandle && pHandle->isKindOf (OStoreLockBytes::m_nTypeId))
149 {
150 // Handle is kind of OStoreLockBytes.
151 return static_cast<OStoreLockBytes*>(pHandle);
152 }
153 return 0;
154}
155
158/*========================================================================
159 *
160 * The End.
161 *
162 *======================================================================*/
163
164} // namespace store
165
166#endif /* !_STORE_STORLCKB_HXX_ */
167
156} // namespace store
157
158#endif /* !_STORE_STORLCKB_HXX_ */
159
160/* vim: set noet sw=4 ts=4: */