-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathWindowsSetupDlg.h
86 lines (71 loc) · 2.87 KB
/
WindowsSetupDlg.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
//====================================================================================
// 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_WINDOWSSETUPDLG_H__16957595_BAD8_41CD_B495_3D45DF467B55__INCLUDED_)
#define AFX_WINDOWSSETUPDLG_H__16957595_BAD8_41CD_B495_3D45DF467B55__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// WindowsSetupDlg.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CWindowsSetupDlg dialog
class CWindowsSetupDlg : public CDialog
{
// Construction
public:
CWindowsSetupDlg(CWnd* pParent = NULL); // standard constructor
// Set pointer to an object where to store agent settings filled in in this dialogbox
void SetAgentSetting( CAgentSettings *pSettings);
// Dialog Data
//{{AFX_DATA(CWindowsSetupDlg)
enum { IDD = IDD_WIN_AGENT_SETUP_DIALOG };
CListBox m_ListFiles;
CListBox m_ListPlugins;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CWindowsSetupDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CAgentSettings * m_pSettings;
// Save agent settings into object and user registry
BOOL Save( BOOL bDisplayError = FALSE);
// Remove from registry all files stored under Windows Agent Other Files key
// This allow storing new ones, without searching if value already exists
BOOL RemoveOtherFilesFromRegistry();
// Remove from registry all plugins stored under Windows Agent Plugins Files key
// This allow storing new ones, without searching if value already exists
BOOL RemovePluginsFilesFromRegistry();
// Generated message map functions
//{{AFX_MSG(CWindowsSetupDlg)
virtual BOOL OnInitDialog();
afx_msg void OnWiznext();
afx_msg void OnWizback();
virtual void OnCancel();
afx_msg void OnButtonExe();
afx_msg void OnButtonAdd();
afx_msg void OnButtonRemove();
afx_msg void OnDblclkListFiles();
afx_msg void OnButtonChangeDirectory();
afx_msg void OnClickVerboseLog();
afx_msg void OnClickNoService();
afx_msg void OnClickNoSystray();
afx_msg void OnClickLaunchInventory();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnBnClickedButtonAddPlugin();
afx_msg void OnBnClickedButtonRemovePlugin();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_WINDOWSSETUPDLG_H__16957595_BAD8_41CD_B495_3D45DF467B55__INCLUDED_)