Team Fortress 2 Source Code as on 22/4/2020
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.

36 lines
852 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef CLIPBOARDMANAGER_H
  7. #define CLIPBOARDMANAGER_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "tier1/utlvector.h"
  12. class KeyValues;
  13. class IClipboardCleanup;
  14. // Clipboard:
  15. //
  16. class CClipboardManager
  17. {
  18. public:
  19. CClipboardManager();
  20. ~CClipboardManager();
  21. void EmptyClipboard( bool bClearWindowsClipboard );
  22. void SetClipboardData( CUtlVector< KeyValues * >& data, IClipboardCleanup *pfnOptionalCleanuFunction );
  23. void AddToClipboardData( KeyValues *add );
  24. void GetClipboardData( CUtlVector< KeyValues * >& data );
  25. bool HasClipboardData() const;
  26. private:
  27. CUtlVector< KeyValues * > m_Data;
  28. IClipboardCleanup *m_pfnCleanup;
  29. };
  30. #endif // CLIPBOARDMANAGER_H