Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SingleInstanceManager Class Reference

#include <single_instance_manager.h>

Inheritance diagram for SingleInstanceManager:
[legend]
Collaboration diagram for SingleInstanceManager:
[legend]

Signals

void filesReceived (const QStringList &files)

Public Member Functions

 SingleInstanceManager (QObject *parent=nullptr)
bool tryRun (const QStringList &initialFiles)

Private Types

enum class  ForwardResult { Delivered , NoPrimary , PrimaryBusy }

Private Slots

void handleNewConnection ()

Private Member Functions

ForwardResult forwardToPrimary (const QStringList &filesToSend)

Private Attributes

QString serverName
QLocalServer * server = nullptr

Member Enumeration Documentation

◆ ForwardResult

enum class SingleInstanceManager::ForwardResult
strongprivate
Enumerator
Delivered 
NoPrimary 
PrimaryBusy 

Constructor & Destructor Documentation

◆ SingleInstanceManager()

SingleInstanceManager::SingleInstanceManager ( QObject * parent = nullptr)
explicit

Member Function Documentation

◆ filesReceived

void SingleInstanceManager::filesReceived ( const QStringList & files)
signal
Here is the call graph for this function:
Here is the caller graph for this function:

◆ forwardToPrimary()

SingleInstanceManager::ForwardResult SingleInstanceManager::forwardToPrimary ( const QStringList & filesToSend)
private
Here is the caller graph for this function:

◆ handleNewConnection

void SingleInstanceManager::handleNewConnection ( )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tryRun()

bool SingleInstanceManager::tryRun ( const QStringList & initialFiles)
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ server

QLocalServer* SingleInstanceManager::server = nullptr
private

◆ serverName

QString SingleInstanceManager::serverName
private

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