Manages the retrieval and provision of user-specific information within the desktop environment. More...
#include <DesktopUserInfo.h>
Public Slots | |
| void | start_init () |
| Initiates the user information initialization process. | |
| UserInfo * | get_info () |
Retrieves a pointer to the UserInfo object. | |
Signals | |
| void | user_init_ok (const UserInfo &info) |
| Signal emitted when the user information has been successfully initialized. | |
Public Member Functions | |
| DesktopUserInfo (DesktopDirentLocationManager *parent=nullptr) | |
| Constructs a DesktopUserInfo object. | |
Manages the retrieval and provision of user-specific information within the desktop environment.
This class is responsible for initializing and holding a UserInfo object, which contains details about the current user. It interacts with a DesktopDirentLocationManager to potentially locate user-specific configuration files or directories from where the UserInfo can be loaded.
It provides a slot to trigger the initialization process and a signal to indicate when the user information has been successfully loaded.
|
explicit |
Constructs a DesktopUserInfo object.
| parent | A pointer to the DesktopDirentLocationManager instance that this DesktopUserInfo object might use to locate user data. This also serves as the QObject parent for memory management. Defaults to nullptr. |
|
inlineslot |
Retrieves a pointer to the UserInfo object.
UserInfo object might not be fully initialized if start_init() has not completed or failed. Callers should check for initialization status or rely on the user_init_ok signal for certainty. UserInfo object. get info, might be not inited!
|
slot |
Initiates the user information initialization process.
UserInfo data. After successful initialization, the user_init_ok signal will be emitted. start init will scan the target file once
|
signal |
Signal emitted when the user information has been successfully initialized.
| info | A constant reference to the initialized UserInfo object. |