mirror-chatterino2/src/providers/LinkResolver.hpp

18 lines
308 B
C++
Raw Normal View History

2018-08-24 11:56:42 +02:00
#pragma once
#include <QString>
#include <functional>
2018-09-06 12:54:28 +02:00
#include "messages/Link.hpp"
2018-08-24 11:56:42 +02:00
namespace chatterino {
2018-08-25 20:38:14 +02:00
class LinkResolver
2018-08-24 11:56:42 +02:00
{
public:
2019-08-20 23:30:39 +02:00
static void getLinkInfo(const QString url, QObject *caller,
2018-10-21 13:43:02 +02:00
std::function<void(QString, Link)> callback);
2018-08-24 11:56:42 +02:00
};
} // namespace chatterino