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.

42 lines
848 B

  1. #ifndef _CONTENT_H_
  2. #define _CONTENT_H_
  3. /*
  4. * C O N T E N T . H
  5. *
  6. * DAV Content-Type mappings
  7. *
  8. * Copyright 1986-1997 Microsoft Corporation, All Rights Reserved
  9. */
  10. class IContentTypeMap : public CMTRefCounted
  11. {
  12. // NOT IMPLEMENTED
  13. //
  14. IContentTypeMap(const IContentTypeMap&);
  15. IContentTypeMap& operator=(IContentTypeMap&);
  16. protected:
  17. // CREATORS
  18. // Only create this object through it's descendents!
  19. //
  20. IContentTypeMap()
  21. {
  22. m_cRef = 1; //$HACK Until we have 1-based refcounting
  23. };
  24. public:
  25. // ACCESSORS
  26. //
  27. virtual LPCWSTR PwszContentType( LPCWSTR pwszURI ) const = 0;
  28. virtual BOOL FIsInherited() const = 0;
  29. };
  30. BOOL FInitRegMimeMap();
  31. VOID DeinitRegMimeMap();
  32. IContentTypeMap *
  33. NewContentTypeMap( LPWSTR pwszContentTypeMappings,
  34. BOOL fMappingsInherited );
  35. #endif // _CONTENT_H_