CCIMXDesktop
 
Loading...
Searching...
No Matches
DesktopUserInfo.h
Go to the documentation of this file.
1
6#ifndef DESKTOPUSERINFO_H
7#define DESKTOPUSERINFO_H
8
9#include "UserInfo.h" // Includes the UserInfo struct/class definition
10#include <QObject> // Base class for DesktopUserInfo, enabling signals/slots
11#include <memory> // Required for std::unique_ptr
12
13// Forward declaration to avoid heavy includes and circular dependencies
15
28class DesktopUserInfo : public QObject {
29 Q_OBJECT
30
31public:
38 explicit DesktopUserInfo(DesktopDirentLocationManager* parent = nullptr);
39
40public slots:
47 void start_init();
48
56 inline UserInfo* get_info() { return info.get(); }
57
58signals:
63 void user_init_ok(const UserInfo& info);
64
65private:
72
78 std::unique_ptr<UserInfo> info;
79};
80
81#endif // DESKTOPUSERINFO_H
Defines the UserInfo class and its nested UserInfoBuilder class for managing user profile data.
Manages the locations and existence of various desktop directory entries and configuration files.
Definition DesktopDirentLocationManager.h:24
Manages the retrieval and provision of user-specific information within the desktop environment.
Definition DesktopUserInfo.h:28
UserInfo * get_info()
Retrieves a pointer to the UserInfo object.
Definition DesktopUserInfo.h:56
void user_init_ok(const UserInfo &info)
Signal emitted when the user information has been successfully initialized.
void start_init()
Initiates the user information initialization process.
Definition DesktopUserInfo.cpp:36
Represents a user's profile information, including name, email, phone number, and avatar path.
Definition UserInfo.h:22