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

BTTrackerRequest.h

Go to the documentation of this file.
00001 //
00002 // BTTrackerRequest.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_BTTRACKERREQUEST_H__DF1C43AA_E49C_4225_A27B_6E1E6EE95328__INCLUDED_)
00023 #define AFX_BTTRACKERREQUEST_H__DF1C43AA_E49C_4225_A27B_6E1E6EE95328__INCLUDED_
00024 
00025 #pragma once
00026 
00027 #include "HttpRequest.h"
00028 
00029 class CDownload;
00030 class CDownloadBase;
00031 class CBENode;
00032 
00033 
00034 class CBTTrackerRequest : public CWinThread
00035 {
00036 // Construction
00037 public:
00038         CBTTrackerRequest(CDownload* pDownload, LPCTSTR pszVerb = NULL, BOOL bProcess = TRUE, WORD nNumWant = 0xFFFF);
00039         virtual ~CBTTrackerRequest();
00040 
00041 // Attributes
00042 public:
00043         CDownload*              m_pDownload;
00044         BOOL                    m_bProcess;
00045         CHttpRequest    m_pRequest;
00046 
00047 // Operations
00048 public:
00049         static void             SendStarted(CDownloadBase* pDownload, WORD nNumWant = 0xFFFF);
00050         static void             SendUpdate(CDownloadBase* pDownload, WORD nNumWant = 0xFFFF);
00051         static void             SendCompleted(CDownloadBase* pDownload);
00052         static void             SendStopped(CDownloadBase* pDownload);
00053         static CString  Escape(SHA1* pSHA1);
00054 protected:
00055         void    Process(BOOL bRequest);
00056         BOOL    Process(CBENode* pRoot);
00057 
00058 // Overrides
00059 public:
00060         //{{AFX_VIRTUAL(CBTTrackerRequest)
00061         public:
00062         virtual int Run();
00063         virtual BOOL InitInstance();
00064         //}}AFX_VIRTUAL
00065 
00066 // Implementation
00067 protected:
00068         //{{AFX_MSG(CBTTrackerRequest)
00069         //}}AFX_MSG
00070 
00071         DECLARE_MESSAGE_MAP()
00072 };
00073 
00074 //{{AFX_INSERT_LOCATION}}
00075 
00076 #endif // !defined(AFX_BTTRACKERREQUEST_H__DF1C43AA_E49C_4225_A27B_6E1E6EE95328__INCLUDED_)

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