Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

BindStatusCallback.h

Go to the documentation of this file.
00001 /* 00002 * Copyright 1999-2000,2004 The Apache Software Foundation. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 /* 00018 * $Log: BindStatusCallback.h,v $ 00019 * Revision 1.2 2004/09/08 13:55:35 peiyongz 00020 * Apache License Version 2.0 00021 * 00022 * Revision 1.1.1.1 2002/02/01 22:21:39 peiyongz 00023 * sane_include 00024 * 00025 * Revision 1.2 2000/03/30 02:00:13 abagchi 00026 * Initial checkin of working code with Copyright Notice 00027 * 00028 */ 00029 00030 // BindStatusCallback.h : Declaration of the BindStatCallback 00031 00032 #ifndef ___bindstatuscallback_h___ 00033 #define ___bindstatuscallback_h___ 00034 00035 class CXMLDOMDocument; 00036 00038 // BindStatCallback 00039 class ATL_NO_VTABLE CBindStatCallback : 00040 public CComObjectRootEx<CComSingleThreadModel>, 00041 public IBindStatusCallback 00042 { 00043 public: 00044 CBindStatCallback() 00045 :m_pDoc(NULL) 00046 { 00047 } 00048 00049 DECLARE_NOT_AGGREGATABLE(CBindStatCallback) 00050 00051 DECLARE_PROTECT_FINAL_CONSTRUCT() 00052 00053 BEGIN_COM_MAP(CBindStatCallback) 00054 COM_INTERFACE_ENTRY(IBindStatusCallback) 00055 END_COM_MAP() 00056 00057 // IBindStatusCallback 00058 public: 00059 STDMETHOD(OnStartBinding)(DWORD dwReserved, IBinding *pBinding); 00060 STDMETHOD(GetPriority)(LONG *pnPriority); 00061 STDMETHOD(OnLowResource)(DWORD reserved); 00062 STDMETHOD(OnProgress)(ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText); 00063 STDMETHOD(OnStopBinding)(HRESULT hresult, LPCWSTR szError); 00064 STDMETHOD(GetBindInfo)(DWORD *pgrfBINDF, BINDINFO *pbindInfo); 00065 STDMETHOD(OnDataAvailable)(DWORD grfBSCF, DWORD dwSize, FORMATETC *pformatetc, STGMEDIUM *pstgmed); 00066 STDMETHOD(OnObjectAvailable)(REFIID riid, IUnknown *punk); 00067 00068 CXMLDOMDocument *m_pDoc; 00069 }; 00070 00071 typedef CComObject<CBindStatCallback> CBindStatCallbackObj; 00072 00073 #endif //___bindstatuscallback_h___

Generated on Thu Apr 30 02:30:50 2009 for ACS C++ API by doxygen 1.3.8