XX CMake Package
Loading...
Searching...
No Matches
XXShared.h
Go to the documentation of this file.
1#ifndef XXSharedH
2#define XXSharedH
3
5
6#include <QStandardPaths>
7
8namespace XX
9{
12
13 template <CompileTimeString AppName>
14 struct Shared
15 {
16 static QString appName();
18 static QString compileSharedFileName(const QString& suffix, const QStandardPaths::StandardLocation& location = QStandardPaths::HomeLocation);
20 static QString socketName();
22 static bool isServerActive();
24 static void startApplication();
25 };
26} // namespace XX
27
28#ifndef XXSharedHPP
29#include "XXShared.hpp"
30#endif // NOT XXSharedHPP
31
32#endif // NOT XXSharedH
Definition XXPopulatedAbstract.h:11
tools for shared application
Definition XXShared.h:15
static QString compileSharedFileName(const QString &suffix, const QStandardPaths::StandardLocation &location=QStandardPaths::HomeLocation)
generates a file name for a shared resource
static QString appName()
static void startApplication()
starts the application if not already running
static QString socketName()
generates a name for a local socket
static bool isServerActive()
check if local server is active