2018-03-24 14:13:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QString>
|
2018-04-03 02:55:32 +02:00
|
|
|
#include <QStringList>
|
2018-03-24 14:13:04 +01:00
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
namespace chatterino {
|
|
|
|
|
|
|
|
class Exception : public std::runtime_error
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
using std::runtime_error::runtime_error;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Open streamlink for given channel, quality and extra arguments
|
2018-08-06 21:17:03 +02:00
|
|
|
// the "Additional arguments" are fetched and added at the beginning of the
|
|
|
|
// streamlink call
|
2018-07-06 19:23:47 +02:00
|
|
|
void openStreamlink(const QString &channelURL, const QString &quality,
|
2018-03-24 14:13:04 +01:00
|
|
|
QStringList extraArguments = QStringList());
|
|
|
|
|
2018-08-06 21:17:03 +02:00
|
|
|
// Start opening streamlink for the given channel, reading settings like quality
|
|
|
|
// from settings and opening a quality dialog if the quality is "Choose"
|
2018-07-06 19:23:47 +02:00
|
|
|
void openStreamlinkForChannel(const QString &channel);
|
2018-03-24 14:13:04 +01:00
|
|
|
|
|
|
|
} // namespace chatterino
|