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 .
20 #ifndef INCLUDED_STORE_TYPES_H
21 #define INCLUDED_STORE_TYPES_H
23 #include <sal/types.h>
29 /** PageSize (recommended) default.
32 #define STORE_DEFAULT_PAGESIZE ((sal_uInt16)0x0400)
35 /** PageSize (enforced) limits.
38 #define STORE_MINIMUM_PAGESIZE ((sal_uInt16)0x0200)
39 #define STORE_MAXIMUM_PAGESIZE ((sal_uInt16)0x8000)
42 /** NameSize (enforced) limit.
44 @see store_E_NameTooLong
46 #define STORE_MAXIMUM_NAMESIZE 256
49 /** Attributes (predefined).
52 #define STORE_ATTRIB_ISLINK ((sal_uInt32)0x10000000)
53 #define STORE_ATTRIB_ISDIR ((sal_uInt32)0x20000000)
54 #define STORE_ATTRIB_ISFILE ((sal_uInt32)0x40000000)
57 /** Access Mode enumeration.
59 @see store_openDirectory()
60 @see store_openStream()
62 enum class storeAccessMode
67 FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
71 /** Error Code enumeration.
76 store_E_AccessViolation
,
77 store_E_LockingViolation
,
81 store_E_InvalidAccess
,
82 store_E_InvalidHandle
,
83 store_E_InvalidParameter
,
84 store_E_InvalidChecksum
,
85 store_E_AlreadyExists
,
97 store_E_FORCE_EQUAL_SIZE
= SAL_MAX_ENUM
101 /** Find Data structure.
102 @see store_findFirst()
103 @see store_findNext()
110 sal_Unicode m_pszName
[STORE_MAXIMUM_NAMESIZE
];
120 sal_uInt32 m_nAttrib
;
122 /** Reserved for internal use.
124 sal_uInt32 m_nReserved
;
131 #endif // INCLUDED_STORE_TYPES_H
133 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */