00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef WlmTypeDefinitions_h
00030 #define WlmTypeDefinitions_h
00031
00032 #include "dcmtk/config/osconfig.h"
00033 #include "dcmtk/dcmdata/dctagkey.h"
00034 #include "dcmtk/dcmnet/dicom.h"
00035
00037 enum WlmDataSourceStatusType
00038 {
00039 WLM_REFUSED_OUT_OF_RESOURCES = 0xa700,
00040 WLM_FAILED_IDENTIFIER_DOES_NOT_MATCH_SOP_CLASS = 0xa900,
00041 WLM_FAILED_UNABLE_TO_PROCESS = 0xc000,
00042 WLM_CANCEL = 0xfe00,
00043 WLM_SUCCESS = 0x0000,
00044 WLM_PENDING = 0xff00,
00045 WLM_PENDING_WARNING = 0xff01
00046 };
00047
00049 enum WlmDataSourceType
00050 {
00051 DATA_SOURCE_IS_DATABASE,
00052 DATA_SOURCE_IS_DATA_FILES,
00053 DATA_SOURCE_IS_PKI_FILE
00054 };
00055
00057 enum WlmDatabaseType
00058 {
00059 WLM_DATABASE_TYPE_UNKNOWN,
00060 WLM_DATABASE_ORACLE
00061 };
00062
00064 enum WlmReturnedCharacterSetType
00065 {
00066 RETURN_NO_CHARACTER_SET,
00067 RETURN_CHARACTER_SET_ISO_IR_100,
00068 RETURN_CHARACTER_SET_FROM_FILE
00069 };
00070
00072 #define LOCKFILENAME "lockfile"
00073
00075 struct WlmProcessSlotType
00076 {
00078 DIC_NODENAME peerName;
00080 DIC_AE callingAETitle;
00082 DIC_AE calledAETitle;
00084 int processId;
00086 time_t startTime;
00088 OFBool hasStorageAbility;
00089 };
00090
00092 enum WlmRefuseReasonType
00093 {
00094 WLM_TOO_MANY_ASSOCIATIONS,
00095 WLM_CANNOT_FORK,
00096 WLM_BAD_APP_CONTEXT,
00097 WLM_BAD_AE_SERVICE,
00098 WLM_FORCED,
00099 WLM_NO_IC_UID
00100 };
00101
00103 const OFConditionConst WLM_ECC_InsufficientPortPrivileges ( OFM_dcmwlm, 1, OF_error, "Insufficient privileges to listen to port.");
00104 const OFConditionConst WLM_ECC_InitializationOfNetworkConnectionFailed ( OFM_dcmwlm, 2, OF_error, "Initialization of network connection failed.");
00105 const OFConditionConst WLM_ECC_TerminationOfNetworkConnectionFailed ( OFM_dcmwlm, 3, OF_error, "Termination of network connection failed.");
00106 const OFConditionConst WLM_ECC_DatabaseStatementConfigFilesNotExistent ( OFM_dcmwlm, 4, OF_error, "Database statement configuration files not existent.");
00107 const OFConditionConst WLM_ECC_CannotConnectToDataSource ( OFM_dcmwlm, 5, OF_error, "Cannot connect to data source.");
00108
00110 const OFCondition WLM_EC_InsufficientPortPrivileges ( WLM_ECC_InsufficientPortPrivileges );
00111
00113 const OFCondition WLM_EC_InitializationOfNetworkConnectionFailed ( WLM_ECC_InitializationOfNetworkConnectionFailed );
00114
00116 const OFCondition WLM_EC_TerminationOfNetworkConnectionFailed ( WLM_ECC_TerminationOfNetworkConnectionFailed );
00117
00119 const OFCondition WLM_EC_DatabaseStatementConfigFilesNotExistent ( WLM_ECC_DatabaseStatementConfigFilesNotExistent );
00120
00122 const OFCondition WLM_EC_CannotConnectToDataSource ( WLM_ECC_CannotConnectToDataSource );
00123
00125 #define NUMBER_OF_SUPPORTED_MATCHING_KEY_ATTRIBUTES 15
00126
00128 struct WlmSuperiorSequenceInfoType
00129 {
00131 DcmTagKey sequenceTag;
00133 unsigned long numOfItems;
00135 unsigned long currentItem;
00136 };
00137
00138
00139 #endif
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198