class KTipDatabase

A database for tips-of-the-day. More...

Definition#include <ktip.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A database for tips-of-the-day.

This class provides convenient access to a database containing tips of the day. The database is stored in a XML file and parsed when a KTipDatabase object is created.

Once the file is read in, you can access the tips to display them in the tip of the day dialog.

 KTipDatabase (const QString &tipFile=QString::null)

The constructor.

This reads in the tips from a file with the given name. If no name is given, a file called 'application-name/tips' will be loaded.

Parameters:
tipFileThe name of the tips file.

QString  tip ()

[const]

Returns the current tip.

void  nextTip ()

The next tip will become the current one.

void  prevTip ()

The previous tip will become the current one.