Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CPrivateChatFrame Class Reference

#include <CtrlPrivateChatFrame.h>

Inheritance diagram for CPrivateChatFrame:

CChatFrame List of all members.

Public Member Functions

 CPrivateChatFrame ()
virtual ~CPrivateChatFrame ()
void Initiate (GGUID *pGUID, SOCKADDR_IN *pHost, BOOL bMustPush)
BOOL Accept (CChatSession *pSession)
virtual void OnLocalMessage (BOOL bAction, LPCTSTR pszText)
virtual void OnLocalCommand (LPCTSTR pszCommand, LPCTSTR pszArgs)
virtual void OnProfileReceived ()
virtual void OnRemoteMessage (BOOL bAction, LPCTSTR pszText)
virtual void OnSkinChange ()

Public Attributes

CString m_sNick

Protected Member Functions

afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnSize (UINT nType, int cx, int cy)
afx_msg void OnPaint ()
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnUpdateChatBrowse (CCmdUI *pCmdUI)
afx_msg void OnChatBrowse ()
afx_msg void OnUpdateChatPriority (CCmdUI *pCmdUI)
afx_msg void OnChatPriority ()

Constructor & Destructor Documentation

CPrivateChatFrame::CPrivateChatFrame  ) 
 

Definition at line 62 of file CtrlPrivateChatFrame.cpp.

References NULL.

CPrivateChatFrame::~CPrivateChatFrame  )  [virtual]
 

Definition at line 68 of file CtrlPrivateChatFrame.cpp.


Member Function Documentation

BOOL CPrivateChatFrame::Accept CChatSession pSession  ) 
 

Definition at line 83 of file CtrlPrivateChatFrame.cpp.

References cssConnecting, CChatSession::m_nState, CChatFrame::m_pSession, NULL, and CChatSession::OnCloseWindow().

Referenced by CChatSession::OnOpenWindow().

void CPrivateChatFrame::Initiate GGUID pGUID,
SOCKADDR_IN *  pHost,
BOOL  bMustPush
 

Definition at line 75 of file CtrlPrivateChatFrame.cpp.

References CChatFrame::m_pSession, NULL, and CChatSession::Setup().

Referenced by CChatWindows::OpenPrivate().

void CPrivateChatFrame::OnChatBrowse  )  [protected]
 

Definition at line 228 of file CtrlPrivateChatFrame.cpp.

References CChatSession::m_bGUID, CChatSession::m_pGUID, CConnection::m_pHost, CChatFrame::m_pSession, and NULL.

void CPrivateChatFrame::OnChatPriority  )  [protected]
 

Definition at line 242 of file CtrlPrivateChatFrame.cpp.

References CUploads::GetIterator(), CUploads::GetNext(), IDS_CHAT_PRIORITY_GRANTED, CUploadTransfer::m_nState, CConnection::m_pHost, CTransfers::m_pSection, CChatFrame::m_pSession, CConnection::m_sAddress, CUploadTransfer::Promote(), CChatSession::StatusMessage(), Transfers, Uploads, and upsQueued.

void CPrivateChatFrame::OnContextMenu CWnd *  pWnd,
CPoint  point
[protected]
 

Definition at line 144 of file CtrlPrivateChatFrame.cpp.

References Skin, and CSkin::TrackPopupMenu().

int CPrivateChatFrame::OnCreate LPCREATESTRUCT  lpCreateStruct  )  [protected]
 

Reimplemented from CChatFrame.

Definition at line 99 of file CtrlPrivateChatFrame.cpp.

References CChatFrame::OnCreate(), and OnSkinChange().

void CPrivateChatFrame::OnLocalCommand LPCTSTR  pszCommand,
LPCTSTR  pszArgs
[virtual]
 

Reimplemented from CChatFrame.

Definition at line 208 of file CtrlPrivateChatFrame.cpp.

References ID_CHAT_BROWSE, and CChatFrame::OnLocalCommand().

void CPrivateChatFrame::OnLocalMessage BOOL  bAction,
LPCTSTR  pszText
[virtual]
 

Reimplemented from CChatFrame.

Definition at line 183 of file CtrlPrivateChatFrame.cpp.

References CChatFrame::AddText(), AdultFilter, CAdultFilter::Censor(), CChatSession::GetConnectedState(), CGProfile::GetNick(), ID_CHAT_CONNECT, IDS_CHAT_NOT_CONNECTED_1, IDS_CHAT_NOT_CONNECTED_2, CAdultFilter::IsChatFiltered(), CChatSession::m_nProtocol, CChatFrame::m_pSession, MyProfile, PROTOCOL_ED2K, CChatSession::SendPrivateMessage(), CChatSession::StatusMessage(), TS_FALSE, and TS_TRUE.

void CPrivateChatFrame::OnPaint  )  [protected]
 

Definition at line 136 of file CtrlPrivateChatFrame.cpp.

void CPrivateChatFrame::OnProfileReceived  )  [virtual]
 

Definition at line 152 of file CtrlPrivateChatFrame.cpp.

References CRichDocument::Add(), CChatFrame::AddText(), IDS_CHAT_PROFILE_ACCEPTED, LoadString(), CChatFrame::m_pContent, CChatFrame::m_pSession, m_sNick, CChatSession::m_sUserNick, NULL, retfColour, retLink, retText, and CChatFrame::SetAlert().

Referenced by CChatSession::OnEstablished(), CChatSession::OnOpenWindow(), and CChatSession::OnProfileDelivery().

void CPrivateChatFrame::OnRemoteMessage BOOL  bAction,
LPCTSTR  pszText
[virtual]
 

Definition at line 169 of file CtrlPrivateChatFrame.cpp.

References CChatFrame::AddText(), AdultFilter, CAdultFilter::Censor(), CAdultFilter::IsChatFiltered(), CMessageFilter::IsFiltered(), m_sNick, MessageFilter, and CChatFrame::SetAlert().

Referenced by CChatSession::OnChatMessage(), and CChatSession::OnText().

void CPrivateChatFrame::OnSize UINT  nType,
int  cx,
int  cy
[protected]
 

Definition at line 114 of file CtrlPrivateChatFrame.cpp.

References EDIT_HEIGHT, CChatFrame::m_wndEdit, CChatFrame::m_wndToolBar, CChatFrame::m_wndView, NULL, and TOOLBAR_HEIGHT.

void CPrivateChatFrame::OnSkinChange  )  [virtual]
 

Reimplemented from CChatFrame.

Definition at line 108 of file CtrlPrivateChatFrame.cpp.

References CSkin::CreateToolBar(), CChatFrame::m_wndToolBar, CChatFrame::OnSkinChange(), and Skin.

Referenced by OnCreate().

void CPrivateChatFrame::OnUpdateChatBrowse CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 223 of file CtrlPrivateChatFrame.cpp.

References CChatFrame::m_pSession, and NULL.

void CPrivateChatFrame::OnUpdateChatPriority CCmdUI *  pCmdUI  )  [protected]
 

Definition at line 237 of file CtrlPrivateChatFrame.cpp.

References CChatSession::GetConnectedState(), CChatFrame::m_pSession, NULL, and TS_TRUE.


Member Data Documentation

CString CPrivateChatFrame::m_sNick
 

Definition at line 44 of file CtrlPrivateChatFrame.h.

Referenced by CChatWindows::FindED2KFrame(), OnProfileReceived(), OnRemoteMessage(), and CChatWindows::OpenPrivate().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:10 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2