My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
profile.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org. If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #ifndef _OSL_PROFILE_H_
30 #define _OSL_PROFILE_H_
31 
32 #include <sal/types.h>
33 #include <rtl/ustring.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 typedef sal_uInt32 oslProfileOption;
40 
41 #define osl_Profile_DEFAULT 0x0000
42 #define osl_Profile_SYSTEM 0x0001 /* use system depended functinality */
43 #define osl_Profile_READLOCK 0x0002 /* lock file for reading */
44 #define osl_Profile_WRITELOCK 0x0004 /* lock file for writing */
45 #define osl_Profile_FLUSHWRITE 0x0010 /* writing only with flush */
46 
47 
48 typedef void* oslProfile;
49 
55 SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
56  rtl_uString *strProfileName, oslProfileOption Options);
57 
64  oslProfile Profile);
65 
66 
71  oslProfile Profile);
76  oslProfile Profile,
77  const sal_Char* pszSection, const sal_Char* pszEntry,
78  sal_Char* pszString, sal_uInt32 MaxLen,
79  const sal_Char* pszDefault);
84  oslProfile Profile,
85  const sal_Char* pszSection, const sal_Char* pszEntry,
86  sal_Bool Default);
90 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
91  oslProfile Profile,
92  const sal_Char* pszSection, const sal_Char* pszEntry,
93  sal_uInt32 FirstId, const sal_Char* Strings[],
94  sal_uInt32 Default);
95 
100  oslProfile Profile,
101  const sal_Char* pszSection, const sal_Char* pszEntry,
102  const sal_Char* pszString);
107  oslProfile Profile,
108  const sal_Char* pszSection, const sal_Char* pszEntry,
109  sal_Bool Value);
114  oslProfile Profile,
115  const sal_Char* pszSection, const sal_Char* pszEntry,
116  sal_uInt32 FirstId, const sal_Char* Strings[],
117  sal_uInt32 Value);
118 
125  oslProfile Profile,
126  const sal_Char *pszSection, const sal_Char *pszEntry);
127 
133 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
134  oslProfile Profile, const sal_Char *pszSection,
135  sal_Char* pszBuffer, sal_uInt32 MaxLen);
136 
142 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
143  oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen);
144 
145 #ifdef __cplusplus
146 }
147 #endif
148 
149 #endif /* _OSL_PROFILE_H_ */
150 
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */