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
00030
00031
00032
00033
00034 #ifndef WlmTypeDefinitions_h
00035 #define WlmTypeDefinitions_h
00036
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/dcmdata/dctagkey.h"
00039
00041 enum WlmDataSourceStatusType
00042 {
00043 WLM_REFUSED_OUT_OF_RESOURCES = 0xa700,
00044 WLM_FAILED_IDENTIFIER_DOES_NOT_MATCH_SOP_CLASS = 0xa900,
00045 WLM_FAILED_UNABLE_TO_PROCESS = 0xc000,
00046 WLM_CANCEL = 0xfe00,
00047 WLM_SUCCESS = 0x0000,
00048 WLM_PENDING = 0xff00,
00049 WLM_PENDING_WARNING = 0xff01
00050 };
00051
00053 enum WlmDataSourceType
00054 {
00055 DATA_SOURCE_IS_DATABASE,
00056 DATA_SOURCE_IS_DATA_FILES,
00057 DATA_SOURCE_IS_PKI_FILE
00058 };
00059
00061 enum WlmDatabaseType
00062 {
00063 WLM_DATABASE_TYPE_UNKNOWN,
00064 WLM_DATABASE_ORACLE
00065 };
00066
00068 enum WlmReturnedCharacterSetType
00069 {
00070 RETURN_NO_CHARACTER_SET,
00071 RETURN_CHARACTER_SET_ISO_IR_100
00072 };
00073
00075 #define LOCKFILENAME "lockfile"
00076
00078 struct WlmProcessSlotType
00079 {
00081 DIC_NODENAME peerName;
00083 DIC_AE callingAETitle;
00085 DIC_AE calledAETitle;
00087 int processId;
00089 time_t startTime;
00091 OFBool hasStorageAbility;
00093 WlmProcessSlotType *next;
00094 };
00095
00097 struct WlmProcessTableType
00098 {
00100 int pcnt;
00102 WlmProcessSlotType *plist;
00103 };
00104
00106 enum WlmRefuseReasonType
00107 {
00108 WLM_TOO_MANY_ASSOCIATIONS,
00109 WLM_CANNOT_FORK,
00110 WLM_BAD_APP_CONTEXT,
00111 WLM_BAD_AE_SERVICE,
00112 WLM_FORCED,
00113 WLM_NO_IC_UID
00114 };
00115
00117 const OFConditionConst WLM_ECC_InsufficientPortPrivileges ( OFM_dcmwlm, 1, OF_error, "Insufficient privileges to listen to port.");
00118 const OFConditionConst WLM_ECC_InitializationOfNetworkConnectionFailed ( OFM_dcmwlm, 2, OF_error, "Initialization of network connection failed.");
00119 const OFConditionConst WLM_ECC_TerminationOfNetworkConnectionFailed ( OFM_dcmwlm, 3, OF_error, "Termination of network connection failed.");
00120 const OFConditionConst WLM_ECC_DatabaseStatementConfigFilesNotExistent ( OFM_dcmwlm, 4, OF_error, "Database statement configuration files not existent.");
00121 const OFConditionConst WLM_ECC_CannotConnectToDataSource ( OFM_dcmwlm, 5, OF_error, "Cannot connect to data source.");
00122
00124 const OFCondition WLM_EC_InsufficientPortPrivileges ( WLM_ECC_InsufficientPortPrivileges );
00125
00127 const OFCondition WLM_EC_InitializationOfNetworkConnectionFailed ( WLM_ECC_InitializationOfNetworkConnectionFailed );
00128
00130 const OFCondition WLM_EC_TerminationOfNetworkConnectionFailed ( WLM_ECC_TerminationOfNetworkConnectionFailed );
00131
00133 const OFCondition WLM_EC_DatabaseStatementConfigFilesNotExistent ( WLM_ECC_DatabaseStatementConfigFilesNotExistent );
00134
00136 const OFCondition WLM_EC_CannotConnectToDataSource ( WLM_ECC_CannotConnectToDataSource );
00137
00139 #define NUMBER_OF_SUPPORTED_MATCHING_KEY_ATTRIBUTES 15
00140
00142 struct WlmSuperiorSequenceInfoType
00143 {
00145 DcmTagKey sequenceTag;
00147 unsigned long numOfItems;
00149 unsigned long currentItem;
00150 };
00151
00152
00153 #endif
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