AlterOffice
AlterOffice 3.4 SDK C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 #ifndef INCLUDED_OSL_PROFILE_H
5 #define INCLUDED_OSL_PROFILE_H
6 
7 #include "sal/config.h"
8 
9 #include "rtl/ustring.h"
10 #include "sal/saldllapi.h"
11 #include "sal/types.h"
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 typedef sal_uInt32 oslProfileOption;
18 
19 #define osl_Profile_DEFAULT 0x0000
20 #define osl_Profile_SYSTEM 0x0001 /* use system depended functionality */
21 #define osl_Profile_READLOCK 0x0002 /* lock file for reading */
22 #define osl_Profile_WRITELOCK 0x0004 /* lock file for writing */
23 #define osl_Profile_FLUSHWRITE 0x0010 /* writing only with flush */
24 
25 
26 typedef void* oslProfile;
27 
33 SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
34  rtl_uString *strProfileName, oslProfileOption Options) SAL_COLD;
35 
42  oslProfile Profile) SAL_COLD;
43 
49  oslProfile Profile) SAL_COLD;
54  oslProfile Profile,
55  const char* pszSection, const char* pszEntry,
56  char* pszString, sal_uInt32 MaxLen,
57  const char* pszDefault) SAL_COLD;
62  oslProfile Profile,
63  const char* pszSection, const char* pszEntry,
64  sal_Bool Default) SAL_COLD;
68 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
69  oslProfile Profile,
70  const char* pszSection, const char* pszEntry,
71  sal_uInt32 FirstId, const char* Strings[],
72  sal_uInt32 Default) SAL_COLD;
73 
78  oslProfile Profile,
79  const char* pszSection, const char* pszEntry,
80  const char* pszString) SAL_COLD;
81 
86  oslProfile Profile,
87  const char* pszSection, const char* pszEntry,
88  sal_Bool Value) SAL_COLD;
89 
94  oslProfile Profile,
95  const char* pszSection, const char* pszEntry,
96  sal_uInt32 FirstId, const char* Strings[],
97  sal_uInt32 Value) SAL_COLD;
98 
105  oslProfile Profile,
106  const char *pszSection, const char *pszEntry) SAL_COLD;
107 
113 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
114  oslProfile Profile, const char *pszSection,
115  char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
116 
122 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
123  oslProfile Profile, char* pszBuffer, sal_uInt32 MaxLen) SAL_COLD;
124 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif // INCLUDED_OSL_PROFILE_H
130 
131 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
unsigned char sal_Bool
Definition: types.h:18
SAL_DLLPUBLIC sal_Bool osl_flushProfile(oslProfile Profile) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_Bool osl_writeProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Value) SAL_COLD
Deprecated API.
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_readProfileBool(oslProfile Profile, const char *pszSection, const char *pszEntry, sal_Bool Default) 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 oslProfile osl_openProfile(rtl_uString *strProfileName, oslProfileOption Options) 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.
void * oslProfile
Definition: profile.h:26
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_DLLPUBLIC sal_Bool osl_closeProfile(oslProfile Profile) SAL_COLD
Deprecated API.
sal_uInt32 oslProfileOption
Definition: profile.h:17
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_removeProfileEntry(oslProfile Profile, const char *pszSection, const char *pszEntry) SAL_COLD
Deprecated API.
SAL_DLLPUBLIC sal_uInt32 osl_getProfileSections(oslProfile Profile, char *pszBuffer, sal_uInt32 MaxLen) SAL_COLD
Deprecated API.
#define SAL_DLLPUBLIC
Definition: saldllapi.h:14