Miam-Player  0.8.0
A nice music player
QtLocalPeer Class Reference

#include <qtlocalpeer.h>

Inheritance diagram for QtLocalPeer:

Signals

void messageReceived (const QString &message)
 

Public Member Functions

 QtLocalPeer (QObject *parent=nullptr, const QString &appId=QString())
 
bool isClient ()
 
bool sendMessage (const QStringList &args, int timeout)
 
bool sendMessage (const QString &message, int timeout)
 
QString applicationId () const
 

Protected Slots

void receiveConnection ()
 

Protected Attributes

QString id
 
QString socketName
 
QLocalServer * server
 
QtLP_Private::QtLockedFile lockFile
 

Constructor & Destructor Documentation

§ QtLocalPeer()

QtLocalPeer::QtLocalPeer ( QObject *  parent = nullptr,
const QString &  appId = QString() 
)

Member Function Documentation

§ applicationId()

QString QtLocalPeer::applicationId ( ) const
inline

§ isClient()

bool QtLocalPeer::isClient ( )

§ messageReceived

void QtLocalPeer::messageReceived ( const QString &  message)
signal

§ receiveConnection

void QtLocalPeer::receiveConnection ( )
protectedslot

§ sendMessage() [1/2]

bool QtLocalPeer::sendMessage ( const QStringList &  args,
int  timeout 
)

§ sendMessage() [2/2]

bool QtLocalPeer::sendMessage ( const QString &  message,
int  timeout 
)

Member Data Documentation

§ id

QString QtLocalPeer::id
protected

§ lockFile

QtLP_Private::QtLockedFile QtLocalPeer::lockFile
protected

§ server

QLocalServer* QtLocalPeer::server
protected

§ socketName

QString QtLocalPeer::socketName
protected

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