Mixes for Privacy and Anonymity in the Internet
|
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 |
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.
|
virtual |
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
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 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.
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.
|
private |
References allTranslations, currentTranslationIndex, and translations.
Referenced by addTranslation(), and removeTranslation().
|
private |
|
private |
Referenced by addTranslation(), setIndexToNextEmptySlot(), TermsAndConditions(), and ~TermsAndConditions().
|
private |
Referenced by addTranslation(), TermsAndConditions(), and ~TermsAndConditions().
CAMutex* TermsAndConditions::synchLock |
Referenced by TermsAndConditions(), and ~TermsAndConditions().
|
private |
Referenced by addTranslation(), getID(), TermsAndConditions(), and ~TermsAndConditions().
|
private |