21#ifndef SAYONARA_LASTFM_LOGIN_THREAD_H
22#define SAYONARA_LASTFM_LOGIN_THREAD_H
25#include "Utils/globals.h"
26#include "Utils/Pimpl.h"
36 bool hasError {
false};
38 [[nodiscard]]
bool isKeyValid()
const {
return (key.size() >= 32); }
40 [[nodiscard]]
bool isLoggedIn()
const {
return isKeyValid() && !hasError; }
56 void login(
const QString& username,
const QString& password);
58 [[nodiscard]]
LoginInfo loginInfo()
const;
61 void webClientFinished();
Definition: LFMLoginThread.h:45
Definition: LFMLoginThread.h:31