|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KTipDatabase
public class KTipDatabase
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. The state of the tipdialog is saved to the applications's config file in the group "TipOfDay" with a boolean entry "RunOnStart". Check this value if you want to allow the user to enable/disable the tipdialog in the application's configuration dialog.
Constructor Summary | |
---|---|
|
KTipDatabase()
|
protected |
KTipDatabase(java.lang.Class dummy)
|
|
KTipDatabase(java.lang.String tipFile)
This constructor reads in the tips from a file with the given name. |
|
KTipDatabase(java.lang.String[] tipFiles)
This constructor takes a list of files that will be merged. |
Method Summary | |
---|---|
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
void |
nextTip()
The next tip will become the current one. |
void |
prevTip()
The previous tip will become the current one. |
java.lang.String |
tip()
Returns the current tip. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KTipDatabase(java.lang.Class dummy)
public KTipDatabase(java.lang.String tipFile)
tipFile
- The absolute path to the tips file.public KTipDatabase()
public KTipDatabase(java.lang.String[] tipFiles)
tipFiles
- A list of absolute paths to the tips fileMethod Detail |
---|
public java.lang.String tip()
public void nextTip()
public void prevTip()
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |