-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathSelectHostsDlg.h
More file actions
88 lines (72 loc) · 2.97 KB
/
SelectHostsDlg.h
File metadata and controls
88 lines (72 loc) · 2.97 KB
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
//====================================================================================
// Open Computer and Software Inventory Next Generation
// Copyright (C) 2010 OCS Inventory NG Team. All rights reserved.
// Web: http://www.ocsinventory-ng.org
// This code is open source and may be copied and modified as long as the source
// code is always made freely available.
// Please refer to the General Public Licence V2 http://www.gnu.org/ or Licence.txt
//====================================================================================
#if !defined(AFX_SELECTHOSTSDLG_H__5367C094_F489_4D6F_ABBA_70C4D916E269__INCLUDED_)
#define AFX_SELECTHOSTSDLG_H__5367C094_F489_4D6F_ABBA_70C4D916E269__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelectHostsDlg.h : header file
//
#define MIN_IP_RANGE 0
#define MAX_IP_RANGE 255
/////////////////////////////////////////////////////////////////////////////
// CSelectHostsDlg dialog
class CSelectHostsDlg : public CDialog
{
// Construction
public:
CSelectHostsDlg(CWnd* pParent = NULL); // standard constructor
// Set pointer to a string list where to store name/address of computer to setup
void SetComputerList( CStringList *pList, UINT uOS = AGENT_OS_WINDOWS);
// Dialog Data
//{{AFX_DATA(CSelectHostsDlg)
enum { IDD = IDD_SELECT_HOSTS_DIALOG };
CListBox m_List;
CIPAddressCtrl m_IpTo;
CIPAddressCtrl m_IpFrom;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSelectHostsDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CStringList * m_pComputerList;
UINT m_uOS;
void AddUnixComputer();
void AddWindowsComputer();
// Generated message map functions
//{{AFX_MSG(CSelectHostsDlg)
virtual BOOL OnInitDialog();
afx_msg void OnButtonAdd();
afx_msg void OnButtonRemove();
afx_msg void OnRadioIp();
afx_msg void OnRadioList();
virtual void OnCancel();
afx_msg void OnWiznext();
afx_msg void OnDblclkListComputers();
afx_msg void OnButtonImport();
afx_msg void OnButtonSelectAll();
afx_msg void OnBnClickedButtonActiveDirectory();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
BOOL AddNetwork( UINT nIpFromA, UINT nIpFromB, UINT nIpFromC, UINT nIpFromD, UINT nIpToA, UINT nIpToB, UINT nIpToC, UINT nIpToD);
// Add an address range within a single Class C network
BOOL AddClassC( UINT nIpA, UINT nIpB, UINT nIpC, UINT nIpFromD, UINT nIpToD);
// Add an address range within a single Class B network
BOOL AddClassB( UINT nIpA, UINT nIpB, UINT nIpFromC, UINT nIpFromD, UINT nIpToC, UINT nIpToD);
// Add an address range within a single Class A network
BOOL AddClassA( UINT nIpA, UINT nIpFromB, UINT nIpFromC, UINT nIpFromD, UINT nIpToB, UINT nIpToC, UINT nIpToD);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SELECTHOSTSDLG_H__5367C094_F489_4D6F_ABBA_70C4D916E269__INCLUDED_)