kjots
KJotsEntry Class Reference
#include <kjotsentry.h>

Public Member Functions | |
| KJotsEntry () | |
| virtual void | generateHtml (KJotsEntry *, bool, QTextCursor *)=0 |
| virtual void | generatePrintData (QTextCursor *)=0 |
| virtual QString | generateText (void)=0 |
| virtual void | generateXml (QDomDocument &, QDomElement &) |
| quint64 | id () const |
| bool | isBook () const |
| bool | isPage () const |
| QString | kjotsLinkUrl () |
| KJotsBook * | parentBook () |
| virtual void | parseXml (QDomElement &, bool) |
| virtual void | rename ()=0 |
| virtual void | setTitle (const QString &) |
| QString | title () |
| KJotsBook * | topLevelBook () |
Static Public Member Functions | |
| static quint64 | idFromLinkUrl (const QString &link) |
| static bool | isKJotsLink (const QString &link) |
| static QString | kjotsLinkUrlFromId (quint64 id) |
Protected Member Functions | |
| void | setId (quint64) |
Protected Attributes | |
| bool | m_isBook |
Detailed Description
Definition at line 41 of file kjotsentry.h.
Constructor & Destructor Documentation
| KJotsEntry::KJotsEntry | ( | ) |
Definition at line 52 of file kjotsentry.cpp.
Member Function Documentation
| virtual void KJotsEntry::generateHtml | ( | KJotsEntry * | , | |
| bool | , | |||
| QTextCursor * | ||||
| ) | [pure virtual] |
| virtual void KJotsEntry::generatePrintData | ( | QTextCursor * | ) | [pure virtual] |
| virtual QString KJotsEntry::generateText | ( | void | ) | [pure virtual] |
| void KJotsEntry::generateXml | ( | QDomDocument & | doc, | |
| QDomElement & | parent | |||
| ) | [virtual] |
Performs functions necessary to save the entry to a KJots file. This function should ONLY be called when saving the file, as it performs other functions than generating XML.
Reimplemented in KJotsBook, and KJotsPage.
Definition at line 142 of file kjotsentry.cpp.
| quint64 KJotsEntry::id | ( | ) | const [inline] |
Definition at line 57 of file kjotsentry.h.
| quint64 KJotsEntry::idFromLinkUrl | ( | const QString & | link | ) | [static] |
Definition at line 207 of file kjotsentry.cpp.
| bool KJotsEntry::isBook | ( | ) | const [inline] |
Definition at line 62 of file kjotsentry.h.
| bool KJotsEntry::isKJotsLink | ( | const QString & | link | ) | [static] |
Definition at line 192 of file kjotsentry.cpp.
| bool KJotsEntry::isPage | ( | ) | const [inline] |
Definition at line 63 of file kjotsentry.h.
| QString KJotsEntry::kjotsLinkUrl | ( | ) |
Definition at line 197 of file kjotsentry.cpp.
| QString KJotsEntry::kjotsLinkUrlFromId | ( | quint64 | id | ) | [static] |
Definition at line 202 of file kjotsentry.cpp.
| KJotsBook * KJotsEntry::parentBook | ( | ) |
Returns the parent book or 0 if there is none.
Definition at line 65 of file kjotsentry.cpp.
| void KJotsEntry::parseXml | ( | QDomElement & | e, | |
| bool | ||||
| ) | [virtual] |
Parses through XML data for settings inherent to the base class.
Reimplemented in KJotsBook, and KJotsPage.
Definition at line 167 of file kjotsentry.cpp.
| void KJotsEntry::setId | ( | quint64 | id | ) | [protected] |
Set the ID number.
- Parameters:
-
id The ID to set, or 0 to pick a fresh one.
Set ourselves to a particular ID number, or pick a new one. The lastId used is stored in the settings.
Definition at line 94 of file kjotsentry.cpp.
| void KJotsEntry::setTitle | ( | const QString & | title | ) | [virtual] |
Definition at line 57 of file kjotsentry.cpp.
| QString KJotsEntry::title | ( | ) | [inline] |
Definition at line 49 of file kjotsentry.h.
| KJotsBook * KJotsEntry::topLevelBook | ( | ) |
Returns the topmost level book. It could be you!
Definition at line 73 of file kjotsentry.cpp.
Member Data Documentation
bool KJotsEntry::m_isBook [protected] |
used for speed and code clarity.
Definition at line 72 of file kjotsentry.h.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference