Leaked source code of windows server 2003
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.

70 lines
1.8 KiB

  1. //+------------------------------------------------------------------
  2. //
  3. // Copyright (C) Microsoft Corporation, 1991 - 1997
  4. //
  5. // File: identran.hxx
  6. //
  7. // Contents: Identity workid <--> doc name translator
  8. //
  9. // Classes: CIdentityNameTranslator
  10. //
  11. // History: 24-Feb-97 SitaramR Created
  12. //
  13. //-------------------------------------------------------------------
  14. #pragma once
  15. #include <ciintf.h>
  16. //+---------------------------------------------------------------------------
  17. //
  18. // Class: CIdentityNameTranslator
  19. //
  20. // Purpose: Identity workid <--> doc name translator
  21. //
  22. // History: 24-Feb-97 SitaramR Created
  23. //
  24. //----------------------------------------------------------------------------
  25. class CIdentityNameTranslator : INHERIT_VIRTUAL_UNWIND,
  26. public ICiCDocNameToWorkidTranslator
  27. {
  28. INLINE_UNWIND( CIdentityNameTranslator )
  29. public:
  30. //
  31. // From IUnknown
  32. //
  33. virtual SCODE STDMETHODCALLTYPE QueryInterface( REFIID riid, void **ppvObject );
  34. virtual ULONG STDMETHODCALLTYPE AddRef();
  35. virtual ULONG STDMETHODCALLTYPE Release();
  36. //
  37. // From ICiCDocNameToWorkidTranslator
  38. //
  39. virtual SCODE STDMETHODCALLTYPE QueryDocName( ICiCDocName ** ppICiCDocName );
  40. virtual SCODE STDMETHODCALLTYPE WorkIdToDocName( WORKID workId,
  41. ICiCDocName * pICiCDocName );
  42. virtual SCODE STDMETHODCALLTYPE DocNameToWorkId( ICiCDocName const * pICiCDocName,
  43. WORKID *pWorkId );
  44. //
  45. // Local methods
  46. //
  47. CIdentityNameTranslator();
  48. private:
  49. virtual ~CIdentityNameTranslator() { }
  50. ULONG _cRefs; // Ref count
  51. };