mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
24 lines
513 B
C++
24 lines
513 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QString>
|
||
|
#include <functional>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
class Credentials
|
||
|
{
|
||
|
public:
|
||
|
static Credentials &getInstance();
|
||
|
|
||
|
QString get(const QString &provider, const QString &name,
|
||
|
std::function<void(QString)> &&onLoaded);
|
||
|
void set(const QString &provider, const QString &name,
|
||
|
const QString &credential);
|
||
|
void erase(const QString &provider, const QString &name);
|
||
|
|
||
|
private:
|
||
|
Credentials();
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|