Rabbit Remote Control 0.0.31
Loading...
Searching...
No Matches
Classes | Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
CClipboardMimeData Class Reference
Inheritance diagram for CClipboardMimeData:

Classes

struct  _CliprdrFileStream
 
struct  _FORMAT
 

Public Slots

void slotServerFormatData (const BYTE *pData, UINT32 nLen, UINT32 id)
 if(pData == nullptr && nLen == 0) is Notify clipboard program has exited
 
void slotServerFileContentsRespose (UINT32 streamId, QByteArray &data)
 

Signals

void sigSendDataRequest (CliprdrClientContext *context, UINT32 formatId) const
 
void sigContinue ()
 
void sigRequestFileFromServer (const QString &mimetype, const QString &valueName, const void *pData, const UINT32 nLen) const
 

Public Member Functions

 CClipboardMimeData (CliprdrClientContext *pContext)
 
const qint32 GetId () const
 
int SetFormat (const CLIPRDR_FORMAT_LIST *pList)
 
virtual bool hasFormat (const QString &mimetype) const override
 
virtual QStringList formats () const override
 

Protected Member Functions

virtual QVariant retrieveData (const QString &mimeType, QMetaType preferredType) const override
 

Private Slots

void slotRequestFileFromServer (const QString &mimeType, const QString &valueName, const void *pData, const UINT32 nLen)
 

Private Member Functions

int AddFormat (UINT32 id, const char *name)
 
bool isText (QString mimeType, bool bRegular=true) const
 
bool isHtml (QString mimeType, bool bRegular=true) const
 
bool isImage (QString mimeType, bool bRegular=true) const
 
bool isUrls (QString mimeType, bool bRegular=true) const
 
UINT sendRequestFilecontents (UINT32 listIndex, UINT32 dwFlags, DWORD nPositionHigh, DWORD nPositionLow, UINT32 cbRequested)
 

Private Attributes

friend CClipboardFreeRDP
 
qint32 m_Id
 
CliprdrClientContext * m_pContext
 
wClipboard * m_pClipboard
 
QVector< _FORMATm_Formats
 
QMultiMap< QString, _FORMATm_indexString
 
QMap< UINT32, _FORMATm_indexId
 
QStringList m_lstFormats
 
QVariant m_Variant
 
QVariant m_gnomeFiles
 
QVariant m_uriFiles
 
bool m_bExit
 
QMap< UINT32, QSharedPointer< _CliprdrFileStream > > m_Stream
 

Static Private Attributes

static QAtomicInteger< qint32 > m_nId
 

Detailed Description

Definition at line 18 of file ClipboardMimeData.h.

Constructor & Destructor Documentation

◆ ~CClipboardMimeData()

CClipboardMimeData::~CClipboardMimeData ( )
virtual

Definition at line 58 of file ClipboardMimeData.cpp.

Member Function Documentation

◆ AddFormat()

int CClipboardMimeData::AddFormat ( UINT32  id,
const char *  name 
)
private

Definition at line 199 of file ClipboardMimeData.cpp.

◆ formats()

QStringList CClipboardMimeData::formats ( ) const
overridevirtual

Definition at line 245 of file ClipboardMimeData.cpp.

◆ GetId()

const qint32 CClipboardMimeData::GetId ( ) const

Definition at line 66 of file ClipboardMimeData.cpp.

◆ hasFormat()

bool CClipboardMimeData::hasFormat ( const QString &  mimetype) const
overridevirtual

Definition at line 232 of file ClipboardMimeData.cpp.

◆ isHtml()

bool CClipboardMimeData::isHtml ( QString  mimeType,
bool  bRegular = true 
) const
private

Definition at line 413 of file ClipboardMimeData.cpp.

◆ isImage()

bool CClipboardMimeData::isImage ( QString  mimeType,
bool  bRegular = true 
) const
private

Definition at line 438 of file ClipboardMimeData.cpp.

◆ isText()

bool CClipboardMimeData::isText ( QString  mimeType,
bool  bRegular = true 
) const
private

