// DICOMSRV.h : main header file for the DICOMSRV application // #ifndef _DICOMSRV_H_ #define _DICOMSRV_H_ #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols #include #include "..\..\..\..\include\classlib\ltwrappr.h" #include "..\..\..\..\include\ltdic.h" #include "..\..\..\..\include\ltlck.h" ///////////////////////////////////////////////////////////////////////////// // CDICOMSRVApp: // See DICOMSRV.cpp for the implementation of this class // #define SERVER_SETTINGS_FILENAME "CLSrv.ini" #define CLIENTS_LIST_FILENAME "CLSrvCln.ini" #define EVENTS_LOG_FILENAME "CLSrvLog.txt" #define DEFAULT_IMAGES_FOLDERNAME "CLSrvImg" #define DEFAULT_TEMP_FOLDERNAME "Temp" #define DEFAULT_LOGS_FOLDERNAME "Log" #define MDB_FILENAME "LeadDicm.mdb" #define SAMPLE_DICOM_IMAGES { "Image1.dic", \ "Image2.dic", \ "Image3.dic" } class CDICOMSRVApp : public CWinApp { public: CDICOMSRVApp(); CString m_sApplicationFolder; CString m_sConnectionString; BOOL m_bSaveServerSettings; CString m_sImagesFolder; CString m_sTempFilesFolder; CString m_sServerAETitle; UINT m_uServerPort; int m_nTimeOut; int m_nMaxClients; BOOL m_bGenerateEventsLogFile; BOOL m_bSaveReceivedCSs; BOOL m_bSaveReceivedDSs; BOOL m_bSaveSentDSs; HWND m_hWndParent; BOOL m_bValidPrivateKeyPassword; CString m_strPrivateKeyPassword; CString m_sLogFolder; BOOL SaveServerSettings() const; BOOL LoadServerSettings(); BOOL GetFolder(HWND hWndOwner, CString& sSelectedFolder, LPCTSTR pszTitle = TEXT("Select a folder:")); BOOL PrepareFolder(CString& sFolder, LPCTSTR pszAlternativeName = NULL); BOOL EmptyDatabase() const; void SaveSet(LDicomDS* pSet, BOOL bDataSet, BOOL bReceived , CString *pResultFile) const; L_VOID GetCertName(LPCSTR pszFileName, CString& strCACertName); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDICOMSRVApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CDICOMSRVApp) // NOTE - the ClassWizard will add and remove member functions here. // DO NOT EDIT what you see in these blocks of generated code ! //}}AFX_MSG DECLARE_MESSAGE_MAP() private: BOOL PrepareDatabase(CString& sMdbFolder); BOOL GetFile(LPCTSTR pszFilter, LPCTSTR pszTitle, CString& sFile) const; BOOL GetNewFilename(const CString& sExistingDicomFile, CString& sNewFilename) const; BOOL SaveSetting(CFile& File, const CString& sSetting) const; BOOL LoadSetting(CFile& File, CString& sSetting); }; #endif _DICOMSRV_H_ /////////////////////////////////////////////////////////////////////////////