blob: 7de90e0e2ff0800c20b401802d9fe1f56f52913f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef CREDENTIALS_H
#define CREDENTIALS_H
#include "client.h"
#include <QObject>
#include <QList>
#include <QPair>
#include <QStringList>
class Credentials : public QObject
{
Q_OBJECT
public:
using Pair = QPair<QString, QString>;
QList<Pair> load();
public Q_SLOTS:
void store(Client *c);
private:
static void storeUser(const QString &user);
static QString storedUsersList();
static QStringList storedUsers();
};
#endif
|