KDSingleApplication API Documentation 1.0
Loading...
Searching...
No Matches
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 dependency graph for kdsingleapplication_localsocket.cpp:

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 215 of file kdsingleapplication_localsocket.cpp.

◆ findConnectionByTimer()

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

Definition at line 225 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 38 of file kdsingleapplication_localsocket.cpp.

◆ LOCALSOCKET_PROTOCOL_VERSION

const char LOCALSOCKET_PROTOCOL_VERSION = 2
static

Definition at line 39 of file kdsingleapplication_localsocket.cpp.


© 2019-2023 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 on Wed Dec 20 2023 00:04:51 for KDSingleApplication API Documentation by doxygen 1.9.8