2019-09-22 15:30:04 +02:00
|
|
|
#pragma once
|
|
|
|
|
2020-09-26 16:03:51 +02:00
|
|
|
#include <QApplication>
|
2021-01-23 16:26:42 +01:00
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "common/WindowDescriptors.hpp"
|
2019-10-07 18:57:33 +02:00
|
|
|
|
2019-09-22 15:30:04 +02:00
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
/// Command line arguments passed to Chatterino.
|
|
|
|
class Args
|
|
|
|
{
|
|
|
|
public:
|
2020-09-26 16:03:51 +02:00
|
|
|
Args(const QApplication &app);
|
2019-09-22 15:30:04 +02:00
|
|
|
|
2019-10-07 18:57:33 +02:00
|
|
|
bool printVersion{};
|
2019-09-22 15:30:04 +02:00
|
|
|
bool crashRecovery{};
|
2020-09-26 16:03:51 +02:00
|
|
|
bool shouldRunBrowserExtensionHost{};
|
|
|
|
bool dontSaveSettings{};
|
2021-01-23 16:26:42 +01:00
|
|
|
boost::optional<WindowLayout> customChannelLayout;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void applyCustomChannelLayout(const QString &argValue);
|
2019-09-22 15:30:04 +02:00
|
|
|
};
|
|
|
|
|
2020-09-26 16:03:51 +02:00
|
|
|
void initArgs(const QApplication &app);
|
2019-09-22 15:30:04 +02:00
|
|
|
const Args &getArgs();
|
|
|
|
|
|
|
|
} // namespace chatterino
|