-
Notifications
You must be signed in to change notification settings - Fork 4
/
OnvifClientDlg.h
91 lines (75 loc) · 2.31 KB
/
OnvifClientDlg.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// OnvifClientDlg.h : header file
//
#if !defined(AFX_ONVIFCLIENTDLG_H__9F0AC098_47C9_435B_AE0A_C22CB12324D2__INCLUDED_)
#define AFX_ONVIFCLIENTDLG_H__9F0AC098_47C9_435B_AE0A_C22CB12324D2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Device.h"
#include "BaseRetInfo.h"
#include "BaseSoapSecurityInfo.h"
/////////////////////////////////////////////////////////////////////////////
// COnvifClientDlg dialog
class COnvifClientDlg : public CDialog
{
// Construction
public:
COnvifClientDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(COnvifClientDlg)
enum { IDD = IDD_ONVIFCLIENT_DIALOG };
CEdit m_EdtEPAddress;
CComboBox m_ComboServiceAddress;
CComboBox m_ComboMediaProfiles;
CEdit m_EdtMediaUrl;
CEdit m_EdtModel;
CEdit m_EdtManufacture;
CEdit m_EdtMetaVersion;
CEdit m_EdtUser;
CEdit m_EdtType;
CEdit m_EdtPassword;
CListBox m_LBoxScopes;
CListBox m_LBoxDevices;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COnvifClientDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(COnvifClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonSearch();
afx_msg void OnBtnInfo();
afx_msg void OnDblclkListDevice();
afx_msg void OnBtnInfomediauri();
afx_msg void OnBtnProbe();
afx_msg void OnButton1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void clearListBoxDevices();
CString getCString(std::string& value);
void clearEdtText(CWnd& edtWnd);
void clearDeviceText();
void clearDeviceInformation();
void clearMediaInfo();
std::string getServiceAddress();
std::string getSTDStr(CString& theCStr);
BOOL notifyErrorRetInfo(CBaseRetInfo* retInfo);
std::string getWindowTextStr(CWnd& wnd);
std::string getMediaEndPoint();
CBaseSoapSecurityInfo* getSoapSecurityInfo();
void clearServiceAddress();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ONVIFCLIENTDLG_H__9F0AC098_47C9_435B_AE0A_C22CB12324D2__INCLUDED_)