1 // Icecast2winDlg.h : header file 2 // 3 4 #if !defined(AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_) 5 #define AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_ 6 7 #include "TabCtrlSSL.h" 8 #include "TabPageSSL.h" 9 10 #include "ConfigTab.h" 11 #include "StatsTab.h" 12 #include "Status.h" 13 #include "TrayNot.h" 14 15 #if _MSC_VER > 1000 16 #pragma once 17 #endif // _MSC_VER > 1000 18 19 ///////////////////////////////////////////////////////////////////////////// 20 // CIcecast2winDlg dialog 21 22 class CIcecast2winDlg : public CDialog 23 { 24 // Construction 25 public: 26 time_t serverStart; 27 void config_read(); 28 void config_write(); 29 void UpdateStatsLists(); 30 CConfigTab configTab; 31 CStatsTab statsTab; 32 CStatus statusTab; 33 int m_colSource0Width; 34 int m_colStats0Width; 35 int m_colStats1Width; 36 int m_colGStats0Width; 37 int m_colGStats1Width; 38 int m_colGStats2Width; 39 CFont labelFont; 40 CBitmap runningBitmap; 41 CBitmap stoppedBitmap; 42 CTrayNot* m_pTray; 43 BOOL m_bHidden; 44 int m_iconSwap; 45 46 47 48 49 50 void StopServer(); 51 bool m_isRunning; 52 void DisableControl(UINT control); 53 void EnableControl(UINT control); 54 void getTag(char *pbuf, char *ptag, char *dest); 55 CString m_ErrorLog; 56 CString m_AccessLog; 57 void ParseConfig(); 58 void LoadConfig(); 59 CIcecast2winDlg(CWnd* pParent = NULL); // standard constructor 60 61 // Dialog Data 62 //{{AFX_DATA(CIcecast2winDlg) 63 enum { IDD = IDD_ICECAST2WIN_DIALOG }; 64 CStatic m_SS; 65 CStatic m_ServerStatusBitmap; 66 CStatic m_iceLogo; 67 CButton m_StartButton; 68 CEdit m_StatsEditCtrl; 69 CEdit m_ConfigEditCtrl; 70 CEdit m_ErrorEditCtrl; 71 CEdit m_AccessEditCtrl; 72 CTabCtrlSSL m_MainTab; 73 CString m_AccessEdit; 74 CString m_ErrorEdit; 75 CString m_ConfigEdit; 76 CString m_ServerStatus; 77 CString m_SourcesConnected; 78 CString m_NumClients; 79 FILE *filep_accesslog; 80 FILE *filep_errorlog; 81 CString m_StatsEdit; 82 BOOL m_Autostart; 83 //}}AFX_DATA 84 85 // ClassWizard generated virtual function overrides 86 //{{AFX_VIRTUAL(CIcecast2winDlg) 87 protected: 88 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 89 //}}AFX_VIRTUAL 90 91 // Implementation 92 protected: 93 HICON m_hIcon; 94 95 // Generated message map functions 96 //{{AFX_MSG(CIcecast2winDlg) 97 virtual BOOL OnInitDialog(); 98 virtual void OnCancel(); 99 afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 100 afx_msg void OnPaint(); 101 afx_msg HCURSOR OnQueryDragIcon(); 102 afx_msg void OnSelchangeMaintab(NMHDR* pNMHDR, LRESULT* pResult); 103 afx_msg void OnFileExit(); 104 afx_msg void OnTimer(UINT nIDEvent); 105 afx_msg void OnFileStartserver(); 106 afx_msg void OnFileStopserver(); 107 afx_msg void OnStart(); 108 afx_msg void OnClose(); 109 afx_msg void OnSize(UINT nType, int cx, int cy); 110 afx_msg void OnHidesystray(); 111 afx_msg void OnHide(); 112 afx_msg void OnBlankRestore(); 113 afx_msg LONG OnTrayNotify ( WPARAM wParam, LPARAM lParam ); 114 afx_msg void OnDestroy(); 115 afx_msg void OnFileEditconfiguration(); 116 afx_msg void OnAboutHelp(); 117 afx_msg void OnAboutCredits(); 118 //}}AFX_MSG 119 DECLARE_MESSAGE_MAP() 120 }; 121 122 //{{AFX_INSERT_LOCATION}} 123 // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 124 125 #endif // !defined(AFX_ICECAST2WINDLG_H__23B4DA8B_C9BC_49C8_A62C_37FC6BC5E54A__INCLUDED_) 126