Files
wino-mail-dtkqt/include/gmailauthenticator.h
T

20 lines
529 B
C++

// gmailauthenticator.h
#ifndef GMAILAUTHENTICATOR_H
#define GMAILAUTHENTICATOR_H
#include "authenticator.h"
#include "request.h"
#include <QString>
class GmailAuthenticator : public IAuthenticator {
public:
GmailAuthenticator(EventBus* bus);
bool authenticate(const QString& username, const QString& password, const QString& scope = "email");
private:
EventBus* m_eventBus;
// Placeholder for actual OAuth flow management
bool performOAuth2Flow(const QString& authCode);
};
#endif // GMAILAUTHENTICATOR_H