00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _OSL_PROFILE_H_
00021 #define _OSL_PROFILE_H_
00022
00023 #include "sal/config.h"
00024
00025 #include "rtl/ustring.h"
00026 #include "sal/saldllapi.h"
00027 #include "sal/types.h"
00028
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032
00033 typedef sal_uInt32 oslProfileOption;
00034
00035 #define osl_Profile_DEFAULT 0x0000
00036 #define osl_Profile_SYSTEM 0x0001
00037 #define osl_Profile_READLOCK 0x0002
00038 #define osl_Profile_WRITELOCK 0x0004
00039 #define osl_Profile_FLUSHWRITE 0x0010
00040
00041
00042 typedef void* oslProfile;
00043
00049 SAL_DLLPUBLIC oslProfile SAL_CALL osl_openProfile(
00050 rtl_uString *strProfileName, oslProfileOption Options);
00051
00057 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_closeProfile(
00058 oslProfile Profile);
00059
00060
00064 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_flushProfile(
00065 oslProfile Profile);
00069 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileString(
00070 oslProfile Profile,
00071 const sal_Char* pszSection, const sal_Char* pszEntry,
00072 sal_Char* pszString, sal_uInt32 MaxLen,
00073 const sal_Char* pszDefault);
00077 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_readProfileBool(
00078 oslProfile Profile,
00079 const sal_Char* pszSection, const sal_Char* pszEntry,
00080 sal_Bool Default);
00084 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_readProfileIdent(
00085 oslProfile Profile,
00086 const sal_Char* pszSection, const sal_Char* pszEntry,
00087 sal_uInt32 FirstId, const sal_Char* Strings[],
00088 sal_uInt32 Default);
00089
00093 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileString(
00094 oslProfile Profile,
00095 const sal_Char* pszSection, const sal_Char* pszEntry,
00096 const sal_Char* pszString);
00100 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileBool(
00101 oslProfile Profile,
00102 const sal_Char* pszSection, const sal_Char* pszEntry,
00103 sal_Bool Value);
00107 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_writeProfileIdent(
00108 oslProfile Profile,
00109 const sal_Char* pszSection, const sal_Char* pszEntry,
00110 sal_uInt32 FirstId, const sal_Char* Strings[],
00111 sal_uInt32 Value);
00112
00118 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_removeProfileEntry(
00119 oslProfile Profile,
00120 const sal_Char *pszSection, const sal_Char *pszEntry);
00121
00127 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSectionEntries(
00128 oslProfile Profile, const sal_Char *pszSection,
00129 sal_Char* pszBuffer, sal_uInt32 MaxLen);
00130
00136 SAL_DLLPUBLIC sal_uInt32 SAL_CALL osl_getProfileSections(
00137 oslProfile Profile, sal_Char* pszBuffer, sal_uInt32 MaxLen);
00138
00139 #ifdef __cplusplus
00140 }
00141 #endif
00142
00143 #endif
00144
00145