#ifndef AUTOLOGIN_HELPER_H
#define AUTOLOGIN_HELPER_H

#include <QString>

class AutoLoginHelper
{
public:
    // Check if auto login is enabled for a user
    static bool isAutoLoginEnabled(const QString& username);
    
    // Set auto login for a user (requires pkexec)
    // Returns true on success, error message on failure
    static bool setAutoLogin(const QString& username, bool enable, QString* errorMsg = nullptr);
    
private:
    // Detect display manager (lightdm, sddm, gdm, etc.)
    static QString detectDisplayManager();
};

#endif // AUTOLOGIN_HELPER_H
