-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDeployingDlg.h
More file actions
95 lines (80 loc) · 3.23 KB
/
DeployingDlg.h
File metadata and controls
95 lines (80 loc) · 3.23 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
89
90
91
92
93
94
95
//====================================================================================
// 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_DEPLOYINGDLG_H__6C58DF2D_FA08_4888_84DA_DCC397DFF7F3__INCLUDED_)
#define AFX_DEPLOYINGDLG_H__6C58DF2D_FA08_4888_84DA_DCC397DFF7F3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DeployingDlg.h : header file
//
// Number max of deployment threads
#define OPTIONS_MAX_SIMULTANEOUS_CONNECTIONS _T( "MaxThreads")
#define DEFAULT_MAX_SIMULTANEOUS_CONNECTIONS 10
// Default TimeOut for command execution
#define OPTIONS_COMMAND_TIMEOUT _T( "TimeOut")
#define DEFAULT_COMMAND_TIMEOUT 300000
/////////////////////////////////////////////////////////////////////////////
// CDeployingDlg dialog
class CDeployingDlg : public CDialog
{
// Construction
public:
CDeployingDlg(CWnd* pParent = NULL); // standard constructor
// Set agent settings to use for deploying, either Windows or Unix settings
void SetAgentSetting( CAgentSettings *pSettings);
// Set list of computer to setup
void SetComputerList( CStringList *pList);
// Dialog Data
//{{AFX_DATA(CDeployingDlg)
enum { IDD = IDD_DEPLOYING_DIALOG };
CSliderCtrl m_SliderThreads;
CListBox m_ListBox;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDeployingDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
protected:
// Message Handler allowing thread to update status and listbox content
LRESULT OnMessageHandlerListbox( LPARAM lParam);
LRESULT OnMessageHandlerStatus( LPARAM lParam);
// Message Handler to allow launcher thread retreiving number of allowed threads
LRESULT OnMessageHandlerGetMaxThreads();
// Agent settings to use for deploying, either Windows or Unix settings
CAgentSettings * m_pSettings;
// List of computer to setup
CStringList * m_pComputerList;
// List of computer where setup failed
CStringList m_FailedList;
// Thread used to launch setup thread for each computer
CWinThread* m_pThreadLauncher;
// Max simultaneous connections
UINT m_uMaxThreads;
// Generated message map functions
//{{AFX_MSG(CDeployingDlg)
virtual BOOL OnInitDialog();
afx_msg void OnWizback();
afx_msg void OnWizfinish();
virtual void OnCancel();
afx_msg void OnReleasedcaptureSliderThreads(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnStopThreads();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnButtonSaveLog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnStnClickedStatus();
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DEPLOYINGDLG_H__6C58DF2D_FA08_4888_84DA_DCC397DFF7F3__INCLUDED_)