25 const qint32 GetId()
const;
32 int SetFormat(
const CLIPRDR_FORMAT_LIST* pList);
35 void sigSendDataRequest(CliprdrClientContext* context,
36 UINT32 formatId)
const;
40 virtual bool hasFormat(
const QString &mimetype)
const override;
41 virtual QStringList formats()
const override;
46 void slotServerFileContentsRespose(UINT32 streamId, QByteArray& data);
49#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
50 virtual QVariant retrieveData(
const QString &mimeType, QMetaType preferredType)
const override;
52 virtual QVariant retrieveData(
const QString &mimeType, QVariant::Type preferredType)
const override;
56 int AddFormat(UINT32
id,
const char *name);
58 bool isText(QString mimeType,
bool bRegular =
true)
const;
59 bool isHtml(QString mimeType,
bool bRegular =
true)
const;
60 bool isImage(QString mimeType,
bool bRegular =
true)
const;
61 bool isUrls(QString mimeType,
bool bRegular =
true)
const;
64 void sigRequestFileFromServer(
const QString& mimetype,
const QString& valueName,
65 const void* pData,
const UINT32 nLen)
const;
67 void slotRequestFileFromServer(
const QString& mimeType,
const QString& valueName,
68 const void* pData,
const UINT32 nLen);
70 UINT sendRequestFilecontents(UINT32 listIndex,
78 static QAtomicInteger<qint32> m_nId;
81 CliprdrClientContext* m_pContext;
82 wClipboard* m_pClipboard;
84 QVector<_FORMAT> m_Formats;
85 QMultiMap<QString, _FORMAT> m_indexString;
86 QMap<UINT32, _FORMAT> m_indexId;
87 QStringList m_lstFormats;
90 QVariant m_gnomeFiles;
100 QMap<UINT32, QSharedPointer<_CliprdrFileStream> > m_Stream;