Content Hub  0.2.0
A session-wide content-exchange service
com::ubuntu::content::Hub Class Reference

#include <hub.h>

+ Inheritance diagram for com::ubuntu::content::Hub:
+ Collaboration diagram for com::ubuntu::content::Hub:

Classes

struct  Client
 

Signals

void pasteFormatsChanged ()
 
void pasteboardChanged ()
 

Public Member Functions

 Hub (const Hub &)=delete
 
virtual ~Hub ()
 
Huboperator= (const Hub &)=delete
 
virtual Q_INVOKABLE void register_import_export_handler (ImportExportHandler *handler)
 
virtual Q_INVOKABLE const Storestore_for_scope_and_type (Scope scope, Type type)
 
virtual Q_INVOKABLE Peer default_source_for_type (Type type)
 
virtual Q_INVOKABLE QVector< Peerknown_sources_for_type (Type type)
 
virtual Q_INVOKABLE QVector< Peerknown_destinations_for_type (Type type)
 
virtual Q_INVOKABLE QVector< Peerknown_shares_for_type (Type type)
 
virtual Q_INVOKABLE Transfercreate_import_from_peer (Peer peer)
 
virtual Q_INVOKABLE Transfercreate_export_to_peer (Peer peer)
 
virtual Q_INVOKABLE Transfercreate_share_to_peer (Peer peer)
 
virtual Q_INVOKABLE void quit ()
 
virtual Q_INVOKABLE Transfercreate_import_from_peer_for_type (Peer peer, Type type)
 
virtual Q_INVOKABLE Transfercreate_export_to_peer_for_type (Peer peer, Type type)
 
virtual Q_INVOKABLE Transfercreate_share_to_peer_for_type (Peer peer, Type type)
 
virtual Q_INVOKABLE bool has_pending (QString peer_id)
 
virtual Q_INVOKABLE Peer peer_for_app_id (QString app_id)
 
QDBusPendingCall createPaste (const QString &surfaceId, const QMimeData &data)
 
QDBusPendingCall requestLatestPaste (const QString &surfaceId)
 
QDBusPendingCall requestPasteById (const QString &surfaceId, int pasteId)
 
QMimeData * paste (QDBusPendingCall requestPeply)
 
bool createPasteSync (const QString &surfaceId, const QMimeData &data)
 
QMimeData * latestPaste (const QString &surfaceId)
 
QMimeData * pasteById (const QString &surfaceId, int id)
 
QStringList pasteFormats ()
 

Protected Member Functions

 Hub (QObject *=nullptr)
 

Properties

QStringList pasteFormats
 

Detailed Description

Definition at line 41 of file hub.h.

Constructor & Destructor Documentation

com::ubuntu::content::Hub::Hub ( const Hub )
delete
virtual com::ubuntu::content::Hub::~Hub ( )
virtual
com::ubuntu::content::Hub::Hub ( QObject = nullptr)
protected

Member Function Documentation

virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_export_to_peer ( Peer  peer)
virtual
virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_export_to_peer_for_type ( Peer  peer,
Type  type 
)
virtual
virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_import_from_peer ( Peer  peer)
virtual
virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_import_from_peer_for_type ( Peer  peer,
Type  type 
)
virtual
virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_share_to_peer ( Peer  peer)
virtual
virtual Q_INVOKABLE Transfer* com::ubuntu::content::Hub::create_share_to_peer_for_type ( Peer  peer,
Type  type 
)
virtual
QDBusPendingCall com::ubuntu::content::Hub::createPaste ( const QString &  surfaceId,
const QMimeData &  data 
)
bool com::ubuntu::content::Hub::createPasteSync ( const QString &  surfaceId,
const QMimeData &  data 
)
virtual Q_INVOKABLE Peer com::ubuntu::content::Hub::default_source_for_type ( Type  type)
virtual
virtual Q_INVOKABLE bool com::ubuntu::content::Hub::has_pending ( QString  peer_id)
virtual
virtual Q_INVOKABLE QVector<Peer> com::ubuntu::content::Hub::known_destinations_for_type ( Type  type)
virtual
virtual Q_INVOKABLE QVector<Peer> com::ubuntu::content::Hub::known_shares_for_type ( Type  type)
virtual
virtual Q_INVOKABLE QVector<Peer> com::ubuntu::content::Hub::known_sources_for_type ( Type  type)
virtual
QMimeData* com::ubuntu::content::Hub::latestPaste ( const QString &  surfaceId)
Hub& com::ubuntu::content::Hub::operator= ( const Hub )
delete
QMimeData* com::ubuntu::content::Hub::paste ( QDBusPendingCall  requestPeply)
void com::ubuntu::content::Hub::pasteboardChanged ( )
signal
QMimeData* com::ubuntu::content::Hub::pasteById ( const QString &  surfaceId,
int  id 
)
QStringList com::ubuntu::content::Hub::pasteFormats ( )
void com::ubuntu::content::Hub::pasteFormatsChanged ( )
signal
virtual Q_INVOKABLE Peer com::ubuntu::content::Hub::peer_for_app_id ( QString  app_id)
virtual
virtual Q_INVOKABLE void com::ubuntu::content::Hub::quit ( )
virtual
virtual Q_INVOKABLE void com::ubuntu::content::Hub::register_import_export_handler ( ImportExportHandler handler)
virtual
QDBusPendingCall com::ubuntu::content::Hub::requestLatestPaste ( const QString &  surfaceId)
QDBusPendingCall com::ubuntu::content::Hub::requestPasteById ( const QString &  surfaceId,
int  pasteId 
)
virtual Q_INVOKABLE const Store* com::ubuntu::content::Hub::store_for_scope_and_type ( Scope  scope,
Type  type 
)
virtual

Property Documentation

QStringList com::ubuntu::content::Hub::pasteFormats
read

Definition at line 44 of file hub.h.


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