Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. // WFUMAIN.H: Definition of CITWWFilterUpdate
  2. #ifndef __WFUMAIN_H__
  3. #define __WFUMAIN_H__
  4. #include <verinfo.h>
  5. #include <itcc.h>
  6. #include <itdb.h>
  7. //#include <mvopsys.h>
  8. //#include <groups.h>
  9. class CITWWFilterUpdate :
  10. public IITBuildCollect,
  11. public IPersistStorage,
  12. public CComObjectRoot,
  13. public CComCoClass<CITWWFilterUpdate, &CLSID_IITWWFilterBuild>
  14. {
  15. public:
  16. CITWWFilterUpdate () : m_fInitialized(FALSE), m_fConfigured(FALSE) {}
  17. ~CITWWFilterUpdate();
  18. BEGIN_COM_MAP(CITWWFilterUpdate)
  19. COM_INTERFACE_ENTRY(IITBuildCollect)
  20. COM_INTERFACE_ENTRY(IPersistStorage)
  21. END_COM_MAP()
  22. DECLARE_REGISTRY (CLSID_IITWWFilterBuild,
  23. "ITIR.WWFilterBuild.4", "ITIR.WWFilterBuild",
  24. 0, THREADFLAGS_APARTMENT )
  25. public:
  26. STDMETHOD(SetConfigInfo)(IITDatabase *piitdb, VARARG vaParams);
  27. STDMETHOD(InitHelperInstance)(DWORD dwHelperObjInstance,
  28. IITDatabase *pITDatabase, DWORD dwCodePage,
  29. LCID lcid, VARARG vaDword, VARARG vaString);
  30. STDMETHOD(SetEntry)(LPCWSTR szDest, IITPropList *pPropList);
  31. STDMETHOD(Close)(void);
  32. STDMETHOD(GetTypeString)(LPWSTR pPrefix, DWORD *pLength);
  33. STDMETHOD(SetBuildStats)(ITBuildObjectControlInfo &itboci)
  34. {return E_NOTIMPL;}
  35. STDMETHOD(GetClassID)(CLSID *pClsID);
  36. STDMETHOD(IsDirty)(void);
  37. STDMETHOD(Load)(IStorage *pStg);
  38. STDMETHOD(Save)(IStorage *pStgSave, BOOL fSameAsLoad);
  39. STDMETHOD(InitNew)(IStorage *pStg);
  40. STDMETHOD(SaveCompleted)(IStorage *pStgNew);
  41. STDMETHOD(HandsOffStorage)(void);
  42. private:
  43. BOOL m_fInitialized, m_fIsDirty, m_fGroupNot, m_fConfigured;
  44. IITDatabase *m_piitdb;
  45. IStorage *m_pStorage;
  46. WCHAR m_wstrSrcGroup[1024];
  47. WCHAR m_wstrSrcWheel[1024];
  48. }; /* class CITWWFilterUpdate */
  49. #endif /* __WFUMAIN_H__ */