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
1.0 KiB

  1. // Link.h: interface for the CLink class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_LINK_H__253413CF_E71F_11D0_8A84_00C0F00910F9__INCLUDED_)
  5. #define AFX_LINK_H__253413CF_E71F_11D0_8A84_00C0F00910F9__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "RefCount.h"
  10. #include "RefPtr.h"
  11. class CLink : public CRefCounter
  12. {
  13. public:
  14. enum {
  15. urlType_Absolute,
  16. urlType_LocalAbsolute,
  17. urlType_Relative
  18. };
  19. CLink( const String& strLink, const String& strDesc );
  20. int UrlType() const { return m_urlType; }
  21. const String& Link() const { return m_strLink; }
  22. const String& Desc() const { return m_strDesc; }
  23. bool IsEqual( const String& strLink ) const;
  24. static int UrlType( const String& strUrl );
  25. private:
  26. virtual ~CLink();
  27. int m_urlType;
  28. const String m_strLink;
  29. const String m_strDesc;
  30. };
  31. typedef TRefPtr<CLink> CLinkPtr;
  32. #endif // !defined(AFX_LINK_H__253413CF_E71F_11D0_8A84_00C0F00910F9__INCLUDED_)