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

Applets

Kickoff::RecentApplications

Kickoff::RecentApplications Class Reference

#include <recentapplications.h>

Inheritance diagram for Kickoff::RecentApplications:

Inheritance graph
[legend]

List of all members.


Detailed Description

Singleton class which can be used to keep track of recently started applications in the Kickoff launcher.

RecentApplications information persists between sessions.

Definition at line 39 of file recentapplications.h.


Public Slots

void add (KService::Ptr service)
void clear ()

Signals

void applicationAdded (KService::Ptr service, int startCount)
void applicationRemoved (KService::Ptr service)
void cleared ()

Public Member Functions

QDateTime lastStartedTime (KService::Ptr service) const
int maximum () const
QList< KService::Ptr > recentApplications () const
void setMaximum (int max)
int startCount (KService::Ptr service) const

Static Public Member Functions

static RecentApplications * self ()

Member Function Documentation

void RecentApplications::add ( KService::Ptr  service  )  [slot]

Registers the startup of an application.

This should be called whenever a new application or service is started.

Definition at line 174 of file recentapplications.cpp.

void Kickoff::RecentApplications::applicationAdded ( KService::Ptr  service,
int  startCount 
) [signal]

Emitted after add() has been called.

void Kickoff::RecentApplications::applicationRemoved ( KService::Ptr  service  )  [signal]

Emitted after remove() has been called.

void RecentApplications::clear (  )  [slot]

Clear the list of recent applications.

Definition at line 187 of file recentapplications.cpp.

void Kickoff::RecentApplications::cleared (  )  [signal]

Emitted after clear() has been called.

QDateTime RecentApplications::lastStartedTime ( KService::Ptr  service  )  const

Returns the last time and date with the application represented by service was started.

Definition at line 161 of file recentapplications.cpp.

int RecentApplications::maximum (  )  const

Returns the maximum number of recently used applications that are remembered.

Definition at line 170 of file recentapplications.cpp.

QList< KService::Ptr > RecentApplications::recentApplications (  )  const

List of service pointers for recently started applications in the order in which they were started, with the most recently used application first.

Definition at line 142 of file recentapplications.cpp.

RecentApplications * RecentApplications::self (  )  [static]

Definition at line 134 of file recentapplications.cpp.

void RecentApplications::setMaximum ( int  max  ) 

Sets the maximum number of recently used applications to remember.

Definition at line 165 of file recentapplications.cpp.

int RecentApplications::startCount ( KService::Ptr  service  )  const

Returns the number of times an application represented by service has been started.

Definition at line 157 of file recentapplications.cpp.


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

Applets

Skip menu "Applets"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
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