22#ifndef QTPDCOM_LOGINMANAGER_H
23#define QTPDCOM_LOGINMANAGER_H
28#include <QScopedPointer>
33class LoginManagerPrivate;
51 explicit LoginManager(QString server_name = QString(), QObject *parent =
nullptr);
59 Q_INVOKABLE
void setAuthName(QString name);
65 Q_INVOKABLE
void setPassword(QString password);
71 Q_INVOKABLE
void clearCredentials();
83 Q_INVOKABLE
void login();
87 Q_INVOKABLE
void logout();
91 Q_INVOKABLE QString getErrorMessage();
101 static void InitLibrary(
const char *plugin_path =
nullptr);
104 static void FinalizeLibrary();
128 QScopedPointer<LoginManagerPrivate>
d_ptr;
#define QTPDCOM_PUBLIC
Definition Export.h:30
Class to handle the Authentication process.
Definition LoginManager.h:47
LoginManager & operator=(LoginManager &&)=delete
void loginSuccessful()
Authentification was successful.
void needCredentials()
Username and/or password has not been set.
Q_DECLARE_PRIVATE(LoginManager)
void loginFailed()
Authentification was not successful.
Q_DISABLE_COPY(LoginManager)
LoginManager(LoginManager &&)=delete
friend Process
Definition LoginManager.h:129
QScopedPointer< LoginManagerPrivate > d_ptr
Definition LoginManager.h:128
Definition BroadcastModel.h:32