|
Mixe for Privacy and Anonymity in the Internet
|
Go to the source code of this file.
Classes | |
| struct | termsAndConditionMixAnswer_t |
| struct | termsAndConditionsTranslation_t |
| class | TermsAndConditions |
Defines | |
| #define | RESIZE_STORE 3 |
Enumerations | |
| enum | tcAnswerCode_t { TC_FAILED = -1, TC_CONFIRMED = 0, TC_UNFINISHED = 1 } |
Functions | |
| void | cleanupTnCMixAnswer (termsAndConditionMixAnswer_t *answer) |
| IMPORTANT NOTE: all methods does NOT incorporate locking over the translation store and thus are NOT THREAD-SAFE. | |
| void | cleanupTnCTranslation (termsAndConditionsTranslation_t *tnCTranslation) |
| #define RESIZE_STORE 3 |
Definition at line 32 of file TermsAndConditions.hpp.
Referenced by TermsAndConditions::addTranslation().
| enum tcAnswerCode_t |
Definition at line 37 of file TermsAndConditions.hpp.
{
TC_FAILED = -1, TC_CONFIRMED = 0, TC_UNFINISHED = 1
};
| void cleanupTnCMixAnswer | ( | termsAndConditionMixAnswer_t * | answer | ) |
IMPORTANT NOTE: all methods does NOT incorporate locking over the translation store and thus are NOT THREAD-SAFE.
If a caller obtains a reference to a translation entry he must lock it as long as he works with it by using the lock object provided by "getSynchLock".
Definition at line 42 of file TermsAndConditions.cpp.
References termsAndConditionMixAnswer_t::result, TC_UNFINISHED, and termsAndConditionMixAnswer_t::xmlAnswer.
Referenced by CAFirstMix::doUserLogin_internal().
{
if( (answer != NULL) )
{
if((answer->xmlAnswer != NULL))
{
answer->xmlAnswer->release();
answer->xmlAnswer = NULL;
}
answer->result = TC_UNFINISHED;
}
}
| void cleanupTnCTranslation | ( | termsAndConditionsTranslation_t * | tnCTranslation | ) |
Definition at line 55 of file TermsAndConditions.cpp.
References termsAndConditionsTranslation_t::tnc_customized, termsAndConditionsTranslation_t::tnc_id, termsAndConditionsTranslation_t::tnc_locale, and termsAndConditionsTranslation_t::tnc_template.
Referenced by TermsAndConditions::removeTranslation(), and TermsAndConditions::~TermsAndConditions().
{
if(tnCTranslation != NULL)
{
tnCTranslation->tnc_id = NULL;
tnCTranslation->tnc_template = NULL;
if(tnCTranslation->tnc_customized != NULL)
{
tnCTranslation->tnc_customized->release();
}
tnCTranslation->tnc_customized = NULL;
delete [] tnCTranslation->tnc_locale;
tnCTranslation->tnc_locale = NULL;
}
}
1.7.6.1