Wtx ~ Wt Extension Library
WtxLib
Public Member Functions | List of all members
Wtx::Web::Calendar::ModelProvider Class Reference

Calendar Model Provider. More...

#include <ModelProvider.h>

+ Inheritance diagram for Wtx::Web::Calendar::ModelProvider:

Public Member Functions

 ModelProvider (const std::string &name, const std::string &dateStart="dateStart", const std::string &dateEnd="dateEnd", const std::string &timeStart="timeStart", const std::string &timeEnd="timeEnd", const std::string &subject="subject", const std::string &body="body")
 
virtual std::shared_ptr< Wt::WAbstractItemModel > getModel (const Wt::WDate &date, const std::vector< std::string > &fieldList)
 
const std::string & name () const
 
const std::string & dateStart () const
 
const std::string & dateEnd () const
 
const std::string & timeStart () const
 
const std::string & timeEnd () const
 
const std::string & subject () const
 
const std::string & body () const
 
void setMapping (const std::string &dateStart, const std::string &dateEnd, const std::string &timeStart, const std::string &timeEnd, const std::string &subject, const std::string &body)
 

Detailed Description

Calendar Model Provider.

This class should be sub-classed by the application. It is used to provide for a model for the calendar, and it also provides field-mapping to the model, such that foreign models can be employed, and field mappings from the source model to the calendar model can be given.

Definition at line 66 of file ModelProvider.h.


The documentation for this class was generated from the following files: