LibreOffice
LibreOffice 24.2 SDK C/C++ API Reference
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  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 /*
21  * This file is part of LibreOffice published API.
22  */
23 
24 #ifndef INCLUDED_OSL_PROFILE_H
25 #define INCLUDED_OSL_PROFILE_H
26 
27 #include "sal/config.h"
28 
29 #include "rtl/ustring.h"
30 #include "sal/saldllapi.h"
31 #include "sal/types.h"
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 typedef sal_uInt32 oslProfileOption;
38 
39 #define osl_Profile_DEFAULT 0x0000
40 #define osl_Profile_SYSTEM 0x0001 /* use system depended functionality */
41 #define osl_Profile_READLOCK 0x0002 /* lock file for reading */
42 #define osl_Profile_WRITELOCK 0x0004 /* lock file for writing */
43 #define osl_Profile_FLUSHWRITE 0x0010 /* writing only with flush */
44 
45 
46 typedef void* oslProfile;
47 
54  rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD;
55 
62  oslProfile Profile) SAL_COLD;
63 
69  oslProfile Profile) SAL_COLD;
74  oslProfile Profile,
75  const char* pszSection, const char* pszEntry,
76  char* pszString, sal_uInt32 MaxLen,
77  const char* pszDefault) SAL_COLD;
82  oslProfile Profile,
83  const char* pszSection, const char* pszEntry,
84  sal_Bool Default) SAL_COLD;
88 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
89  oslProfile Profile,
90  const char* pszSection, const char* pszEntry,
91  sal_uInt32 FirstId, const char* Strings[],
92  sal_uInt32 Default) SAL_COLD;
93 
98  oslProfile Profile,
99  const char* pszSection, const char* pszEntry,
100  const char* pszString) SAL_COLD;
101 
106  oslProfile Profile,
107  const char* pszSection, const char* pszEntry,
108  sal_Bool Value) SAL_COLD;
109 
114  oslProfile Profile,
115  const char* pszSection, const char* pszEntry,
116  sal_uInt32 FirstId, const char* Strings[],
117  sal_uInt32 Value) SAL_COLD;
118 
125  oslProfile Profile,
126  const char *pszSection, const char *pszEntry) SAL_COLD;
127 
133 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
134  oslProfile Profile, const char *pszSection,
135  char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
136 
142 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
143  oslProfile Profile, char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
144 
145 #ifdef __cplusplus
146 }
147 #endif
148 
149 #endif // INCLUDED_OSL_PROFILE_H
150 
151 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SAL_DLLPUBLIC sal_uInt32 osl_readProfileIdent(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_uInt32 FirstId, const char *Strings[], sal_uInt32 Default) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_removeProfileEntry(oslProfile Profile, const char *pszSection, const char *pszEntry) SAL_COLD
Deprecated API.
void * oslProfile
Definition: profile.h:46
#define SAL_DLLPUBLIC
Definition: saldllapi.h:34
SAL_DLLPUBLIC sal_Bool osl_flushProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_writeProfileString(oslProfile Profile, const char *pszSection, const char *pszEntry, const char *pszString) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_readProfileString(oslProfile Profile, const char *pszSection, const char *pszEntry, char *pszString, sal_uInt32 MaxLen, const char *pszDefault) SAL_COLD
Deprecated API.
sal_uInt32 oslProfileOption
Definition: profile.h:37
SAL_DLLPUBLIC sal_Bool osl_writeProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Value) SAL_COLD
Deprecated API.
unsigned char sal_Bool
Definition: types.h:38
SAL_DLLPUBLIC sal_Bool osl_writeProfileIdent(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_uInt32 FirstId, const char *Strings[], sal_uInt32 Value) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_closeProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC oslProfile osl_openProfile(rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSectionEntries(oslProfile Profile, const char *pszSection, char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSections(oslProfile Profile, char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_readProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Default) SAL_COLD
Deprecated API.