mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
2db140d5af
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
36 lines
826 B
C++
36 lines
826 B
C++
#pragma once
|
|
|
|
#include <QApplication>
|
|
#include <boost/optional.hpp>
|
|
#include "common/WindowDescriptors.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
/// Command line arguments passed to Chatterino.
|
|
class Args
|
|
{
|
|
public:
|
|
Args(const QApplication &app);
|
|
|
|
bool printVersion{};
|
|
bool crashRecovery{};
|
|
bool shouldRunBrowserExtensionHost{};
|
|
// Shows a single chat. Used on windows to embed in another application.
|
|
bool isFramelessEmbed{};
|
|
boost::optional<unsigned long long> parentWindowId{};
|
|
|
|
// Not settings directly
|
|
bool dontSaveSettings{};
|
|
bool dontLoadMainWindow{};
|
|
boost::optional<WindowLayout> customChannelLayout;
|
|
bool verbose{};
|
|
|
|
private:
|
|
void applyCustomChannelLayout(const QString &argValue);
|
|
};
|
|
|
|
void initArgs(const QApplication &app);
|
|
const Args &getArgs();
|
|
|
|
} // namespace chatterino
|