void QalfModeratorWidget::checkKey() { qDebug() << "checkKey" ; QalfConfig *configObject = QalfConfig::getConfigObject() ; QString keyProperty("moderatorKey") ; QString key = configObject->getProperty(keyProperty) ; if(key == "") { switchToNokey() ; } else { QString emailProperty("email") ; QString email = configObject->getProperty(emailProperty) ; QalfNetwork client ; try { QalfNetwork::ResultCode keyStatus = client.checkKeyStatus(email,key) ; // key not sent if(keyStatus == QalfNetwork::KeyUnknown) { switchToKeyUnknown() ; } else { // key not trusted if(keyStatus == QalfNetwork::KeyUntrusted) { switchToKeyUntrusted() ; } else { switchToKeyTrusted() ; } } } catch(QalfNetworkException &exception) { QMessageBox::critical(this, tr("Server error"), tr("Error %1 : ").arg(exception.code())+exception.message(), QMessageBox::Ok, QMessageBox::NoButton, QMessageBox::NoButton) ; } } }
static void initialize() { commentOnlyObjectName(); commentOnlyObjectText(); version(); header(); commentOnlyLine(); contentAndCommentLine(); group(); includeFile(); removeObject(); line(); memoProperty(); noteProperty(); objectNoFields(); objectAndFields(); uniqueProperty(); requiredObjectProperty(); obsoleteProperty(); hasurlProperty(); extensibleProperty(); formatProperty(); minFieldsProperty(); maxFieldsProperty(); field(); closingField(); lastField(); name(); nameProperty(); requiredFieldProperty(); autosizableProperty(); autocalculatableProperty(); retaincaseProperty(); unitsProperty(); ipUnitsProperty(); minExclusiveProperty(); minInclusiveProperty(); maxExclusiveProperty(); maxInclusiveProperty(); deprecatedProperty(); defaultProperty(); automaticDefault(); typeProperty(); keyProperty(); objectListProperty(); externalListProperty(); referenceProperty(); beginExtensible(); beginExtensibleProperty(); metaDataComment(); versionObjectName(); }