mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-02 03:35:04 +00:00
37 lines
742 B
C++
37 lines
742 B
C++
#pragma once
|
|
|
|
#include <qdatetime.h>
|
|
#include <qstring.h>
|
|
|
|
struct InstanceInfo {
|
|
QString instanceId;
|
|
QString configPath;
|
|
QString shellId;
|
|
QString initialWorkdir;
|
|
QDateTime launchTime;
|
|
|
|
static InstanceInfo CURRENT; // NOLINT
|
|
};
|
|
|
|
struct RelaunchInfo {
|
|
InstanceInfo instance;
|
|
bool noColor = false;
|
|
bool sparseLogsOnly = false;
|
|
};
|
|
|
|
QDataStream& operator<<(QDataStream& stream, const InstanceInfo& info);
|
|
QDataStream& operator>>(QDataStream& stream, InstanceInfo& info);
|
|
|
|
QDataStream& operator<<(QDataStream& stream, const RelaunchInfo& info);
|
|
QDataStream& operator>>(QDataStream& stream, RelaunchInfo& info);
|
|
|
|
namespace qs::crash {
|
|
|
|
struct CrashInfo {
|
|
int logFd = -1;
|
|
|
|
static CrashInfo INSTANCE; // NOLINT
|
|
};
|
|
|
|
} // namespace qs::crash
|