ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include "mainwindow.h"
#include <QApplication>
#include <QDateTime>
#include <QSharedMemory>
#include <QCommandLineParser>
#include <cstring>
#include <unistd.h>
#include <signal.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | SHMEM_SIZE 128 * 1024 |
#define | SHMEM_SIZE_V015 16 |
Enumerations | |
enum | CommandLineParseResults { CommandLineOK, CommandLineError, CommandLineVersionRequested, CommandLineHelpRequested, CommandLineClose, CommandLineBackground } |
Functions | |
QSharedMemory | appShare ("ckb") |
CommandLineParseResults | parseCommandLine (QCommandLineParser &parser, QString *errorMessage) |
parseCommandLine - Setup options and parse command line arguments. More... | |
static bool | pidActive (const QStringList &lines) |
static bool | isRunning (const char *command) |
int | main (int argc, char *argv[]) |
#define SHMEM_SIZE 128 * 1024 |
Definition at line 20 of file main.cpp.
Referenced by isRunning().
#define SHMEM_SIZE_V015 16 |
Definition at line 21 of file main.cpp.
Referenced by isRunning().
Enumerator | |
---|---|
CommandLineOK | |
CommandLineError | |
CommandLineVersionRequested | |
CommandLineHelpRequested | |
CommandLineClose | |
CommandLineBackground |
Definition at line 24 of file main.cpp.
QSharedMemory appShare | ( | "ckb" | ) |
|
static |
Definition at line 109 of file main.cpp.
References appShare(), pidActive(), SHMEM_SIZE, and SHMEM_SIZE_V015.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 148 of file main.cpp.
References CommandLineBackground, CommandLineClose, CommandLineError, CommandLineHelpRequested, CommandLineOK, CommandLineVersionRequested, disableAppNap(), isRunning(), and parseCommandLine().
CommandLineParseResults parseCommandLine | ( | QCommandLineParser & | parser, |
QString * | errorMessage | ||
) |
parser | parser instance to use for parse the arguments |
errorMessage | argument parse error message |
Definition at line 41 of file main.cpp.
References CommandLineBackground, CommandLineClose, CommandLineError, CommandLineHelpRequested, CommandLineOK, and CommandLineVersionRequested.
Referenced by main().
|
static |
Definition at line 92 of file main.cpp.
Referenced by isRunning().