Chatterino
StreamLink.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QString>
4 #include <QStringList>
5 
6 #include <stdexcept>
7 #include <string>
8 
9 namespace chatterino {
10 
11 class Exception : public std::runtime_error
12 {
13 public:
14  using std::runtime_error::runtime_error;
15 };
16 
17 // Open streamlink for given channel, quality and extra arguments
18 // the "Additional arguments" are fetched and added at the beginning of the
19 // streamlink call
20 void openStreamlink(const QString &channelURL, const QString &quality,
21  QStringList extraArguments = QStringList());
22 
23 // Start opening streamlink for the given channel, reading settings like quality
24 // from settings and opening a quality dialog if the quality is "Choose"
25 void openStreamlinkForChannel(const QString &channel);
26 
27 } // namespace chatterino
void openStreamlink(const QString &channelURL, const QString &quality, QStringList extraArguments)
Definition: StreamLink.cpp:187
Definition: Application.cpp:48
Definition: StreamLink.hpp:11
void openStreamlinkForChannel(const QString &channel)
Definition: StreamLink.cpp:210