Applets
Kickoff::FavoritesModel Class Reference
#include <favoritesmodel.h>
Inheritance diagram for Kickoff::FavoritesModel:

Detailed Description
A model which provides an ordered list of 'favorite' items chosen by the user.The items may represent documents, folders, applications, devices or anything else identified by a URL.
The information persists between sessions.
Definition at line 36 of file favoritesmodel.h.
Public Member Functions | |
FavoritesModel (QObject *parent) | |
virtual | ~FavoritesModel () |
Static Public Member Functions | |
static void | add (const QString &url) |
static bool | isFavorite (const QString &url) |
static void | remove (const QString &url) |
Constructor & Destructor Documentation
FavoritesModel::FavoritesModel | ( | QObject * | parent | ) |
Definition at line 116 of file favoritesmodel.cpp.
FavoritesModel::~FavoritesModel | ( | ) | [virtual] |
Definition at line 129 of file favoritesmodel.cpp.
Member Function Documentation
void FavoritesModel::add | ( | const QString & | url | ) | [static] |
Add a new item for url
to the user's favorites list.
Definition at line 139 of file favoritesmodel.cpp.
bool FavoritesModel::isFavorite | ( | const QString & | url | ) | [static] |
Returns true if url
is in the list of the user's favorite URLs.
Definition at line 163 of file favoritesmodel.cpp.
void FavoritesModel::remove | ( | const QString & | url | ) | [static] |
Remove the item associated with url
from the user's favorites list.
Definition at line 151 of file favoritesmodel.cpp.
The documentation for this class was generated from the following files: