KDSingleApplication API Documentation  1.1
Functions | Variables
kdsingleapplication_localsocket.cpp File Reference
#include "kdsingleapplication_localsocket_p.h"
#include <QtCore/QDir>
#include <QtCore/QDeadlineTimer>
#include <QtCore/QTimer>
#include <QtCore/QLockFile>
#include <QtCore/QDataStream>
#include <QtCore/QtDebug>
#include <QtCore/QLoggingCategory>
#include <QtNetwork/QLocalServer>
#include <QtNetwork/QLocalSocket>
#include <chrono>
#include <algorithm>
#include "kdsingleapplication.h"

Go to the source code of this file.

Functions

template<typename Container >
static auto findConnectionBySocket (Container &container, QLocalSocket *socket)
 
template<typename Container >
static auto findConnectionByTimer (Container &container, QTimer *timer)
 
 Q_LOGGING_CATEGORY (kdsaLocalSocket, "kdsingleapplication.localsocket", QtWarningMsg)
 

Variables

static const auto LOCALSOCKET_CONNECTION_TIMEOUT = std::chrono::seconds(5)
 
static const char LOCALSOCKET_PROTOCOL_VERSION = 2
 

Function Documentation

◆ findConnectionBySocket()

template<typename Container >
static auto findConnectionBySocket ( Container &  container,
QLocalSocket *  socket 
)
static

Definition at line 248 of file kdsingleapplication_localsocket.cpp.

◆ findConnectionByTimer()

template<typename Container >
static auto findConnectionByTimer ( Container &  container,
QTimer *  timer 
)
static

Definition at line 258 of file kdsingleapplication_localsocket.cpp.

◆ Q_LOGGING_CATEGORY()

Q_LOGGING_CATEGORY ( kdsaLocalSocket  ,
"kdsingleapplication.localsocket"  ,
QtWarningMsg   
)

Variable Documentation

◆ LOCALSOCKET_CONNECTION_TIMEOUT

const auto LOCALSOCKET_CONNECTION_TIMEOUT = std::chrono::seconds(5)
static

Definition at line 42 of file kdsingleapplication_localsocket.cpp.

◆ LOCALSOCKET_PROTOCOL_VERSION

const char LOCALSOCKET_PROTOCOL_VERSION = 2
static

Definition at line 43 of file kdsingleapplication_localsocket.cpp.


© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
KDSingleApplication
A helper class for single-instance policy Qt applications
Generated by doxygen 1.9.1