3 #ifndef __uwe_datasource_h
4 #define __uwe_datasource_h
6 #include <mix/portability.h>
8 #include <mix/ErrCodes.h>
11 #include <mix/IniFile.hpp>
16 #define UDSLIST_DSName "DSName"
17 #define UDSLIST_Mounted "Mounted"
18 #define UDSLIST_Shown "Shown"
19 #define UDSLIST_DrvName "DriverName"
20 #define UDSLIST_DBLoc "DataBaseLocation"
21 #define UDSLIST_AltDBLoc "AltDBLocation"
22 #define WE_StartupMounted_ENV UDSLIST_Mounted
23 #define WE_StartupShown_ENV UDSLIST_Shown
26 #define UDSLIST_DrvLDB4Sign "univers_ldb_4."
27 #define UDSLIST_DrvLDB5Sign "univers_ldb_5."
30 #define WE_DATA_DIR "DATA"
31 #define WE_JOBS_DIR "JOBS"
32 #define WE_LOGS_DIR "LOG"
33 #define WE_LOCKS_DIR "LOCKS"
34 #define WE_HCOPIES_DIR "HCOPIES"
35 #define WE_REPORT_DIR "REPORT"
36 #define WE_ARCHIVE_DIR "ARCHIVE"
88 typedef void* UweDSHandle;
99 UNIVERS_API ErrCode CALLSPEC UweLoadListOfDS (UweDSHandle* pHandle,
106 UNIVERS_API ErrCode CALLSPEC UweScanDSFirst (UweDSHandle pHandle,
112 UNIVERS_API ErrCode CALLSPEC UweScanDSNext (UweDSHandle pHandle,
118 UNIVERS_API ErrCode CALLSPEC UweFindProjectDS (UweDSHandle pHandle,
119 const char* szProject,
125 UNIVERS_API ErrCode CALLSPEC
126 UweCreateProjectDS (
const char* szProject,
131 UNIVERS_API
void CALLSPEC UweReleaseListOfDS (UweDSHandle* pHandle);
143 UNIVERS_API ErrCode CALLSPEC UweSetCurrentDS (
const char* szDataSource);
158 #define UDS_PROP_SHOWN (1<<0)
164 UNIVERS_API ErrCode CALLSPEC UweChangeDSInfo (UweDSHandle pHandle,
170 UNIVERS_API ErrCode CALLSPEC UweSaveDSUserConfig (UweDSHandle pHandle);
198 UNIVERS_API ErrCode CALLSPEC UweAppendLDB5DS (
IniFile* dsList);
202 UNIVERS_API ErrCode CALLSPEC UweAppendLDB4DS (
IniFile* dsList);
char * szDrvOptions
Definition: uwe_datasource.h:69
char * szAltDBLoc
Definition: uwe_datasource.h:64
char * szDSName
Definition: uwe_datasource.h:47
char * szDrvName
Definition: uwe_datasource.h:67
Logic bMounted
Definition: uwe_datasource.h:54
int dbVersion
Definition: uwe_datasource.h:49
Logic bShown
Definition: uwe_datasource.h:59
char * szDBLoc
Definition: uwe_datasource.h:62
char * szConnOptions
Definition: uwe_datasource.h:68
int nProjList
Definition: uwe_datasource.h:71
STRLIST lszProjList
Definition: uwe_datasource.h:76
Class for operating with ini-file which contains sections.
Definition: IniFile.hpp:37
Definition: uwe_datasource.h:45