@ -134,6 +134,12 @@ QtLocalPeer::QtLocalPeer(QObject* parent, const QString &appId)
lockFile.open(QIODevice::ReadWrite);
}
QtLocalPeer::~QtLocalPeer()
{
lockFile.unlock();
lockFile.remove();
bool QtLocalPeer::isClient()
if (lockFile.isLocked())
@ -78,6 +78,7 @@ class QtLocalPeer : public QObject
public:
QtLocalPeer(QObject *parent = nullptr, const QString &appId = QString());
~QtLocalPeer() override;
bool isClient();
bool sendMessage(const QString &message, int timeout);