Mercurial > hg > orthanc-webviewer
comparison Orthanc/Core/Enumerations.h @ 90:a54260a7fe59
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2015 13:54:33 +0100 |
parents | bc05500ea317 |
children | 3809121c3290 |
comparison
equal
deleted
inserted
replaced
89:bc05500ea317 | 90:a54260a7fe59 |
---|---|
78 ErrorCode_Unauthorized = 29 /*!< Bad credentials were provided to an HTTP request */, | 78 ErrorCode_Unauthorized = 29 /*!< Bad credentials were provided to an HTTP request */, |
79 ErrorCode_BadFont = 30 /*!< Badly formatted font file */, | 79 ErrorCode_BadFont = 30 /*!< Badly formatted font file */, |
80 ErrorCode_DatabasePlugin = 31 /*!< The plugin implementing a custom database back-end does not fulfill the proper interface */, | 80 ErrorCode_DatabasePlugin = 31 /*!< The plugin implementing a custom database back-end does not fulfill the proper interface */, |
81 ErrorCode_StorageAreaPlugin = 32 /*!< Error in the plugin implementing a custom storage area */, | 81 ErrorCode_StorageAreaPlugin = 32 /*!< Error in the plugin implementing a custom storage area */, |
82 ErrorCode_EmptyRequest = 33 /*!< The request is empty */, | 82 ErrorCode_EmptyRequest = 33 /*!< The request is empty */, |
83 ErrorCode_NotAcceptable = 34 /*!< Cannot send a response which is acceptable according to the Accept HTTP header */, | |
83 ErrorCode_SQLiteNotOpened = 1000 /*!< SQLite: The database is not opened */, | 84 ErrorCode_SQLiteNotOpened = 1000 /*!< SQLite: The database is not opened */, |
84 ErrorCode_SQLiteAlreadyOpened = 1001 /*!< SQLite: Connection is already open */, | 85 ErrorCode_SQLiteAlreadyOpened = 1001 /*!< SQLite: Connection is already open */, |
85 ErrorCode_SQLiteCannotOpen = 1002 /*!< SQLite: Unable to open the database */, | 86 ErrorCode_SQLiteCannotOpen = 1002 /*!< SQLite: Unable to open the database */, |
86 ErrorCode_SQLiteStatementAlreadyUsed = 1003 /*!< SQLite: This cached statement is already being referred to */, | 87 ErrorCode_SQLiteStatementAlreadyUsed = 1003 /*!< SQLite: This cached statement is already being referred to */, |
87 ErrorCode_SQLiteExecute = 1004 /*!< SQLite: Cannot execute a command */, | 88 ErrorCode_SQLiteExecute = 1004 /*!< SQLite: Cannot execute a command */, |
135 ErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, | 136 ErrorCode_StorageAreaAlreadyRegistered = 2036 /*!< Another plugin has already registered a custom storage area */, |
136 ErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, | 137 ErrorCode_DatabaseBackendAlreadyRegistered = 2037 /*!< Another plugin has already registered a custom database back-end */, |
137 ErrorCode_DatabaseNotInitialized = 2038 /*!< Plugin trying to call the database during its initialization */, | 138 ErrorCode_DatabaseNotInitialized = 2038 /*!< Plugin trying to call the database during its initialization */, |
138 ErrorCode_SslDisabled = 2039 /*!< Orthanc has been built without SSL support */, | 139 ErrorCode_SslDisabled = 2039 /*!< Orthanc has been built without SSL support */, |
139 ErrorCode_CannotOrderSlices = 2040 /*!< Unable to order the slices of the series */, | 140 ErrorCode_CannotOrderSlices = 2040 /*!< Unable to order the slices of the series */, |
141 ErrorCode_NoWorklistHandler = 2041 /*!< No request handler factory for DICOM C-Find Modality SCP */, | |
140 ErrorCode_START_PLUGINS = 1000000 | 142 ErrorCode_START_PLUGINS = 1000000 |
141 }; | 143 }; |
142 | 144 |
143 enum LogLevel | 145 enum LogLevel |
144 { | 146 { |
366 | 368 |
367 enum RequestOrigin | 369 enum RequestOrigin |
368 { | 370 { |
369 RequestOrigin_Unknown, | 371 RequestOrigin_Unknown, |
370 RequestOrigin_DicomProtocol, | 372 RequestOrigin_DicomProtocol, |
371 RequestOrigin_Http, | 373 RequestOrigin_RestApi, |
372 RequestOrigin_Plugins, | 374 RequestOrigin_Plugins, |
373 RequestOrigin_Lua | 375 RequestOrigin_Lua |
374 }; | 376 }; |
375 | 377 |
376 | 378 |
452 unsigned int GetBytesPerPixel(PixelFormat format); | 454 unsigned int GetBytesPerPixel(PixelFormat format); |
453 | 455 |
454 bool GetDicomEncoding(Encoding& encoding, | 456 bool GetDicomEncoding(Encoding& encoding, |
455 const char* specificCharacterSet); | 457 const char* specificCharacterSet); |
456 | 458 |
457 const char* GetMimeType(FileContentType type); | |
458 | |
459 const char* GetFileExtension(FileContentType type); | |
460 | |
461 ResourceType GetChildResourceType(ResourceType type); | 459 ResourceType GetChildResourceType(ResourceType type); |
462 | 460 |
463 ResourceType GetParentResourceType(ResourceType type); | 461 ResourceType GetParentResourceType(ResourceType type); |
464 | 462 |
465 DicomModule GetModule(ResourceType type); | 463 DicomModule GetModule(ResourceType type); |
466 | 464 |
467 const char* GetDicomSpecificCharacterSet(Encoding encoding); | 465 const char* GetDicomSpecificCharacterSet(Encoding encoding); |
468 | 466 |
469 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error); | 467 HttpStatus ConvertErrorCodeToHttpStatus(ErrorCode error); |
468 | |
469 bool IsUserContentType(FileContentType type); | |
470 } | 470 } |