• Classes
  • Modules
  • Namespaces
  • Files
  • Related Pages
  • File List
  • File Members

BindStatusCallback.h

Go to the documentation of this file.
00001 /*
00002  * Licensed to the Apache Software Foundation (ASF) under one or more
00003  * contributor license agreements.  See the NOTICE file distributed with
00004  * this work for additional information regarding copyright ownership.
00005  * The ASF licenses this file to You under the Apache License, Version 2.0
00006  * (the "License"); you may not use this file except in compliance with
00007  * the License.  You may obtain a copy of the License at
00008  * 
00009  *      http://www.apache.org/licenses/LICENSE-2.0
00010  * 
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  */
00017 
00018 /*
00019  * $Id: BindStatusCallback.h 568078 2007-08-21 11:43:25Z amassari $
00020  */
00021 
00022 // BindStatusCallback.h : Declaration of the BindStatCallback
00023 
00024 #ifndef ___bindstatuscallback_h___
00025 #define ___bindstatuscallback_h___
00026 
00027 class CXMLDOMDocument;
00028 
00030 // BindStatCallback
00031 class ATL_NO_VTABLE CBindStatCallback : 
00032         public CComObjectRootEx<CComSingleThreadModel>,
00033         public IBindStatusCallback
00034 {
00035 public:
00036         CBindStatCallback()
00037                 :m_pDoc(NULL)
00038         {
00039         }
00040 
00041 DECLARE_NOT_AGGREGATABLE(CBindStatCallback)
00042 
00043 DECLARE_PROTECT_FINAL_CONSTRUCT()
00044 
00045 BEGIN_COM_MAP(CBindStatCallback)
00046         COM_INTERFACE_ENTRY(IBindStatusCallback)
00047 END_COM_MAP()
00048 
00049 // IBindStatusCallback
00050 public:
00051         STDMETHOD(OnStartBinding)(DWORD dwReserved, IBinding *pBinding);
00052         STDMETHOD(GetPriority)(LONG *pnPriority);
00053         STDMETHOD(OnLowResource)(DWORD reserved);
00054         STDMETHOD(OnProgress)(ULONG ulProgress, ULONG ulProgressMax, ULONG ulStatusCode, LPCWSTR szStatusText);
00055         STDMETHOD(OnStopBinding)(HRESULT hresult, LPCWSTR szError);
00056         STDMETHOD(GetBindInfo)(DWORD *pgrfBINDF, BINDINFO *pbindInfo);
00057         STDMETHOD(OnDataAvailable)(DWORD grfBSCF, DWORD dwSize, FORMATETC *pformatetc, STGMEDIUM *pstgmed);
00058         STDMETHOD(OnObjectAvailable)(REFIID riid, IUnknown *punk);
00059 
00060         CXMLDOMDocument *m_pDoc;
00061 };
00062 
00063 typedef CComObject<CBindStatCallback> CBindStatCallbackObj;
00064 
00065 #endif //___bindstatuscallback_h___

Generated on Thu Jan 12 2012 23:13:50 for ACS-10.0 C++ API by  doxygen 1.7.0