// NetDlg.h : header file // #if !defined(AFX_NETDLG_H__1FB59947_595A_11D3_A335_00105A07EA4A__INCLUDED_) #define AFX_NETDLG_H__1FB59947_595A_11D3_A335_00105A07EA4A__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 ///////////////////////////////////////////////////////////////////////////// // CNetDlg dialog #include "client.h" #include "NetSecurityDlg.h" #define IDC_TIMER 800 #define IDC_BITMAP 801 enum { QUERY_PATIENT_ROOT, QUERY_STUDY_ROOT, QUERY_PATIENT_STUDY_ONLY, }; class CNetDlg : public CDialog { // Construction public: CNetDlg(CWnd* pParent = NULL); // standard constructor ~CNetDlg() { delete m_pDS; delete m_Client; delete m_ClientTLS; delete m_ClientISCL; } L_VOID ConvertError(L_INT nError, CString& strError); L_BOOL DisplayImage(pDICOMELEMENT pImageDR); LDicomDS* m_pDS; L_INT m_nQueryMethod; LBitmapWindow m_Bitmap; L_BOOL m_bZoom; HTREEITEM m_hItem; L_INT32 m_SecurityMode; L_UINT64 m_ISCLAuthKeys[8]; L_UINT m_ISCLAuthCurrentKey; L_UINT32 m_ISCLAuthAlg; L_UINT64 m_ISCLEncKeys[8]; L_UINT m_ISCLEncCurrentKey; L_UINT32 m_ISCLEncAlg; L_UINT32 m_ISCLEncSign; CString m_strFolder; // Where the received files are to be stored CString m_strExtension; // The extension used CString m_strTempFilesFolder; // The folder used for temporary files // Dialog Data //{{AFX_DATA(CNetDlg) enum { IDD = IDD_NETAPP_DIALOG }; CTreeCtrl m_Message; CTreeCtrl m_Key; CTreeCtrl m_Dir; CListCtrl m_Session; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CNetDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; CImageList m_SessionIcon; L_INT m_nSessionIndex; L_UINT32 m_nTimeout; LDicomAssociate m_Associate; CNetClient* m_Client; CNetClient* m_ClientISCL; CNetClient* m_ClientTLS; L_UCHAR m_nPresentationID; L_UINT16 m_nMessageID; CString m_strLoadPath; L_BOOL OpenDlg (CString strTitle, BOOL bLoad, CString &strName, CString &strPath); L_VOID LoadConfig (); L_VOID SaveConfig (); L_BOOL LoadString (CFile *File, CString &strText); L_BOOL LoadNumber (CFile *File, L_VOID *pNumber, L_UINT32 nSize); L_VOID SaveString (CFile *File, CString strText); L_VOID SaveString (CFile *File, L_CHAR *pszText); L_VOID SaveNumber (CFile *File, L_VOID *pNumber, L_UINT32 nSize); L_VOID GetFileConfig (CString &strName); L_VOID CopyTagKey (LDicomDS *pSrcDS, LDicomDS *pDstDS, pDICOMELEMENT pElement, CString strKey, L_UINT32 nTag); L_BOOL CheckAvailability(pDICOMELEMENT pImageDR); L_BOOL ChangeTransferSyntax(LDicomDS& DataSet, LDicomAssociate& Associate); L_VOID InitializeOptions(); L_INT SaveToFileSettings(); L_INT LoadFromFileSettings(); void LoadDefaultSettings(); // Generated message map functions //{{AFX_MSG(CNetDlg) virtual BOOL OnInitDialog(); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnClose(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnDblclkSession(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDeleteitemSession(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnDblclkDir(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnSelchangedDir(NMHDR* pNMHDR, LRESULT* pResult); afx_msg void OnSessionConnect(); afx_msg void OnSessionDisconnect(); afx_msg void OnSessionInsert(); afx_msg void OnSessionModify(); afx_msg void OnSessionDelete(); afx_msg void OnSessionInfo(); afx_msg void OnSessionExit(); afx_msg void OnViewNormal(); afx_msg void OnViewFit(); afx_msg void OnCommandCEcho(); afx_msg void OnCommandCStore(); afx_msg void OnCommandCFindPatientRoot(); afx_msg void OnCommandCFindStudyRoot(); afx_msg void OnCommandCFindPatientStudyOnly(); afx_msg void OnCommandCCancel(); afx_msg void OnPreferencesAssociation(); afx_msg void OnPreferencesUID(); afx_msg void OnPaletteChanged(CWnd* pFocusWnd); afx_msg BOOL OnQueryNewPalette(); afx_msg void OnSysColorChange(); afx_msg void OnSecuritySettings(); afx_msg void OnSecurityNosecuremode(); afx_msg void OnSecurityIsclsecuremode(); afx_msg void OnSecurityTlssecuremode(); afx_msg void OnPreferencesOptions(); afx_msg void OnCommandCMove(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_NETDLG_H__1FB59947_595A_11D3_A335_00105A07EA4A__INCLUDED_)