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

Applets

Kickoff::ApplicationModel

Kickoff::ApplicationModel Class Reference

#include <applicationmodel.h>

Inheritance diagram for Kickoff::ApplicationModel:

Inheritance graph
[legend]

List of all members.


Detailed Description

ApplicationModel provides a tree model containing all of the user's installed graphical programs.

The applications are arranged into categories, based on the information in their .desktop files.

Definition at line 35 of file applicationmodel.h.


Public Types

enum  DuplicatePolicy { ShowDuplicatesPolicy, ShowLatestOnlyPolicy }

Public Slots

void checkSycocaChange ()
void slotReloadMenu ()

Public Member Functions

 ApplicationModel (QObject *parent=0)
virtual bool canFetchMore (const QModelIndex &parent) const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
DuplicatePolicy duplicatePolicy () const
virtual void fetchMore (const QModelIndex &parent)
virtual bool hasChildren (const QModelIndex &parent=QModelIndex()) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
virtual QModelIndex parent (const QModelIndex &index) const
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
void setDuplicatePolicy (DuplicatePolicy policy)
virtual ~ApplicationModel ()

Member Enumeration Documentation

enum Kickoff::ApplicationModel::DuplicatePolicy

This enum describes the policy for handling duplicate applications (that is, two applications with the same name in the same group).

Enumerator:
ShowDuplicatesPolicy  Display duplicate entries.

ShowLatestOnlyPolicy  Show only the entry for the most recent version of the application.

Currently only a crude heuristic to determine whether the application is from KDE 3 or KDE 4 is used to determine recent-ness.

eg. If MyGame/KDE 3 and MyGame/KDE 4 are found show only MyGame/KDE 4

Definition at line 48 of file applicationmodel.h.


Constructor & Destructor Documentation

Kickoff::ApplicationModel::ApplicationModel ( QObject *  parent = 0  ) 

Definition at line 230 of file applicationmodel.cpp.

Kickoff::ApplicationModel::~ApplicationModel (  )  [virtual]

Definition at line 241 of file applicationmodel.cpp.


Member Function Documentation

bool Kickoff::ApplicationModel::canFetchMore ( const QModelIndex &  parent  )  const [virtual]

Definition at line 246 of file applicationmodel.cpp.

void Kickoff::ApplicationModel::checkSycocaChange (  )  [slot]

Definition at line 389 of file applicationmodel.cpp.

int Kickoff::ApplicationModel::columnCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Definition at line 255 of file applicationmodel.cpp.

QVariant Kickoff::ApplicationModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const [virtual]

Definition at line 261 of file applicationmodel.cpp.

ApplicationModel::DuplicatePolicy Kickoff::ApplicationModel::duplicatePolicy (  )  const

See setDuplicatePolicy().

Definition at line 396 of file applicationmodel.cpp.

void Kickoff::ApplicationModel::fetchMore ( const QModelIndex &  parent  )  [virtual]

Reimplemented from QAbstractItemModel.

Definition at line 292 of file applicationmodel.cpp.

bool Kickoff::ApplicationModel::hasChildren ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Definition at line 307 of file applicationmodel.cpp.

QVariant Kickoff::ApplicationModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const [virtual]

Definition at line 316 of file applicationmodel.cpp.

QModelIndex Kickoff::ApplicationModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const [virtual]

Definition at line 330 of file applicationmodel.cpp.

QModelIndex Kickoff::ApplicationModel::parent ( const QModelIndex &  index  )  const [virtual]

Definition at line 345 of file applicationmodel.cpp.

int Kickoff::ApplicationModel::rowCount ( const QModelIndex &  parent = QModelIndex()  )  const [virtual]

Definition at line 363 of file applicationmodel.cpp.

void Kickoff::ApplicationModel::setDuplicatePolicy ( DuplicatePolicy  policy  ) 

Sets the policy for handling duplicate applications.

See DuplicatePolicy

Definition at line 372 of file applicationmodel.cpp.

void Kickoff::ApplicationModel::slotReloadMenu (  )  [slot]

Definition at line 381 of file applicationmodel.cpp.


The documentation for this class was generated from the following files:
  • applicationmodel.h
  • applicationmodel.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