18 #ifndef COM_UBUNTU_CONTENT_HUB_H_ 19 #define COM_UBUNTU_CONTENT_HUB_H_ 29 class QDBusPendingCall;
66 Q_INVOKABLE
virtual void quit();
71 Q_INVOKABLE
virtual bool has_pending(QString peer_id);
77 QDBusPendingCall
createPaste(
const QString &surfaceId,
const QMimeData& data);
81 QMimeData*
paste(QDBusPendingCall requestPeply);
86 QMimeData*
pasteById(
const QString &surfaceId,
int id);
95 void onPasteFormatsChanged(
const QStringList &);
100 void requestPasteFormats();
102 QScopedPointer<Private> d;
103 bool eventFilter(
QObject *obj, QEvent *event);
109 #endif // COM_UBUNTU_CONTENT_HUB_H_
Hub & operator=(const Hub &)=delete
virtual Q_INVOKABLE Transfer * create_share_to_peer(Peer peer)
QDBusPendingCall createPaste(const QString &surfaceId, const QMimeData &data)
virtual Q_INVOKABLE QVector< Peer > known_sources_for_type(Type type)
QMimeData * pasteById(const QString &surfaceId, int id)
virtual Q_INVOKABLE Transfer * create_import_from_peer(Peer peer)
virtual Q_INVOKABLE void quit()
virtual Q_INVOKABLE QVector< Peer > known_shares_for_type(Type type)
virtual Q_INVOKABLE Transfer * create_export_to_peer(Peer peer)
QDBusPendingCall requestPasteById(const QString &surfaceId, int pasteId)
virtual Q_INVOKABLE Transfer * create_export_to_peer_for_type(Peer peer, Type type)
virtual Q_INVOKABLE void register_import_export_handler(ImportExportHandler *handler)
virtual Q_INVOKABLE const Store * store_for_scope_and_type(Scope scope, Type type)
void pasteFormatsChanged()
virtual Q_INVOKABLE Peer default_source_for_type(Type type)
virtual Q_INVOKABLE Transfer * create_import_from_peer_for_type(Peer peer, Type type)
QDBusPendingCall requestLatestPaste(const QString &surfaceId)
virtual Q_INVOKABLE bool has_pending(QString peer_id)
bool createPasteSync(const QString &surfaceId, const QMimeData &data)
QMimeData * latestPaste(const QString &surfaceId)
QMimeData * paste(QDBusPendingCall requestPeply)
QStringList pasteFormats()
virtual Q_INVOKABLE QVector< Peer > known_destinations_for_type(Type type)
virtual Q_INVOKABLE Transfer * create_share_to_peer_for_type(Peer peer, Type type)
virtual Q_INVOKABLE Peer peer_for_app_id(QString app_id)