Chatterino
Args.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QApplication>
4 #include <boost/optional.hpp>
6 
7 namespace chatterino {
8 
10 class Args
11 {
12 public:
13  Args(const QApplication &app);
14 
15  bool printVersion{};
16  bool crashRecovery{};
18  // Shows a single chat. Used on windows to embed in another application.
20  boost::optional<unsigned long long> parentWindowId{};
21 
22  // Not settings directly
25  boost::optional<WindowLayout> customChannelLayout;
26  bool verbose{};
27 
28 private:
29  void applyCustomChannelLayout(const QString &argValue);
30 };
31 
32 void initArgs(const QApplication &app);
33 const Args &getArgs();
34 
35 } // namespace chatterino
bool verbose
Definition: Args.hpp:26
Definition: Application.cpp:48
bool crashRecovery
Definition: Args.hpp:16
bool dontSaveSettings
Definition: Args.hpp:23
Command line arguments passed to Chatterino.
Definition: Args.hpp:10
boost::optional< WindowLayout > customChannelLayout
Definition: Args.hpp:25
Args(const QApplication &app)
Definition: Args.cpp:19
bool shouldRunBrowserExtensionHost
Definition: Args.hpp:17
const Args & getArgs()
Definition: Args.cpp:174
bool printVersion
Definition: Args.hpp:15
bool dontLoadMainWindow
Definition: Args.hpp:24
boost::optional< unsigned long long > parentWindowId
Definition: Args.hpp:20
bool isFramelessEmbed
Definition: Args.hpp:19
void initArgs(const QApplication &app)
Definition: Args.cpp:169