Mixe for Privacy and Anonymity in the Internet
|
#include <TermsAndConditions.hpp>
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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. More... | |
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 More... | |
const UINT8 * | getID () |
Public Attributes | |
CAMutex * | synchLock |
Private Member Functions | |
void | setIndexToNextEmptySlot () |
Private Attributes | |
UINT8 * | tnc_id |
UINT32 | translations |
UINT32 | currentTranslationIndex |
termsAndConditionsTranslation_t ** | allTranslations |
XERCES_CPP_NAMESPACE::DOMDocument * | customizedSectionsOwner |
Definition at line 61 of file TermsAndConditions.hpp.
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.
Definition at line 76 of file TermsAndConditions.cpp.
References allTranslations, createDOMDocument(), currentTranslationIndex, customizedSectionsOwner, synchLock, tnc_id, and translations.
|
virtual |
Definition at line 102 of file TermsAndConditions.cpp.
References allTranslations, cleanupTnCTranslation(), currentTranslationIndex, customizedSectionsOwner, synchLock, tnc_id, and translations.
void TermsAndConditions::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
Definition at line 183 of file TermsAndConditions.cpp.
References allTranslations, currentTranslationIndex, customizedSectionsOwner, getTranslation(), CAMsg::printMsg(), RESIZE_STORE, setIndexToNextEmptySlot(), TMP_LOCALE_SIZE, termsAndConditionsTranslation_t::tnc_customized, termsAndConditionsTranslation_t::tnc_id, tnc_id, termsAndConditionsTranslation_t::tnc_locale, termsAndConditionsTranslation_t::tnc_template, and translations.
Referenced by CAFirstMix::handleTermsAndConditionsExtension().
const UINT8 * TermsAndConditions::getID | ( | ) |
Definition at line 248 of file TermsAndConditions.cpp.
References tnc_id.
const termsAndConditionsTranslation_t * TermsAndConditions::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.
If no translation exists for the specified language code NULL is returned.
Definition at line 130 of file TermsAndConditions.cpp.
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.
Definition at line 169 of file TermsAndConditions.cpp.
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.
Definition at line 155 of file TermsAndConditions.cpp.
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.
Definition at line 230 of file TermsAndConditions.cpp.
References allTranslations, cleanupTnCTranslation(), setIndexToNextEmptySlot(), and translations.
|
private |
Definition at line 254 of file TermsAndConditions.cpp.
References allTranslations, currentTranslationIndex, and translations.
Referenced by addTranslation(), and removeTranslation().
|
private |
Definition at line 72 of file TermsAndConditions.hpp.
Referenced by addTranslation(), getTranslation(), removeTranslation(), setIndexToNextEmptySlot(), TermsAndConditions(), and ~TermsAndConditions().
|
private |
Definition at line 70 of file TermsAndConditions.hpp.
Referenced by addTranslation(), setIndexToNextEmptySlot(), TermsAndConditions(), and ~TermsAndConditions().
|
private |
Definition at line 76 of file TermsAndConditions.hpp.
Referenced by addTranslation(), TermsAndConditions(), and ~TermsAndConditions().
CAMutex* TermsAndConditions::synchLock |
Definition at line 83 of file TermsAndConditions.hpp.
Referenced by TermsAndConditions(), and ~TermsAndConditions().
|
private |
Definition at line 66 of file TermsAndConditions.hpp.
Referenced by addTranslation(), getID(), TermsAndConditions(), and ~TermsAndConditions().
|
private |
Definition at line 68 of file TermsAndConditions.hpp.
Referenced by addTranslation(), getTranslation(), removeTranslation(), setIndexToNextEmptySlot(), TermsAndConditions(), and ~TermsAndConditions().