![]() |
Louvre v2.18.1-1
C++ library for Wayland compositors
|
Token for activating surfaces. More...
#include <LActivationToken.h>
Inheritance diagram for LActivationToken:Public Member Functions | |
| LClient * | creator () const noexcept |
| The client that requested the token creation. | |
| LSurface * | origin () const noexcept |
| The surface of the client that created the token. | |
| const LEvent * | triggeringEvent () const noexcept |
| Triggering event. | |
| UInt32 | timesUsed () const noexcept |
| Number of times the token has been used to activate a surface. | |
| const std::chrono::time_point< std::chrono::steady_clock > & | created () const noexcept |
| Time the token was created. | |
| const std::string & | toActivateAppId () const noexcept |
| The app ID of the client to be activated. | |
| const std::string & | token () const noexcept |
| The unique and random token string generated by Louvre. | |
| const std::unordered_map< std::string, LActivationToken * >::iterator | destroy () const noexcept |
| Invalidates and destroys the token. | |
Public Member Functions inherited from LObject | |
| LObject (const LObject &) noexcept | |
| Copy constructor. | |
| LObject & | operator= (const LObject &) noexcept |
| Assignment operator (each object has its own individual LWeak reference count). | |
| void | setUserData (UIntPtr data) const noexcept |
| Store an unsigned integer value/pointer. | |
| UIntPtr | userData () const noexcept |
| Retrieves the stored unsigned integer value/pointer. | |
Additional Inherited Members | |
Protected Member Functions inherited from LObject | |
| LObject () noexcept=default | |
| Constructor of the LObject class. | |
| virtual | ~LObject () noexcept |
| Destructor of the LObject class. | |
| void | notifyDestruction () noexcept |
| Notifies the object destruction. | |
Token for activating surfaces.
This class represents a token used in LActivationTokenManager::activateSurfaceRequest().
For more details, refer to the LActivationTokenManager class documentation.
|
inlinenoexcept |
The client that requested the token creation.
nullptr if accessed later, for example, if the client has disconnected.
|
inlinenoexcept |
The surface of the client that created the token.
This refers to the surface where the triggeringEvent() was sent.
nullptr.
|
inlinenoexcept |
Triggering event.
Clients typically request token creation in response to an input event. The default implementation of LActivationTokenManager::createTokenRequest() only accepts requests containing a valid triggeringEvent().
nullptr.
|
inlinenoexcept |
Number of times the token has been used to activate a surface.
Incremented by 1 before each LActivationTokenManager::activateSurfaceRequest().
|
inlinenoexcept |
Time the token was created.
|
inlinenoexcept |
The app ID of the client to be activated.
This value is optional, if the token creator does not assign an app ID, this method returns an empty string.
|
inlinenoexcept |
The unique and random token string generated by Louvre.
|
noexcept |
Invalidates and destroys the token.
Removes it from LActivationTokenManager::tokens().
Once destroyed, no client will be able to use it to activate surfaces.