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

CtrlLibraryCollectionView.h

Go to the documentation of this file.
00001 //
00002 // CtrlLibraryCollectionView.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 #pragma once
00023 
00024 #include "CtrlLibraryFileView.h"
00025 
00026 class CCollectionFile;
00027 class CLibraryFile;
00028 class CWebCtrl;
00029 
00030 
00031 class CLibraryCollectionView : public CLibraryFileView
00032 {
00033 // Construction
00034 public:
00035         CLibraryCollectionView();
00036         virtual ~CLibraryCollectionView();
00037 
00038         DECLARE_DYNCREATE(CLibraryCollectionView)
00039 
00040 // Attributes
00041 protected:
00042         CWebCtrl*                       m_pWebCtrl;
00043         DWORD                           m_nWebIndex;
00044         CCollectionFile*        m_pCollection;
00045         SHA1                            m_pSHA1;
00046 
00047 // Operations
00048 public:
00049         virtual BOOL    CheckAvailable(CLibraryTreeItem* pSel);
00050         virtual void    Update();
00051 protected:
00052         virtual DWORD   HitTestIndex(const CPoint& point) const { return 0; };
00053         BOOL                    ShowCollection(CLibraryFile* pFile);
00054 
00055 // Implementation
00056 protected:
00057         DECLARE_MESSAGE_MAP()
00058         afx_msg int  OnCreate(LPCREATESTRUCT lpCreateStruct);
00059         afx_msg void OnDestroy();
00060         afx_msg void OnSize(UINT nType, int cx, int cy);
00061         afx_msg void OnWebContextMenu(NMHDR* pNMHDR, LPARAM* pResult);
00062         afx_msg void OnUpdateLibraryFolderDownload(CCmdUI *pCmdUI);
00063         afx_msg void OnLibraryFolderDownload();
00064 
00065 // Object Model
00066 protected:
00067     class External : public CComObject
00068         {
00069         // Construction
00070         public:
00071                 External();
00072 
00073         // Attributes
00074         public:
00075                 CLibraryCollectionView* m_pView;
00076                 BOOL m_bLockdown;
00077                 void CheckLockdown();
00078 
00079         // Implementation
00080         protected:
00081                 BEGIN_INTERFACE_PART(View, ICollectionHtmlView)
00082                         DECLARE_DISPATCH()
00083                         STDMETHOD(get_Application)(IApplication **ppApplication);
00084                         STDMETHOD(Detect)(BSTR sURN, BSTR *psState);
00085                         STDMETHOD(Hover)(BSTR sURN);
00086                         STDMETHOD(Open)(BSTR sURN, VARIANT_BOOL *pbResult);
00087                         STDMETHOD(Enqueue)(BSTR sURN, VARIANT_BOOL *pbResult);
00088                         STDMETHOD(Download)(BSTR sURN, VARIANT_BOOL *pbResult);
00089                         STDMETHOD(DownloadAll)();
00090                         STDMETHOD(get_MissingCount)(LONG *pnCount);
00091                 END_INTERFACE_PART(View)
00092                 DECLARE_INTERFACE_MAP()
00093         } m_xExternal;
00094 };

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