Louvre
v2.13.0-1
C++ library for Wayland compositors
|
Token for activating surfaces. More...
Public Member Functions | |
LClient * | creator () const noexcept |
The client that requested the token creation. More... | |
LSurface * | origin () const noexcept |
The surface of the client that created the token. More... | |
const LEvent * | triggeringEvent () const noexcept |
Triggering event. More... | |
UInt32 | timesUsed () const noexcept |
Number of times the token has been used to activate a surface. More... | |
const std::chrono::time_point< std::chrono::steady_clock > & | created () const noexcept |
Time the token was created. More... | |
const std::string & | toActivateAppId () const noexcept |
The app ID of the client to be activated. More... | |
const std::string & | token () const noexcept |
The unique and random token string generated by Louvre. More... | |
const std::unordered_map< std::string, LActivationToken * >::iterator | destroy () const noexcept |
Invalidates and destroys the token. More... | |
Public Member Functions inherited from LObject | |
LObject (const LObject &) noexcept | |
Copy constructor. More... | |
LObject & | operator= (const LObject &) noexcept |
Assignment operator (each object has its own individual LWeak reference count). More... | |
void | setUserData (UIntPtr data) const noexcept |
Store an unsigned integer value/pointer. More... | |
UIntPtr | userData () const noexcept |
Retrieves the stored unsigned integer value/pointer. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from LObject | |
LObject () noexcept=default | |
Constructor of the LObject class. More... | |
virtual | ~LObject () noexcept |
Destructor of the LObject class. More... | |
void | notifyDestruction () noexcept |
Notifies the object destruction. More... | |
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.