hxfilerecognizer.h
上传用户:dangjiwu
上传日期:2013-07-19
资源大小:42019k
文件大小:3k
源码类别:

Symbian

开发平台:

Visual C++

  1. #ifndef _HXFILERECOGNIZER_H_
  2. #define _HXFILERECOGNIZER_H_
  3. typedef _INTERFACE IHXFileRecognizer IHXFileRecognizer;
  4. typedef _INTERFACE IHXFileRecognizerResponse IHXFileRecognizerResponse;
  5. /****************************************************************************
  6.  * 
  7.  *  Interface:
  8.  * 
  9.  * IHXFileRecognizer
  10.  * 
  11.  *  Purpose:
  12.  * 
  13.  *     Attemps to determine the MIME type of the given file. 
  14.  * 
  15.  *  IID_IHXFileRecognizer:
  16.  * 
  17.  * {00000220-0901-11d1-8B06-00A024406D59}
  18.  * 
  19.  */
  20. DEFINE_GUID(IID_IHXFileRecognizer, 0x00000220, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 
  21. 0xa0, 0x24, 0x40, 0x6d, 0x59);
  22. #undef  INTERFACE
  23. #define INTERFACE   IHXFileRecognizer
  24. DECLARE_INTERFACE_(IHXFileRecognizer, IUnknown)
  25. {
  26.     /*
  27.      * IUnknown methods
  28.      */
  29.     STDMETHOD(QueryInterface) (THIS_
  30. REFIID riid,
  31. void** ppvObj) PURE;
  32.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  33.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  34.     /*
  35.      * IHXFileRecognizer methods
  36.      */
  37.     /************************************************************************
  38.      * Method:
  39.      *     IHXFileRecognizer::GetMimeType
  40.      * Purpose:
  41.      */
  42.     STDMETHOD(GetMimeType) (THIS_
  43.     IHXFileObject* /*IN*/ pFile, 
  44.     IHXFileRecognizerResponse* /*IN*/ pFileRecognizerResponse
  45.     ) PURE;
  46. };
  47. /****************************************************************************
  48.  * 
  49.  *  Interface:
  50.  * 
  51.  * IHXFileRecognizerResponse
  52.  * 
  53.  *  Purpose:
  54.  * 
  55.  * Response interface for IHXFileRecognizer.
  56.  * Optional interface.
  57.  * 
  58.  *  IID_IHXFileRecognizerResponse:
  59.  * 
  60.  * {00000221-0901-11d1-8B06-00A024406D59}
  61.  * 
  62.  */
  63. DEFINE_GUID(IID_IHXFileRecognizerResponse, 0x00000221, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 
  64. 0xa0, 0x24, 0x40, 0x6d, 0x59);
  65. #undef  INTERFACE
  66. #define INTERFACE   IHXFileRecognizerResponse
  67. DECLARE_INTERFACE_(IHXFileRecognizerResponse, IUnknown)
  68. {
  69.     /*
  70.      * IUnknown methods
  71.      */
  72.     STDMETHOD(QueryInterface) (THIS_
  73. REFIID riid,
  74. void** ppvObj) PURE;
  75.     STDMETHOD_(ULONG32,AddRef) (THIS) PURE;
  76.     STDMETHOD_(ULONG32,Release) (THIS) PURE;
  77.     /*
  78.      * IHXFileRecognizerResponse methods
  79.      */
  80.     /************************************************************************
  81.      * Method:
  82.      *     IHXFileRecognizerResponse::GetMimeTypeDone
  83.      * Purpose:
  84.      *     Notification interface provided by users of the IHXFileRecognizer
  85.      *     interface.  Note, you must copy the mimeType before this  
  86.      *      method scope exits.
  87.      *     
  88.      */
  89.     STDMETHOD(GetMimeTypeDone) (THIS_
  90. HX_RESULT status,
  91. IHXBuffer* pMimeType) PURE;
  92. };
  93. #endif // _HXFILERECOGNIZER_H_