pwfengine
Public Member Functions | Protected Member Functions | Friends
PPageWrapper Class Reference

A website page wrapper. More...

#include <PPageWrapper.h>

Inheritance diagram for PPageWrapper:
PWrapper

List of all members.

Public Member Functions

 PPageWrapper (PEngine *engine, PSiteWrapper *siteWrapper)
QString schemaFileName (const QString &schemaName)
bool map ()
PPageElementmappedPage ()
void refresh ()

Protected Member Functions

QList< QString > schemaCandidateNames ()
QString cacheFileName ()

Friends

class PPageWrapperPrivate

Detailed Description

A website page wrapper.

A page wrapper must refer to a site wrapper with a valid schema. The schema candidates directory is automatically setted to the site wrapper active schema directory.

See also:
setPageName

Member Function Documentation

QString PPageWrapper::cacheFileName ( ) [protected, virtual]
Returns:
the filename as engine->cacheDirectory()/siteWrapper->name()/pagecache_name().xml

Implements PWrapper.

PPageElement* PPageWrapper::mappedPage ( )

Return the mapped root element

void PPageWrapper::refresh ( )

Redownload the page. The method can be used when fresh data is needed, i.e when the page content might have been changed.

QList< QString > PPageWrapper::schemaCandidateNames ( ) [protected, virtual]

Append to the list each page wrapper schema in the schemaCandidatesDirectory()

Implements PWrapper.

QString PPageWrapper::schemaFileName ( const QString &  schemaName) [virtual]
Returns:
the filename as schemaCandidatesDirectory()/pageschema_schemaName.xml or an empty string if the schema is not valid.

Implements PWrapper.


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