Search for usage in LXR

KStartupInfoId Class Reference

#include <kstartupinfo.h>

Public Member Functions

 KStartupInfoId ()
 KStartupInfoId (const KStartupInfoId &data)
const QByteArrayid () const
void initId (const QByteArray &id="")
bool isNull () const
bool none () const
bool operator!= (const KStartupInfoId &id) const
bool operator< (const KStartupInfoId &id) const
KStartupInfoIdoperator= (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
Lubos Lunak l.lun[email protected][email protected][email protected]de.or[email protected]g

Definition at line 447 of file kstartupinfo.h.

Constructor & Destructor Documentation

KStartupInfoId::KStartupInfoId ( )

Creates an empty identification.

Definition at line 1134 of file kstartupinfo.cpp.

KStartupInfoId::KStartupInfoId ( const KStartupInfoId data)

Copy constructor.

Definition at line 1144 of file kstartupinfo.cpp.

Member Function Documentation

const QByteArray & KStartupInfoId::id ( ) const

Returns the notification identifier as string.

the identification string for the notification

Definition at line 1066 of file kstartupinfo.cpp.

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.

idthe new identification, "0" for no notification or "" to read the environment variable

Definition at line 1087 of file kstartupinfo.cpp.

bool KStartupInfoId::isNull ( ) const

Checks whether the identifier is valid.

true if this object doesn't represent a valid notification identification

Definition at line 1174 of file kstartupinfo.cpp.

bool KStartupInfoId::operator!= ( const KStartupInfoId id) const

Overloaded operator.

true if the notification identifications are different

Definition at line 1163 of file kstartupinfo.cpp.

bool KStartupInfoId::operator== ( const KStartupInfoId id) const

Overloaded operator.

true if the notification identifications are the same

Definition at line 1158 of file kstartupinfo.cpp.

bool KStartupInfoId::setupStartupEnv ( ) const

Sets the startup notification environment variable to this identification.

true if successful, false otherwise

Definition at line 1108 of file kstartupinfo.cpp.

unsigned long KStartupInfoId::timestamp ( ) const

Return the user timestamp for the startup notification, or 0 if no timestamp is set.

Definition at line 1179 of file kstartupinfo.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Sep 23 2021 22:41:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.