Applets
Kickoff::RecentApplications Class Reference
Singleton class which can be used to keep track of recently started applications in the Kickoff launcher. More...
#include <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 | |
int | defaultMaximum () const |
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 () |
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 41 of file recentapplications.h.
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 173 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] |
void Kickoff::RecentApplications::cleared | ( | ) | [signal] |
Emitted after clear() has been called.
int RecentApplications::defaultMaximum | ( | ) | const |
Returns the default maximum number of recently used applications that are remembered as defined either in the configfile as "MaxApplications" or via the DEFAULT_MAX_SERVICES macro.
Definition at line 169 of file recentapplications.cpp.
QDateTime RecentApplications::lastStartedTime | ( | KService::Ptr | service | ) | const |
Returns the last time and date with the application represented by service
was started.
Definition at line 155 of file recentapplications.cpp.
int RecentApplications::maximum | ( | ) | const |
Returns the maximum number of recently used applications that are remembered.
Definition at line 165 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 136 of file recentapplications.cpp.
RecentApplications * RecentApplications::self | ( | ) | [static] |
Definition at line 127 of file recentapplications.cpp.
void RecentApplications::setMaximum | ( | int | max | ) |
Sets the maximum number of recently used applications to remember.
Definition at line 159 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 151 of file recentapplications.cpp.
The documentation for this class was generated from the following files: