34 lines
470 B
C++
34 lines
470 B
C++
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QDateTime>
|
|
#include <QMap>
|
|
#include <QVariantMap>
|
|
|
|
namespace Katabasis {
|
|
enum class Activity {
|
|
Idle,
|
|
LoggingIn,
|
|
LoggingOut,
|
|
Refreshing
|
|
};
|
|
|
|
enum class Validity {
|
|
None,
|
|
Assumed,
|
|
Certain
|
|
};
|
|
|
|
struct Token {
|
|
QDateTime issueInstant;
|
|
QDateTime notAfter;
|
|
QString token;
|
|
QString refresh_token;
|
|
QVariantMap extra;
|
|
|
|
Validity validity = Validity::None;
|
|
bool persistent = true;
|
|
};
|
|
|
|
}
|