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  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 
00029 #ifndef _STORE_TYPES_H_
00030 #define _STORE_TYPES_H_
00031 
00032 #include <sal/types.h>
00033 #include <rtl/ustring.h>
00034 
00035 #ifdef __cplusplus
00036 extern "C" {
00037 #endif
00038 
00042 #define STORE_DEFAULT_PAGESIZE ((sal_uInt16)0x0400)
00043 
00044 
00048 #define STORE_MINIMUM_PAGESIZE ((sal_uInt16)0x0200)
00049 #define STORE_MAXIMUM_PAGESIZE ((sal_uInt16)0x8000)
00050 
00051 
00056 #define STORE_MAXIMUM_NAMESIZE 256
00057 
00058 
00062 #define STORE_ATTRIB_ISLINK  ((sal_uInt32)0x10000000)
00063 #define STORE_ATTRIB_ISDIR   ((sal_uInt32)0x20000000)
00064 #define STORE_ATTRIB_ISFILE  ((sal_uInt32)0x40000000)
00065 
00066 
00072 enum __store_AccessMode
00073 {
00074     store_AccessCreate,
00075     store_AccessReadCreate,
00076     store_AccessReadWrite,
00077     store_AccessReadOnly,
00078     store_Access_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00079 };
00080 
00083 typedef enum __store_AccessMode storeAccessMode;
00084 
00085 
00088 enum __store_Error
00089 {
00090     store_E_None = 0,
00091     store_E_AccessViolation,
00092     store_E_LockingViolation,
00093     store_E_CantSeek,
00094     store_E_CantRead,
00095     store_E_CantWrite,
00096     store_E_InvalidAccess,
00097     store_E_InvalidHandle,
00098     store_E_InvalidParameter,
00099     store_E_InvalidChecksum,
00100     store_E_AlreadyExists,
00101     store_E_NotExists,
00102     store_E_NotDirectory,
00103     store_E_NotFile,
00104     store_E_NoMoreFiles,
00105     store_E_NameTooLong,
00106     store_E_OutOfMemory,
00107     store_E_OutOfSpace,
00108     store_E_Pending,
00109     store_E_WrongFormat,
00110     store_E_WrongVersion,
00111     store_E_Unknown,
00112     store_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
00113 };
00114 
00117 typedef enum __store_Error storeError;
00118 
00119 
00124 struct __store_FindData
00125 {
00129     sal_Unicode m_pszName[STORE_MAXIMUM_NAMESIZE];
00130 
00134     sal_Int32 m_nLength;
00135 
00139     sal_uInt32 m_nAttrib;
00140 
00145     sal_uInt32 m_nSize;
00146 
00149     sal_uInt32 m_nReserved;
00150 };
00151 
00154 typedef struct __store_FindData storeFindData;
00155 
00156 
00157 /*========================================================================
00158  *
00159  * The End.
00160  *
00161  *======================================================================*/
00162 
00163 #ifdef __cplusplus
00164 }
00165 #endif
00166 
00167 #endif /* _STORE_TYPES_H_ */
00168 
00169 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines