mirror-chatterino2/src/providers/LinkResolver.hpp

24 lines
383 B
C++
Raw Normal View History

2018-08-24 11:56:42 +02:00
#pragma once
#include <QObject>
#include <QString>
#include <functional>
#include <memory>
2018-08-24 11:56:42 +02:00
namespace chatterino {
class Image;
struct Link;
using ImagePtr = std::shared_ptr<Image>;
2018-08-25 20:38:14 +02:00
class LinkResolver
2018-08-24 11:56:42 +02:00
{
public:
static void getLinkInfo(
const QString url, QObject *caller,
std::function<void(QString, Link, ImagePtr)> callback);
2018-08-24 11:56:42 +02:00
};
} // namespace chatterino