• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDEUI

KStartupInfoId Class Reference

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

#include <kstartupinfo.h>

List of all members.

Public Member Functions

const QByteArray & id () const
void initId (const QByteArray &id="")
 KStartupInfoId (const KStartupInfoId &data)
 KStartupInfoId ()
bool none () 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
 ~KStartupInfoId ()

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>

Definition at line 368 of file kstartupinfo.h.


Constructor & Destructor Documentation

KStartupInfoId::KStartupInfoId (  ) 

Creates an empty identification.

Definition at line 1104 of file kstartupinfo.cpp.

KStartupInfoId::KStartupInfoId ( const KStartupInfoId &  data  ) 

Copy constructor.

Definition at line 1113 of file kstartupinfo.cpp.

KStartupInfoId::~KStartupInfoId (  ) 

Definition at line 1108 of file kstartupinfo.cpp.


Member Function Documentation

const QByteArray & KStartupInfoId::id (  )  const

Returns the notification identifier as string.

Returns:
the identification string for the notification

Definition at line 1032 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.

Parameters:
id the new identification, "0" for no notification or "" to read the environment variable

Definition at line 1056 of file kstartupinfo.cpp.

bool KStartupInfoId::none (  )  const

Checks whether the identifier is valid.

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

Definition at line 1141 of file kstartupinfo.cpp.

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

Overloaded operator.

Returns:
true if the notification identifications are different

Definition at line 1130 of file kstartupinfo.cpp.

bool KStartupInfoId::operator< ( const KStartupInfoId &  id  )  const

Definition at line 1136 of file kstartupinfo.cpp.

KStartupInfoId & KStartupInfoId::operator= ( const KStartupInfoId &  data  ) 

Definition at line 1117 of file kstartupinfo.cpp.

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

Overloaded operator.

Returns:
true if the notification identifications are the same

Definition at line 1125 of file kstartupinfo.cpp.

bool KStartupInfoId::setupStartupEnv (  )  const

Sets the startup notification environment variable to this identification.

Returns:
true if successful, false otherwise

Definition at line 1078 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 1146 of file kstartupinfo.cpp.


The documentation for this class was generated from the following files:
  • kstartupinfo.h
  • kstartupinfo.cpp

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal