12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- /***************************************************************************
- * E-Com Technology Ltd.
- *
- * ECOMPACS DICOM Utility Libraries
- ***************************************************************************/
- #ifndef _INCLUDE_DICOM_SERVER_
- #define _INCLUDE_DICOM_SERVER_
- #pragma warning (disable : 4251)
- //////////////////////////////////////////////////////////////////////
- // DICOMServer Class
- class DICOM_API DICOMServer
- {
- protected:
- static BOOL Inited;
- static DDateTime StartTime;
- static DDateTime StopTime;
- friend BOOL SystemPrepare (void);
- public:
- DICOMServer ();
- virtual ~DICOMServer ();
- public:
- enum {
- Client = 1 << 0,
- KillDeadwood = 1 << 1,
- Worklist = 1 << 2,
- };
- static BOOL Prepare (void);
- static BOOL Quit (void);
- static BOOL StopAllServer (void);
- static BOOL IsInited (void) { return Inited; }
- static BOOL SetLogFileName (const char * LogFileName);
- static BOOL SetLogFileSize (long Size);
- static BOOL OpenDatabase (void);
- static BOOL CloseDatabase (void);
- BOOL StartServer (UINT ServerID, ServerPriority Priority = SERVER_PRIORITY_NORMAL);
- BOOL StopServer (UINT ServerID);
- BOOL SuspendServer (UINT ServerID);
- BOOL ResumeServer (UINT ServerID);
- BOOL RestartServer (UINT ServerID);
- ServerPriority GetServerPriority (UINT ServerID) const;
- ServerStatus GetServerStatus (UINT ServerID) const;
- BOOL SetServerPriority (UINT ServerID, ServerPriority Priority);
- static const DDateTime * GetStartTime (void) { return &StartTime ; }
- static const DDateTime * GetStopTime (void) { return &StopTime ; }
- };
- #endif
|