Lomiri Content Hub 1.0.0
A session-wide content-exchange service
 
Loading...
Searching...
No Matches
com::lomiri::content::Hub Class Reference

#include <com/lomiri/content/hub.h>

+ Inheritance diagram for com::lomiri::content::Hub:
+ Collaboration diagram for com::lomiri::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

◆ Hub() [1/2]

com::lomiri::content::Hub::Hub ( const Hub )
delete

◆ ~Hub()

virtual com::lomiri::content::Hub::~Hub ( )
virtual

◆ Hub() [2/2]

com::lomiri::content::Hub::Hub ( QObject = nullptr)
protected

Member Function Documentation

◆ create_export_to_peer()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_export_to_peer ( Peer  peer)
virtual

◆ create_export_to_peer_for_type()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_export_to_peer_for_type ( Peer  peer,
Type  type 
)
virtual

◆ create_import_from_peer()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_import_from_peer ( Peer  peer)
virtual

◆ create_import_from_peer_for_type()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_import_from_peer_for_type ( Peer  peer,
Type  type 
)
virtual

◆ create_share_to_peer()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_share_to_peer ( Peer  peer)
virtual

◆ create_share_to_peer_for_type()

virtual Q_INVOKABLE Transfer * com::lomiri::content::Hub::create_share_to_peer_for_type ( Peer  peer,
Type  type 
)
virtual

◆ createPaste()

QDBusPendingCall com::lomiri::content::Hub::createPaste ( const QString &  surfaceId,
const QMimeData &  data 
)

◆ createPasteSync()

bool com::lomiri::content::Hub::createPasteSync ( const QString &  surfaceId,
const QMimeData &  data 
)

◆ default_source_for_type()

virtual Q_INVOKABLE Peer com::lomiri::content::Hub::default_source_for_type ( Type  type)
virtual

◆ has_pending()

virtual Q_INVOKABLE bool com::lomiri::content::Hub::has_pending ( QString  peer_id)
virtual

◆ known_destinations_for_type()

virtual Q_INVOKABLE QVector< Peer > com::lomiri::content::Hub::known_destinations_for_type ( Type  type)
virtual

◆ known_shares_for_type()

virtual Q_INVOKABLE QVector< Peer > com::lomiri::content::Hub::known_shares_for_type ( Type  type)
virtual

◆ known_sources_for_type()

virtual Q_INVOKABLE QVector< Peer > com::lomiri::content::Hub::known_sources_for_type ( Type  type)
virtual

◆ latestPaste()

QMimeData * com::lomiri::content::Hub::latestPaste ( const QString &  surfaceId)

◆ operator=()

Hub & com::lomiri::content::Hub::operator= ( const Hub )
delete

◆ paste()

QMimeData * com::lomiri::content::Hub::paste ( QDBusPendingCall  requestPeply)

◆ pasteboardChanged

void com::lomiri::content::Hub::pasteboardChanged ( )
signal

◆ pasteById()

QMimeData * com::lomiri::content::Hub::pasteById ( const QString &  surfaceId,
int  id 
)

◆ pasteFormats()

QStringList com::lomiri::content::Hub::pasteFormats ( )

◆ pasteFormatsChanged

void com::lomiri::content::Hub::pasteFormatsChanged ( )
signal

◆ peer_for_app_id()

virtual Q_INVOKABLE Peer com::lomiri::content::Hub::peer_for_app_id ( QString  app_id)
virtual

◆ quit()

virtual Q_INVOKABLE void com::lomiri::content::Hub::quit ( )
virtual

◆ register_import_export_handler()

virtual Q_INVOKABLE void com::lomiri::content::Hub::register_import_export_handler ( ImportExportHandler handler)
virtual

◆ requestLatestPaste()

QDBusPendingCall com::lomiri::content::Hub::requestLatestPaste ( const QString &  surfaceId)

◆ requestPasteById()

QDBusPendingCall com::lomiri::content::Hub::requestPasteById ( const QString &  surfaceId,
int  pasteId 
)

◆ store_for_scope_and_type()

virtual Q_INVOKABLE const Store * com::lomiri::content::Hub::store_for_scope_and_type ( Scope  scope,
Type  type 
)
virtual

Property Documentation

◆ pasteFormats

QStringList com::lomiri::content::Hub::pasteFormats
read

Definition at line 44 of file hub.h.


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