Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Public Slots | Public Member Functions | Private Member Functions | Private Attributes | List of all members
WsNewsLetter Class Reference

#include <WsNewsLetter.h>

Inheritance diagram for WsNewsLetter:
Inheritance graph
Collaboration diagram for WsNewsLetter:
Collaboration graph

Public Types

enum  emailAvailability { ldapError, emailNotAvailable, emailAvailable, emailMultiple }
 descripte the result of the Ldap query More...
 

Public Slots

void doLineEditChanged ()
 
void doSubscribe ()
 

Public Member Functions

 WsNewsLetter (Wt::WContainerWidget *parent=0)
 CTor. More...
 
 ~WsNewsLetter ()
 
void load ()
 
void initDB ()
 
emailAvailability isEmailExistInLdap (const std::string &email)
 
void emailNotInLdap (const std::string &email)
 
void multipleEmail (const std::string &email)
 
void sendEmail (const std::string &email, const std::string &sSubject, const std::string &sBody, const std::string &sBodyPlain)
 
std::string checkPath (const std::string &currentPath)
 
void registerValidEmail (const std::string &email)
 
 WsNewsLetter (WContainerWidget *parent)
 
 ~WsNewsLetter ()
 
void setOption (const std::string &attribute, boost::any value)
 Set an options if previously set, update the value. More...
 
void setOptions (const std::vector< WsOption > &vOptions)
 Set all options. More...
 
const boost::any & option (const std::string &attribute) const
 Get an options value. More...
 
const std::vector< WsOption > & options () const
 Get all options. More...
 
void outOptions (const std::string message)
 Output all options. More...
 

Private Member Functions

void createUser ()
 
void sendConfirmMail (const std::string &email, const std::string &userToken) const
 
void sendMail (const Mail::Message &message) const
 

Private Attributes

Wt::WLineEdit * m_pLineEdit
 
Wt::WPushButton * m_pButSubscribe
 
dbo::Session session_
 
dbo::backend::Sqlite3 * sqlite3_
 
WText * info_
 
WLineEdit * emailLE_
 
WPushButton * button_
 

Detailed Description

Definition at line 26 of file WsNewsLetter.h.

Member Enumeration Documentation

descripte the result of the Ldap query

Enumerator
ldapError 
emailNotAvailable 
emailAvailable 
emailMultiple 

Definition at line 29 of file WsNewsLetter.h.

Constructor & Destructor Documentation

WsNewsLetter::WsNewsLetter ( Wt::WContainerWidget *  parent = 0)

CTor.

Definition at line 47 of file WsNewsLetter.cpp.

WsNewsLetter::~WsNewsLetter ( )

Definition at line 53 of file WsNewsLetter.cpp.

WsNewsLetter::WsNewsLetter ( WContainerWidget *  parent)
WsNewsLetter::~WsNewsLetter ( )

Member Function Documentation

std::string WsNewsLetter::checkPath ( const std::string &  currentPath)

Definition at line 310 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsNewsLetter::createUser ( )
private
void WsNewsLetter::doLineEditChanged ( )
slot

Definition at line 106 of file WsNewsLetter.cpp.

Here is the caller graph for this function:

void WsNewsLetter::doSubscribe ( )
slot

Definition at line 112 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsNewsLetter::emailNotInLdap ( const std::string &  email)

Definition at line 269 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsNewsLetter::initDB ( )

Definition at line 90 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

WsNewsLetter::emailAvailability WsNewsLetter::isEmailExistInLdap ( const std::string &  email)

Definition at line 119 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsNewsLetter::load ( )

Definition at line 60 of file WsNewsLetter.cpp.

Here is the call graph for this function:

void WsNewsLetter::multipleEmail ( const std::string &  email)

Definition at line 188 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

const boost::any & WsOptions::option ( const std::string &  attribute) const
inherited

Get an options value.

Definition at line 62 of file WsOption.cpp.

Here is the caller graph for this function:

const std::vector< WsOption > & WsOptions::options ( ) const
inherited

Get all options.

Definition at line 70 of file WsOption.cpp.

Here is the caller graph for this function:

void WsOptions::outOptions ( const std::string  message)
inherited

Output all options.

Definition at line 75 of file WsOption.cpp.

Here is the caller graph for this function:

void WsNewsLetter::registerValidEmail ( const std::string &  email)

Definition at line 264 of file WsNewsLetter.cpp.

void WsNewsLetter::sendConfirmMail ( const std::string &  email,
const std::string &  userToken 
) const
private
void WsNewsLetter::sendEmail ( const std::string &  email,
const std::string &  sSubject,
const std::string &  sBody,
const std::string &  sBodyPlain 
)

Definition at line 209 of file WsNewsLetter.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void WsNewsLetter::sendMail ( const Mail::Message &  message) const
private
void WsOptions::setOption ( const std::string &  attribute,
boost::any  value 
)
inherited

Set an options if previously set, update the value.

Definition at line 47 of file WsOption.cpp.

Here is the caller graph for this function:

void WsOptions::setOptions ( const std::vector< WsOption > &  vOptions)
inherited

Set all options.

Definition at line 57 of file WsOption.cpp.

Here is the caller graph for this function:

Member Data Documentation

WPushButton* WsNewsLetter::button_
private

Definition at line 20 of file WsNewsLetterEm.h.

WLineEdit* WsNewsLetter::emailLE_
private

Definition at line 19 of file WsNewsLetterEm.h.

WText* WsNewsLetter::info_
private

Definition at line 18 of file WsNewsLetterEm.h.

Wt::WPushButton* WsNewsLetter::m_pButSubscribe
private

Definition at line 49 of file WsNewsLetter.h.

Wt::WLineEdit* WsNewsLetter::m_pLineEdit
private

Definition at line 48 of file WsNewsLetter.h.

dbo::Session WsNewsLetter::session_
private

Definition at line 50 of file WsNewsLetter.h.

dbo::backend::Sqlite3 * WsNewsLetter::sqlite3_
private

Definition at line 51 of file WsNewsLetter.h.


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