Icecast2winDlg.h 3.05 KB
Newer Older
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
// Icecast2winDlg.h : header file
//

#if !defined(AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_)
#define AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_

#include "ResizableDialog.h"
#include "TabCtrlSSL.h"
#include "TabPageSSL.h"

#include "ConfigTab.h"
#include "StatsTab.h"
#include "Status.h"
#include "TrayNot.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CIcecast2winDlg dialog

class CIcecast2winDlg : public CResizableDialog
{
// Construction
public:
	time_t serverStart;
	void config_read();
	void config_write();
	void UpdateStatsLists();
	CConfigTab	configTab;
	CStatsTab	statsTab;
	CStatus		statusTab;
	int	m_colSource0Width;
	int	m_colStats0Width;
	int	m_colStats1Width;
	int	m_colGStats0Width;
	int	m_colGStats1Width;
	int	m_colGStats2Width;
	CFont labelFont;
	CBitmap runningBitmap;
	CBitmap stoppedBitmap;
	CTrayNot* m_pTray;
	BOOL m_bHidden;
	int  m_iconSwap;




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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
	void StopServer();
	bool m_isRunning;
	void DisableControl(UINT control);
	void EnableControl(UINT control);
	void getTag(char *pbuf, char *ptag, char *dest);
	CString m_ErrorLog;
	CString m_AccessLog;
	void ParseConfig();
	void LoadConfig();
	CIcecast2winDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CIcecast2winDlg)
	enum { IDD = IDD_ICECAST2WIN_DIALOG };
	CStatic	m_SS;
	CStatic	m_ServerStatusBitmap;
	CStatic	m_iceLogo;
	CButton	m_StartButton;
	CEdit	m_StatsEditCtrl;
	CEdit	m_ConfigEditCtrl;
	CEdit	m_ErrorEditCtrl;
	CEdit	m_AccessEditCtrl;
	CTabCtrlSSL	m_MainTab;
	CString	m_AccessEdit;
	CString	m_ErrorEdit;
	CString	m_ConfigEdit;
	CString	m_ServerStatus;
	CString	m_SourcesConnected;
	CString	m_NumClients;
	FILE	*filep_accesslog;
	FILE	*filep_errorlog;
	CString	m_StatsEdit;
	BOOL	m_Autostart;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CIcecast2winDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CIcecast2winDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangeMaintab(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnFileExit();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnFileStartserver();
	afx_msg void OnFileStopserver();
	afx_msg void OnStart();
	afx_msg void OnClose();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnHidesystray();
	afx_msg void OnHide();
	afx_msg void OnBlankRestore();
	afx_msg LONG OnTrayNotify ( WPARAM wParam, LPARAM lParam );
	afx_msg void OnDestroy();
	afx_msg void OnFileEditconfiguration();
	afx_msg void OnAboutHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_)