Content Hub
0.2.0
A session-wide content-exchange service
|
|
Go to the documentation of this file.
18 #ifndef COM_UBUNTU_CONTENT_HUB_H_
19 #define COM_UBUNTU_CONTENT_HUB_H_
29 class QDBusPendingCall;
66 Q_INVOKABLE
virtual void quit();
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_
QDBusPendingCall requestLatestPaste(const QString &surfaceId)
virtual Q_INVOKABLE QVector< Peer > known_shares_for_type(Type type)
virtual Q_INVOKABLE QVector< Peer > known_destinations_for_type(Type type)
virtual Q_INVOKABLE Transfer * create_export_to_peer_for_type(Peer peer, Type type)
virtual Q_INVOKABLE Peer peer_for_app_id(QString app_id)
virtual Q_INVOKABLE Transfer * create_import_from_peer(Peer peer)
virtual Q_INVOKABLE QVector< Peer > known_sources_for_type(Type type)
QMimeData * latestPaste(const QString &surfaceId)
virtual Q_INVOKABLE void register_import_export_handler(ImportExportHandler *handler)
QDBusPendingCall requestPasteById(const QString &surfaceId, int pasteId)
virtual Q_INVOKABLE const Store * store_for_scope_and_type(Scope scope, Type type)
virtual Q_INVOKABLE Peer default_source_for_type(Type type)
virtual Q_INVOKABLE Transfer * create_export_to_peer(Peer peer)
bool createPasteSync(const QString &surfaceId, const QMimeData &data)
add_custom_target(doc ALL) find_package(Doxygen) if(DOXYGEN_FOUND) configure_file($
virtual Q_INVOKABLE Transfer * create_share_to_peer_for_type(Peer peer, Type type)
QMimeData * paste(QDBusPendingCall requestPeply)
virtual Q_INVOKABLE Transfer * create_share_to_peer(Peer peer)
if(QDOC_EXECUTABLE) configure_file($
void pasteFormatsChanged()
virtual Q_INVOKABLE bool has_pending(QString peer_id)
virtual Q_INVOKABLE Transfer * create_import_from_peer_for_type(Peer peer, Type type)
virtual Q_INVOKABLE void quit()
QStringList pasteFormats()
QMimeData * pasteById(const QString &surfaceId, int id)
Hub & operator=(const Hub &)=delete
QDBusPendingCall createPaste(const QString &surfaceId, const QMimeData &data)