kdecore Library API Documentation

KStartupInfoId Class Reference

Class representing an identification of application startup notification. More...

#include <kstartupinfo.h>

List of all members.

Public Member Functions

bool operator== (const KStartupInfoId &id) const
bool operator!= (const KStartupInfoId &id) const
bool none () const
void initId (const QCString &id="")
const QCStringid () const
bool setupStartupEnv () const
 KStartupInfoId ()
 KStartupInfoId (const KStartupInfoId &data)
KStartupInfoIdoperator= (const KStartupInfoId &data)
bool operator< (const KStartupInfoId &id) const

Friends

class KStartupInfo


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

Author:
Lubos Lunak <l.lunak@kde.org>
Version:
Id
kstartupinfo.h,v 1.28 2003/10/23 17:40:25 lunakl Exp

Definition at line 379 of file kstartupinfo.h.


Constructor & Destructor Documentation

KStartupInfoId::KStartupInfoId  ) 
 

Creates an empty identification.

KStartupInfoId::KStartupInfoId const KStartupInfoId data  ) 
 

Copy constructor.


Member Function Documentation

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

Overloaded operator.

Returns:
true if the notification identifications are the same

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

Overloaded operator.

Returns:
true if the notification identifications are different

bool KStartupInfoId::none  )  const
 

Checks whether the identifier is valid.

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

void KStartupInfoId::initId const QCString 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

const QCString& KStartupInfoId::id  )  const
 

Returns the notification identifier as string.

Returns:
the identification string for the notification

bool KStartupInfoId::setupStartupEnv  )  const
 

Sets the startup notification environment variable to this identification.

Returns:
true if successful, false otherwise


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for kdecore Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed May 5 07:19:46 2004 by doxygen 1.3.6 written by Dimitri van Heesch, © 1997-2003