UDK 3.2.7 C/C++ API Reference

store/types.h

Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*
00003  * This file is part of the LibreOffice project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  *
00009  * This file incorporates work covered by the following license notice:
00010  *
00011  *   Licensed to the Apache Software Foundation (ASF) under one or more
00012  *   contributor license agreements. See the NOTICE file distributed
00013  *   with this work for additional information regarding copyright
00014  *   ownership. The ASF licenses this file to you under the Apache
00015  *   License, Version 2.0 (the "License"); you may not use this file
00016  *   except in compliance with the License. You may obtain a copy of
00017  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
00018  */
00019 
00020 #ifndef _STORE_TYPES_H_
00021 #define _STORE_TYPES_H_
00022 
00023 #include <sal/types.h>
00024 #include <rtl/ustring.h>
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif
00029 
00033 #define STORE_DEFAULT_PAGESIZE ((sal_uInt16)0x0400)
00034 
00035 
00039 #define STORE_MINIMUM_PAGESIZE ((sal_uInt16)0x0200)
00040 #define STORE_MAXIMUM_PAGESIZE ((sal_uInt16)0x8000)
00041 
00042 
00047 #define STORE_MAXIMUM_NAMESIZE 256
00048 
00049 
00053 #define STORE_ATTRIB_ISLINK  ((sal_uInt32)0x10000000)
00054 #define STORE_ATTRIB_ISDIR   ((sal_uInt32)0x20000000)
00055 #define STORE_ATTRIB_ISFILE  ((sal_uInt32)0x40000000)
00056 
00057 
00063 enum __store_AccessMode
00064 {
00065     store_AccessCreate,
00066     store_AccessReadCreate,
00067     store_AccessReadWrite,
00068     store_AccessReadOnly,
00069     store_Access_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00070 };
00071 
00074 typedef enum __store_AccessMode storeAccessMode;
00075 
00076 
00079 enum __store_Error
00080 {
00081     store_E_None = 0,
00082     store_E_AccessViolation,
00083     store_E_LockingViolation,
00084     store_E_CantSeek,
00085     store_E_CantRead,
00086     store_E_CantWrite,
00087     store_E_InvalidAccess,
00088     store_E_InvalidHandle,
00089     store_E_InvalidParameter,
00090     store_E_InvalidChecksum,
00091     store_E_AlreadyExists,
00092     store_E_NotExists,
00093     store_E_NotDirectory,
00094     store_E_NotFile,
00095     store_E_NoMoreFiles,
00096     store_E_NameTooLong,
00097     store_E_OutOfMemory,
00098     store_E_OutOfSpace,
00099     store_E_Pending,
00100     store_E_WrongFormat,
00101     store_E_WrongVersion,
00102     store_E_Unknown,
00103     store_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00104 };
00105 
00108 typedef enum __store_Error storeError;
00109 
00110 
00115 struct __store_FindData
00116 {
00120     sal_Unicode m_pszName[STORE_MAXIMUM_NAMESIZE];
00121 
00125     sal_Int32 m_nLength;
00126 
00130     sal_uInt32 m_nAttrib;
00131 
00136     sal_uInt32 m_nSize;
00137 
00140     sal_uInt32 m_nReserved;
00141 };
00142 
00145 typedef struct __store_FindData storeFindData;
00146 
00147 
00148 /*========================================================================
00149  *
00150  * The End.
00151  *
00152  *======================================================================*/
00153 
00154 #ifdef __cplusplus
00155 }
00156 #endif
00157 
00158 #endif /* _STORE_TYPES_H_ */
00159 
00160 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines