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

CChatWindows Class Reference

#include <ChatWindows.h>

List of all members.

Public Member Functions

 CChatWindows ()
virtual ~CChatWindows ()
POSITION GetIterator () const
CChatFrameGetNext (POSITION &pos) const
int GetCount () const
void Close ()
CPrivateChatFrameFindPrivate (GGUID *pGUID)
CPrivateChatFrameFindPrivate (IN_ADDR *pAddress)
CPrivateChatFrameFindED2KFrame (SOCKADDR_IN *pAddress)
CPrivateChatFrameFindED2KFrame (DWORD nClientID, SOCKADDR_IN *pServerAddress)
CPrivateChatFrameOpenPrivate (GGUID *pGUID, SOCKADDR_IN *pHost, BOOL bMustPush=FALSE, PROTOCOLID nProtocol=PROTOCOL_NULL, SOCKADDR_IN *pServer=NULL)
CPrivateChatFrameOpenPrivate (GGUID *pGUID, IN_ADDR *pAddress, WORD nPort=6346, BOOL bMustPush=FALSE, PROTOCOLID nProtocol=PROTOCOL_NULL, IN_ADDR *pServerAddress=NULL, WORD nServerPort=0)

Protected Member Functions

void Add (CChatFrame *pFrame)
void Remove (CChatFrame *pFrame)

Protected Attributes

CPtrList m_pList

Friends

class CChatFrame


Constructor & Destructor Documentation

CChatWindows::CChatWindows  ) 
 

Definition at line 47 of file ChatWindows.cpp.

CChatWindows::~CChatWindows  )  [virtual]
 

Definition at line 51 of file ChatWindows.cpp.


Member Function Documentation

void CChatWindows::Add CChatFrame pFrame  )  [protected]
 

Definition at line 325 of file ChatWindows.cpp.

References m_pList, and NULL.

Referenced by CChatFrame::OnCreate().

void CChatWindows::Close  ) 
 

Definition at line 76 of file ChatWindows.cpp.

References GetIterator(), GetNext(), and m_pList.

CPrivateChatFrame * CChatWindows::FindED2KFrame DWORD  nClientID,
SOCKADDR_IN *  pServerAddress
 

Definition at line 152 of file ChatWindows.cpp.

References GetIterator(), GetNext(), CChatFrame::m_pSession, CPrivateChatFrame::m_sNick, and NULL.

CPrivateChatFrame * CChatWindows::FindED2KFrame SOCKADDR_IN *  pAddress  ) 
 

Definition at line 129 of file ChatWindows.cpp.

References GetIterator(), GetNext(), CChatFrame::m_pSession, CPrivateChatFrame::m_sNick, and NULL.

Referenced by CChatSession::OnOpenWindow(), and OpenPrivate().

CPrivateChatFrame * CChatWindows::FindPrivate IN_ADDR *  pAddress  ) 
 

Definition at line 106 of file ChatWindows.cpp.

References GetIterator(), GetNext(), CChatSession::m_bMustPush, CChatSession::m_nClientID, CChatSession::m_nProtocol, CConnection::m_pHost, CChatFrame::m_pSession, NULL, and PROTOCOL_ED2K.

CPrivateChatFrame * CChatWindows::FindPrivate GGUID pGUID  ) 
 

Definition at line 89 of file ChatWindows.cpp.

References GetIterator(), GetNext(), CChatSession::m_bGUID, CChatSession::m_pGUID, CChatFrame::m_pSession, and NULL.

Referenced by CChatSession::OnOpenWindow(), and OpenPrivate().

int CChatWindows::GetCount  )  const
 

Definition at line 68 of file ChatWindows.cpp.

References m_pList.

POSITION CChatWindows::GetIterator  )  const
 

Definition at line 58 of file ChatWindows.cpp.

References m_pList.

Referenced by Close(), FindED2KFrame(), and FindPrivate().

CChatFrame * CChatWindows::GetNext POSITION &  pos  )  const
 

Definition at line 63 of file ChatWindows.cpp.

References m_pList.

Referenced by Close(), FindED2KFrame(), and FindPrivate().

CPrivateChatFrame * CChatWindows::OpenPrivate GGUID pGUID,
IN_ADDR *  pAddress,
WORD  nPort = 6346,
BOOL  bMustPush = FALSE,
PROTOCOLID  nProtocol = PROTOCOL_NULL,
IN_ADDR *  pServerAddress = NULL,
WORD  nServerPort = 0
 

Definition at line 181 of file ChatWindows.cpp.

References NULL, and OpenPrivate().

CPrivateChatFrame * CChatWindows::OpenPrivate GGUID pGUID,
SOCKADDR_IN *  pHost,
BOOL  bMustPush = FALSE,
PROTOCOLID  nProtocol = PROTOCOL_NULL,
SOCKADDR_IN *  pServer = NULL
 

Definition at line 201 of file ChatWindows.cpp.

References CEDClient::Connect(), CEDClients::Connect(), EDClients, FindED2KFrame(), FindPrivate(), CNeighboursBase::Get(), ID_CHAT_CONNECT, ID_TOOLS_PROFILE, IDS_CHAT_CONNECTING_TO, IDS_CHAT_NEED_PROFILE, CPrivateChatFrame::Initiate(), CGProfile::IsValid(), LoadString(), CConnection::m_bConnected, CTransfers::m_pSection, CNetwork::m_pSection, CPrivateChatFrame::m_sNick, MyProfile, Neighbours, Network, NULL, CChatFrame::OnStatusMessage(), CEDClient::OpenChat(), PROTOCOL_BT, PROTOCOL_ED2K, PROTOCOL_FTP, and Transfers.

Referenced by CNeighboursWnd::OnNeighboursChat(), CBrowseHostWnd::OnSearchChat(), CBaseMatchWnd::OnSearchChat(), CDownloadsWnd::OnTransfersChat(), CUploadsWnd::OnUploadsChat(), and OpenPrivate().

void CChatWindows::Remove CChatFrame pFrame  )  [protected]
 

Definition at line 330 of file ChatWindows.cpp.

References m_pList.

Referenced by CChatFrame::OnDestroy().


Friends And Related Function Documentation

friend class CChatFrame [friend]
 

Definition at line 59 of file ChatWindows.h.


Member Data Documentation

CPtrList CChatWindows::m_pList [protected]
 

Definition at line 40 of file ChatWindows.h.

Referenced by Add(), Close(), GetCount(), GetIterator(), GetNext(), and Remove().


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