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

ChatWindows.h

Go to the documentation of this file.
00001 //
00002 // ChatWindows.h
00003 //
00004 // Copyright (c) Shareaza Development Team, 2002-2005.
00005 // This file is part of SHAREAZA (www.shareaza.com)
00006 //
00007 // Shareaza is free software; you can redistribute it
00008 // and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 2 of
00010 // the License, or (at your option) any later version.
00011 //
00012 // Shareaza is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with Shareaza; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 //
00021 
00022 #if !defined(AFX_CHATWINDOWS_H__F756916C_1CDF_460A_B1F2_8EC53E72B6C2__INCLUDED_)
00023 #define AFX_CHATWINDOWS_H__F756916C_1CDF_460A_B1F2_8EC53E72B6C2__INCLUDED_
00024 
00025 #pragma once
00026 
00027 class CChatFrame;
00028 class CPrivateChatFrame;
00029 
00030 
00031 class CChatWindows
00032 {
00033 // Construction
00034 public:
00035         CChatWindows();
00036         virtual ~CChatWindows();
00037 
00038 // Attributes
00039 protected:
00040         CPtrList        m_pList;
00041 
00042 // Operations
00043 public:
00044         POSITION        GetIterator() const;
00045         CChatFrame*     GetNext(POSITION& pos) const;
00046         int                     GetCount() const;
00047         void            Close();
00048 public:
00049         CPrivateChatFrame*      FindPrivate(GGUID* pGUID);
00050         CPrivateChatFrame*      FindPrivate(IN_ADDR* pAddress);
00051         CPrivateChatFrame*  FindED2KFrame(SOCKADDR_IN* pAddress);
00052         CPrivateChatFrame*  FindED2KFrame(DWORD nClientID, SOCKADDR_IN* pServerAddress);
00053         CPrivateChatFrame*      OpenPrivate(GGUID* pGUID, SOCKADDR_IN* pHost, BOOL bMustPush = FALSE, PROTOCOLID nProtocol = PROTOCOL_NULL, SOCKADDR_IN* pServer = NULL );
00054         CPrivateChatFrame*      OpenPrivate(GGUID* pGUID, IN_ADDR* pAddress, WORD nPort = 6346, BOOL bMustPush = FALSE, PROTOCOLID nProtocol = PROTOCOL_NULL, IN_ADDR* pServerAddress = NULL, WORD nServerPort = 0 );
00055 protected:
00056         void    Add(CChatFrame* pFrame);
00057         void    Remove(CChatFrame* pFrame);
00058 
00059         friend class CChatFrame;
00060 };
00061 
00062 extern CChatWindows ChatWindows;
00063 
00064 #endif // !defined(AFX_CHATWINDOWS_H__F756916C_1CDF_460A_B1F2_8EC53E72B6C2__INCLUDED_)

Generated on Thu Dec 15 10:39:34 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2