1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 #include <sal/types.h>
28 /** PageSize (recommended) default.
31 constexpr sal_uInt16 STORE_DEFAULT_PAGESIZE
= 0x0400;
34 /** PageSize (enforced) limits.
37 constexpr sal_uInt16 STORE_MINIMUM_PAGESIZE
= 0x0200;
38 constexpr sal_uInt16 STORE_MAXIMUM_PAGESIZE
= 0x8000;
41 /** NameSize (enforced) limit.
43 @see store_E_NameTooLong
45 constexpr auto STORE_MAXIMUM_NAMESIZE
= 256;
48 /** Attributes (predefined).
51 constexpr sal_uInt32 STORE_ATTRIB_ISLINK
= 0x10000000;
52 constexpr sal_uInt32 STORE_ATTRIB_ISDIR
= 0x20000000;
53 constexpr sal_uInt32 STORE_ATTRIB_ISFILE
= 0x40000000;
56 /** Access Mode enumeration.
58 @see store_openDirectory()
59 @see store_openStream()
61 enum class storeAccessMode
66 FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
70 /** Error Code enumeration.
75 store_E_AccessViolation
,
76 store_E_LockingViolation
,
80 store_E_InvalidAccess
,
81 store_E_InvalidHandle
,
82 store_E_InvalidParameter
,
83 store_E_InvalidChecksum
,
84 store_E_AlreadyExists
,
96 store_E_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
100 /** Find Data structure.
101 @see store_findFirst()
102 @see store_findNext()
109 sal_Unicode m_pszName
[STORE_MAXIMUM_NAMESIZE
];
119 sal_uInt32 m_nAttrib
;
121 /** Reserved for internal use.
123 sal_uInt32 m_nReserved
;
130 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */