This commit is contained in:
99
CheckServer/MainFrm.h
Normal file
99
CheckServer/MainFrm.h
Normal file
@@ -0,0 +1,99 @@
|
||||
// MainFrm.h : interface of the CMainFrame class
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if !defined(AFX_MAINFRM_H__0D2BBCED_9B42_4431_9894_44F8524FB44C__INCLUDED_)
|
||||
#define AFX_MAINFRM_H__0D2BBCED_9B42_4431_9894_44F8524FB44C__INCLUDED_
|
||||
|
||||
#if _MSC_VER > 1000
|
||||
#pragma once
|
||||
#endif // _MSC_VER > 1000
|
||||
|
||||
class CCheckServerApp;
|
||||
class CCheckServerView;
|
||||
class CServerSocket;
|
||||
|
||||
#define ID_TIMER_TIME 101
|
||||
|
||||
class CWebReloadThread;
|
||||
class CMainFrame : public CFrameWnd
|
||||
{
|
||||
|
||||
protected: // create from serialization only
|
||||
CMainFrame();
|
||||
DECLARE_DYNCREATE(CMainFrame)
|
||||
|
||||
public:
|
||||
bool WebNewsFinded( char* pchar ) { return( CWnd::PostMessage( tm_CMainFrameOnWebNewsFinded, (WPARAM) pchar, NULL ) ? true : false ); }
|
||||
protected:
|
||||
static UINT tm_CMainFrameOnWebNewsFinded;
|
||||
CWebReloadThread* m_pCWebReloadThread;
|
||||
CString m_strURL[2];
|
||||
|
||||
|
||||
// Operations
|
||||
public:
|
||||
|
||||
CCheckServerApp * m_pApp;
|
||||
CCheckServerView * m_pView;
|
||||
CServerSocket * m_pServerSocket;
|
||||
|
||||
BOOL m_bServerStarted;
|
||||
UINT m_nPort;
|
||||
|
||||
public:
|
||||
void AddMessage(CString szName, CString szMessage);
|
||||
void UpdateClientsList(CPtrList* pClientstList);
|
||||
CPtrList* GetClientsList();
|
||||
|
||||
protected:
|
||||
void ClearAllViews();
|
||||
void UpdateAllView();
|
||||
BOOL DisconnectServer();
|
||||
|
||||
|
||||
// Overrides
|
||||
// ClassWizard generated virtual function overrides
|
||||
//{{AFX_VIRTUAL(CMainFrame)
|
||||
public:
|
||||
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
|
||||
protected:
|
||||
//}}AFX_VIRTUAL
|
||||
|
||||
// Implementation
|
||||
public:
|
||||
virtual ~CMainFrame();
|
||||
#ifdef _DEBUG
|
||||
virtual void AssertValid() const;
|
||||
virtual void Dump(CDumpContext& dc) const;
|
||||
#endif
|
||||
|
||||
protected: // control bar embedded members
|
||||
CStatusBar m_wndStatusBar;
|
||||
CToolBar m_wndToolBar;
|
||||
|
||||
// Generated message map functions
|
||||
protected:
|
||||
//{{AFX_MSG(CMainFrame)
|
||||
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
||||
afx_msg void OnDestroy();
|
||||
afx_msg void OnClose();
|
||||
afx_msg void OnTimer(UINT nIDEvent);
|
||||
afx_msg void OnUpdateConnectionStatus(CCmdUI* pCmdUI);
|
||||
afx_msg void OnUpdateConnectionClients(CCmdUI* pCmdUI);
|
||||
afx_msg void OnOperationsStartserver();
|
||||
afx_msg void OnUpdateOperationsStartserver(CCmdUI* pCmdUI);
|
||||
afx_msg void OnOperationsStopserver();
|
||||
afx_msg void OnUpdateOperationsStopserver(CCmdUI* pCmdUI);
|
||||
afx_msg void OnOptionsPreferences();
|
||||
//}}AFX_MSG
|
||||
afx_msg LRESULT OnWebNewsFinded( WPARAM nID, LPARAM lParam );
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//{{AFX_INSERT_LOCATION}}
|
||||
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
||||
|
||||
#endif // !defined(AFX_MAINFRM_H__0D2BBCED_9B42_4431_9894_44F8524FB44C__INCLUDED_)
|
||||
Reference in New Issue
Block a user