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

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

+ Inheritance diagram for com::lomiri::content::Peer:
+ Collaboration diagram for com::lomiri::content::Peer:

Public Member Functions

 Peer (const QString &id=QString(), bool isDefaultPeer=false, QObject *parent=nullptr)
 
 Peer (const QString &, const QString &, QByteArray &, const QString &, bool, QObject *parent=nullptr)
 
 Peer (const Peer &rhs)
 
virtual ~Peer ()
 
Peeroperator= (const Peer &rhs)
 
bool operator== (const Peer &rhs) const
 
virtual Q_INVOKABLE const QString & id () const
 
virtual Q_INVOKABLE QString name () const
 
Q_INVOKABLE void setName (const QString &)
 
virtual Q_INVOKABLE QByteArray iconData () const
 
Q_INVOKABLE void setIconData (const QByteArray &)
 
virtual Q_INVOKABLE QString iconName () const
 
Q_INVOKABLE void setIconName (const QString &)
 
virtual Q_INVOKABLE bool isDefaultPeer () const
 

Static Public Member Functions

static const Peerunknown ()
 

Properties

QString id
 
QString name
 
QString iconName
 
bool isDefaultPeer
 

Detailed Description

Definition at line 31 of file peer.h.

Constructor & Destructor Documentation

◆ Peer() [1/3]

com::lomiri::content::Peer::Peer ( const QString &  id = QString(),
bool  isDefaultPeer = false,
QObject parent = nullptr 
)

◆ Peer() [2/3]

com::lomiri::content::Peer::Peer ( const QString &  ,
const QString &  ,
QByteArray &  ,
const QString &  ,
bool  ,
QObject parent = nullptr 
)

◆ Peer() [3/3]

com::lomiri::content::Peer::Peer ( const Peer rhs)

◆ ~Peer()

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

Member Function Documentation

◆ iconData()

virtual Q_INVOKABLE QByteArray com::lomiri::content::Peer::iconData ( ) const
virtual

◆ iconName()

virtual Q_INVOKABLE QString com::lomiri::content::Peer::iconName ( ) const
virtual

◆ id()

virtual Q_INVOKABLE const QString & com::lomiri::content::Peer::id ( ) const
virtual

◆ isDefaultPeer()

virtual Q_INVOKABLE bool com::lomiri::content::Peer::isDefaultPeer ( ) const
virtual

◆ name()

virtual Q_INVOKABLE QString com::lomiri::content::Peer::name ( ) const
virtual

◆ operator=()

Peer & com::lomiri::content::Peer::operator= ( const Peer rhs)

◆ operator==()

bool com::lomiri::content::Peer::operator== ( const Peer rhs) const

◆ setIconData()

Q_INVOKABLE void com::lomiri::content::Peer::setIconData ( const QByteArray &  )

◆ setIconName()

Q_INVOKABLE void com::lomiri::content::Peer::setIconName ( const QString &  )

◆ setName()

Q_INVOKABLE void com::lomiri::content::Peer::setName ( const QString &  )

◆ unknown()

static const Peer & com::lomiri::content::Peer::unknown ( )
static

Property Documentation

◆ iconName

QString com::lomiri::content::Peer::iconName
readwrite

Definition at line 36 of file peer.h.

◆ id

QString com::lomiri::content::Peer::id
read

Definition at line 34 of file peer.h.

◆ isDefaultPeer

bool com::lomiri::content::Peer::isDefaultPeer
read

Definition at line 37 of file peer.h.

◆ name

QString com::lomiri::content::Peer::name
readwrite

Definition at line 35 of file peer.h.


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