Definition at line 395 of file ClipboardMimeData.cpp.

◆ isUrls()

bool CClipboardMimeData::isUrls ( QString  mimeType,
bool  bRegular = true 
) const
private

Definition at line 423 of file ClipboardMimeData.cpp.

◆ retrieveData()

QVariant CClipboardMimeData::retrieveData ( const QString &  mimeType,
QMetaType  preferredType 
) const
overrideprotectedvirtual

Definition at line 253 of file ClipboardMimeData.cpp.

◆ sendRequestFilecontents()

UINT CClipboardMimeData::sendRequestFilecontents ( UINT32  listIndex,
UINT32  dwFlags,
DWORD  nPositionHigh,
DWORD  nPositionLow,
UINT32  cbRequested 
)
private

Definition at line 610 of file ClipboardMimeData.cpp.

◆ SetFormat()

int CClipboardMimeData::SetFormat ( const CLIPRDR_FORMAT_LIST *  pList)

Definition at line 71 of file ClipboardMimeData.cpp.

◆ slotRequestFileFromServer

void CClipboardMimeData::slotRequestFileFromServer ( const QString &  mimeType,
const QString &  valueName,
const void *  pData,
const UINT32  nLen 
)
privateslot

Definition at line 456 of file ClipboardMimeData.cpp.

◆ slotServerFileContentsRespose

void CClipboardMimeData::slotServerFileContentsRespose ( UINT32  streamId,
QByteArray &  data 
)
slot

Definition at line 660 of file ClipboardMimeData.cpp.

◆ slotServerFormatData

void CClipboardMimeData::slotServerFormatData ( const BYTE *  pData,
UINT32  nLen,
UINT32  id 
)
slot

if(pData == nullptr && nLen == 0) is Notify clipboard program has exited

Definition at line 303 of file ClipboardMimeData.cpp.

Member Data Documentation

◆ CClipboardFreeRDP

friend CClipboardMimeData::CClipboardFreeRDP
private

Definition at line 76 of file ClipboardMimeData.h.

◆ m_bExit

bool CClipboardMimeData::m_bExit
private

Definition at line 92 of file ClipboardMimeData.h.

◆ m_Formats

QVector<_FORMAT> CClipboardMimeData::m_Formats
private

Definition at line 84 of file ClipboardMimeData.h.

◆ m_gnomeFiles

QVariant CClipboardMimeData::m_gnomeFiles
private

Definition at line 90 of file ClipboardMimeData.h.

◆ m_Id

qint32 CClipboardMimeData::m_Id
private

Definition at line 79 of file ClipboardMimeData.h.

◆ m_indexId

QMap<UINT32, _FORMAT> CClipboardMimeData::m_indexId
private

Definition at line 86 of file ClipboardMimeData.h.

◆ m_indexString

QMultiMap<QString, _FORMAT> CClipboardMimeData::m_indexString
private

Definition at line 85 of file ClipboardMimeData.h.

◆ m_lstFormats

QStringList CClipboardMimeData::m_lstFormats
private

Definition at line 87 of file ClipboardMimeData.h.

◆ m_nId

QAtomicInteger< qint32 > CClipboardMimeData::m_nId
staticprivate

Definition at line 78 of file ClipboardMimeData.h.

◆ m_pClipboard

wClipboard* CClipboardMimeData::m_pClipboard
private

Definition at line 82 of file ClipboardMimeData.h.

◆ m_pContext

CliprdrClientContext* CClipboardMimeData::m_pContext
private

Definition at line 81 of file ClipboardMimeData.h.

◆ m_Stream

QMap<UINT32, QSharedPointer<_CliprdrFileStream> > CClipboardMimeData::m_Stream
private

Definition at line 100 of file ClipboardMimeData.h.

◆ m_uriFiles

QVariant CClipboardMimeData::m_uriFiles
private

Definition at line 91 of file ClipboardMimeData.h.

◆ m_Variant

QVariant CClipboardMimeData::m_Variant
private

Definition at line 89 of file ClipboardMimeData.h.


The documentation for this class was generated from the following files: