Wexus2 0.20
blogapp::Post Class Reference
Inheritance diagram for blogapp::Post:

List of all members.

Public Attributes

int year
int month
int day
QString title

Protected Member Functions

virtual bool onLoad (const QString &fullfilename)

Member Function Documentation

virtual bool blogapp::Post::onLoad ( const QString &  fullfilename) [protected, virtual]

This is called after loading a record. id (the filename) is already set up entering this function. You can also examine the full filename parameter.

Decendants should be able to work with empty-string ids and can throw exceptions on errors.

TODO in the future, this might be implemented in a more automatic/regex manner using .eh-like files.

The default implementation does nothing but return true;

Returns:
true on success (false causes this record to not be loaded)
Author:
Aleksander Demko

Reimplemented from wexus::ActiveFile.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator