mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-23 06:36:54 +00:00
37 lines
852 B
C
37 lines
852 B
C
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose:
|
||
|
//
|
||
|
//=============================================================================
|
||
|
|
||
|
#ifndef CLIPBOARDMANAGER_H
|
||
|
#define CLIPBOARDMANAGER_H
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#include "tier1/utlvector.h"
|
||
|
|
||
|
class KeyValues;
|
||
|
class IClipboardCleanup;
|
||
|
|
||
|
// Clipboard:
|
||
|
//
|
||
|
class CClipboardManager
|
||
|
{
|
||
|
public:
|
||
|
CClipboardManager();
|
||
|
~CClipboardManager();
|
||
|
|
||
|
void EmptyClipboard( bool bClearWindowsClipboard );
|
||
|
void SetClipboardData( CUtlVector< KeyValues * >& data, IClipboardCleanup *pfnOptionalCleanuFunction );
|
||
|
void AddToClipboardData( KeyValues *add );
|
||
|
void GetClipboardData( CUtlVector< KeyValues * >& data );
|
||
|
bool HasClipboardData() const;
|
||
|
private:
|
||
|
CUtlVector< KeyValues * > m_Data;
|
||
|
IClipboardCleanup *m_pfnCleanup;
|
||
|
};
|
||
|
|
||
|
#endif // CLIPBOARDMANAGER_H
|