Mixes for Privacy and Anonymity in the Internet
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
TermsAndConditions Class Reference

List of all members.

Public Member Functions

 TermsAndConditions (UINT8 *id, UINT32 nrOfTranslations)
 Constructor with the id (Operator SKI), the number of translations and those elements to be imported to all translations.
virtual ~TermsAndConditions ()
const
termsAndConditionsTranslation_t
getTranslation (const UINT8 *locale)
 returns the specific TermsAndconditions translation for the the language with the specified language code including the template AND the customized sections.
const DOMNode * getTranslationTemplate (const UINT8 *locale)
 returns only the template of the translation specified by the language code or NULL if no such translation exist.
const DOMNode * getTranslationCustomizedSections (const UINT8 *locale)
 returns only the customized sections of the translation specified by the language code or NULL if no such translation exist.
void removeTranslation (const UINT8 *locale)
 removes the specific Terms & Conditions translation for the the language with the specified language code including the template AND the customized sections.
void addTranslation (const UINT8 *locale, DOMNode *tnc_customized, DOMNode *tnc_template)
 add a language specific terms and Conditions document, which can be retrieved by *getTermsAndConditionsDoc with the language code
const UINT8getID ()

Public Attributes

CAMutexsynchLock

Private Member Functions

void setIndexToNextEmptySlot ()

Private Attributes

UINT8tnc_id
UINT32 translations
UINT32 currentTranslationIndex
termsAndConditionsTranslation_t ** allTranslations
XERCES_CPP_NAMESPACE::DOMDocument * customizedSectionsOwner

Constructor & Destructor Documentation

TermsAndConditions::TermsAndConditions ( UINT8 id,
UINT32  nrOfTranslations 
)

Constructor with the id (Operator SKI), the number of translations and those elements to be imported to all translations.

Constructor with the id (Operator SKI) and the number of translations.

References allTranslations, createDOMDocument(), currentTranslationIndex, customizedSectionsOwner, synchLock, tnc_id, and translations.


Member Function Documentation

void TermsAndConditions::addTranslation ( const UINT8 locale,
DOMNode *  tnc_customized,
DOMNode *  tnc_template 
)

References tnc_id.

returns the specific TermsAndconditions translation for the the language with the specified language code including the template AND the customized sections.

If no translation exists for the specified language code NULL is returned.

References allTranslations, and translations.

Referenced by addTranslation(), getTranslationCustomizedSections(), getTranslationTemplate(), and CAFirstMix::handleTermsAndConditionsLogin().

const DOMNode * TermsAndConditions::getTranslationCustomizedSections ( const UINT8 locale)

returns only the customized sections of the translation specified by the language code or NULL if no such translation exist.

References getTranslation(), and termsAndConditionsTranslation_t::tnc_customized.

const DOMNode * TermsAndConditions::getTranslationTemplate ( const UINT8 locale)

returns only the template of the translation specified by the language code or NULL if no such translation exist.

References getTranslation(), and termsAndConditionsTranslation_t::tnc_template.

void TermsAndConditions::removeTranslation ( const UINT8 locale)

removes the specific Terms & Conditions translation for the the language with the specified language code including the template AND the customized sections.

References allTranslations, cleanupTnCTranslation(), setIndexToNextEmptySlot(), and translations.


Member Data Documentation

XERCES_CPP_NAMESPACE::DOMDocument* TermsAndConditions::customizedSectionsOwner [private]