KStartupInfoId
#include <kstartupinfo.h>
Public Member Functions | |
KStartupInfoId () | |
KStartupInfoId (const KStartupInfoId &data) | |
const QByteArray & | id () const |
void | initId (const QByteArray &id="") |
bool | isNull () const |
bool | operator!= (const KStartupInfoId &id) const |
bool | operator< (const KStartupInfoId &id) const |
KStartupInfoId & | operator= (const KStartupInfoId &data) |
bool | operator== (const KStartupInfoId &id) const |
bool | setupStartupEnv () const |
unsigned long | timestamp () const |
Detailed Description
Class representing an identification of application startup notification.
Every existing notification about a starting application has its own unique identification, that's used to identify and manipulate the notification.
- See also
- KStartupInfo
- KStartupInfoData
Definition at line 332 of file kstartupinfo.h.
Constructor & Destructor Documentation
◆ KStartupInfoId() [1/2]
KStartupInfoId::KStartupInfoId | ( | ) |
Creates an empty identification.
Definition at line 894 of file kstartupinfo.cpp.
◆ KStartupInfoId() [2/2]
KStartupInfoId::KStartupInfoId | ( | const KStartupInfoId & | data | ) |
Copy constructor.
Definition at line 904 of file kstartupinfo.cpp.
◆ ~KStartupInfoId()
KStartupInfoId::~KStartupInfoId | ( | ) |
Definition at line 899 of file kstartupinfo.cpp.
Member Function Documentation
◆ id()
const QByteArray & KStartupInfoId::id | ( | ) | const |
Returns the notification identifier as string.
- Returns
- the identification string for the notification
Definition at line 838 of file kstartupinfo.cpp.
◆ initId()
void KStartupInfoId::initId | ( | const QByteArray & | id = "" | ) |
Initializes this object with the given identification ( which may be also "0" for no notification ), or if "" is given, tries to read it from the startup notification environment variable, and if it's not set, creates a new one.
- Parameters
-
id the new identification, "0" for no notification or "" to read the environment variable
Definition at line 859 of file kstartupinfo.cpp.
◆ isNull()
bool KStartupInfoId::isNull | ( | ) | const |
Checks whether the identifier is valid.
- Returns
- true if this object doesn't represent a valid notification identification
Definition at line 934 of file kstartupinfo.cpp.
◆ operator!=()
bool KStartupInfoId::operator!= | ( | const KStartupInfoId & | id | ) | const |
Overloaded operator.
- Returns
- true if the notification identifications are different
Definition at line 923 of file kstartupinfo.cpp.
◆ operator<()
bool KStartupInfoId::operator< | ( | const KStartupInfoId & | id | ) | const |
Definition at line 929 of file kstartupinfo.cpp.
◆ operator=()
KStartupInfoId & KStartupInfoId::operator= | ( | const KStartupInfoId & | data | ) |
Definition at line 909 of file kstartupinfo.cpp.
◆ operator==()
bool KStartupInfoId::operator== | ( | const KStartupInfoId & | id | ) | const |
Overloaded operator.
- Returns
- true if the notification identifications are the same
Definition at line 918 of file kstartupinfo.cpp.
◆ setupStartupEnv()
bool KStartupInfoId::setupStartupEnv | ( | ) | const |
Sets the startup notification environment variable to this identification.
- Returns
- true if successful, false otherwise
Definition at line 880 of file kstartupinfo.cpp.
◆ timestamp()
unsigned long KStartupInfoId::timestamp | ( | ) | const |
Return the user timestamp for the startup notification, or 0 if no timestamp is set.
Definition at line 939 of file kstartupinfo.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.