// UDPAdminTool.h : main header file for the UDPADMINTOOL application // #if !defined(AFX_UDPADMINTOOL_H__4EB70265_0F0F_42B0_AA97_294D9949B40B__INCLUDED_) #define AFX_UDPADMINTOOL_H__4EB70265_0F0F_42B0_AA97_294D9949B40B__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols #include "common.h" ///////////////////////////////////////////////////////////////////////////// // CUDPAdminToolApp: // See UDPAdminTool.cpp for the implementation of this class // typedef struct { bool isFlag; bool info; int UDPErrorCnt; int TCPErrorCnt; char FirmwareVersion[64]; char RTSP[64]; char HTTP[64]; char Name[64]; char sIp[64]; char Subnet[64]; char Gate[64]; char Dns[64]; char MAC[64]; char SerialNo[64]; char NickName[64]; char Server[64]; char wwwroot[64]; char ubootver[64]; char dhcp; // 'y' - dhcp, 'n' - static int rev; int rack; int blade; int uptime; int krbuild; // - cjy, 08_0404 17:27 } ClientInformation; class CUDPAdminToolApp : public CWinApp { public: BOOL m_bManual; // is manual ip? ClientInformation m_info; // current selected device information //int m_iNowDevice; // ÇöÀç ¼±ÅÃµÈ µð¹ÙÀ̽ºÀÇ index¹øÈ£ //int m_iListNum[1024]; ClientInformation cinfo[MAXCLIENT]; #ifdef MULTI ClientInformation m_checkedInfo[MAXCLIENT]; ClientInformation m_hiddenInfo[MAXCLIENT]; BOOL bTestMode_; // ÀÎÀÚ·Î test¸¦ ÁÖ¸é È°¼ºÈ­ #endif CUDPAdminToolApp(); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CUDPAdminToolApp) public: virtual BOOL InitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CUDPAdminToolApp) // 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() public: CString GetSelectDeviceName(); // path°ü·Ã CString get_fw_path(); BOOL set_fw_path(CString path); // directory¸¦ ÀÎÀÚ·Î ¼³Á¤ÇÕ´Ï´Ù. CString get_web_path(); BOOL set_web_path(CString path); // directory¸¦ ÀÎÀÚ·Î ¼³Á¤ÇÕ´Ï´Ù. CString get_ocx_path(); BOOL set_ocx_path(CString path); // set file CString get_userfile_path(); BOOL set_userfile_path(CString path); // file CString get_filter(); BOOL set_filter(CString filter); CString get_dome_path(); BOOL set_dome_path(CString path); int get_fw_ver(); BOOL set_fw_ver(int ver); int get_fw_cond(); BOOL set_fw_cond(int cond); // user id login void clear_login_info(); BOOL get_login_auto(); BOOL set_login_auto(BOOL bLogin); // ÀÌ°Ô false°¡ µÇ¸é hash°ªµµ clearµË´Ï´Ù. CString get_login_id(); BOOL set_login_id(CString id); BOOL get_login_hash(char* out_buf, int* size); // size¸¦ 0À¸·Î ÁÖ¸é hash clearÀÔ´Ï´Ù. BOOL set_login_hash(char* buf, int size); // util CString get_value(CString section, CString entry); BOOL set_value(CString section, CString entry, CString value); }; extern CUDPAdminToolApp theApp; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_UDPADMINTOOL_H__4EB70265_0F0F_42B0_AA97_294D9949B40B__INCLUDED_)