bool Registration::initObjects() { XmppError::registerError(NS_INTERNAL_ERROR,IERR_REGISTER_UNSUPPORTED,tr("Registration is not supported")); XmppError::registerError(NS_INTERNAL_ERROR,IERR_REGISTER_INVALID_FIELDS,tr("Invalid registration fields")); XmppError::registerError(NS_INTERNAL_ERROR,IERR_REGISTER_REJECTED_BY_USER,tr("Registration rejected by user")); if (FXmppStreamManager) { FXmppStreamManager->registerXmppFeature(XFO_REGISTER,NS_FEATURE_REGISTER); FXmppStreamManager->registerXmppFeatureFactory(XFFO_DEFAULT,NS_FEATURE_REGISTER,this); } if (FDiscovery) { registerDiscoFeatures(); FDiscovery->insertFeatureHandler(NS_JABBER_REGISTER,this,DFO_DEFAULT); } if (FDataForms) { FDataForms->insertLocalizer(this,DATA_FORM_REGISTER); } if (FXmppUriQueries) { FXmppUriQueries->insertUriHandler(this,XUHO_DEFAULT); } return true; }
bool JingleTransportIceUdp::initObjects() { qDebug() << "JingleTransportIceUdp::initObjects()"; if (FServiceDiscovery) registerDiscoFeatures(); return true; }
bool Gateways::initObjects() { if (FDiscovery) { registerDiscoFeatures(); FDiscovery->insertFeatureHandler(NS_JABBER_GATEWAY,this,DFO_DEFAULT); } return true; }
bool DataForms::initObjects() { XmppError::registerError(NS_INTERNAL_ERROR,IERR_DATAFORMS_MEDIA_INVALID_TYPE,tr("Unsupported media type")); XmppError::registerError(NS_INTERNAL_ERROR,IERR_DATAFORMS_MEDIA_INVALID_FORMAT,tr("Unsupported data format")); XmppError::registerError(NS_INTERNAL_ERROR,IERR_DATAFORMS_URL_INVALID_SCHEME,tr("Unsupported url scheme")); XmppError::registerError(NS_INTERNAL_ERROR,IERR_DATAFORMS_URL_NETWORK_ERROR,tr("Url load failed")); if (FDiscovery) registerDiscoFeatures(); return true; }
bool JabberSearch::initObjects() { if (FDiscovery) { registerDiscoFeatures(); FDiscovery->insertFeatureHandler(NS_JABBER_SEARCH,this,DFO_DEFAULT); } if (FDataForms) { FDataForms->insertLocalizer(this,DATA_FORM_SEARCH); } return true; }
bool Gateways::initObjects() { Shortcuts::declareShortcut(SCT_ROSTERVIEW_GATELOGIN, tr("Login on transport"), QKeySequence::UnknownKey, Shortcuts::WidgetShortcut); Shortcuts::declareShortcut(SCT_ROSTERVIEW_GATELOGOUT, tr("Logout from transport"), QKeySequence::UnknownKey, Shortcuts::WidgetShortcut); if (FDiscovery) { registerDiscoFeatures(); FDiscovery->insertFeatureHandler(NS_JABBER_GATEWAY,this,DFO_DEFAULT); } if (FRostersViewPlugin) { Shortcuts::insertWidgetShortcut(SCT_ROSTERVIEW_GATELOGIN,FRostersViewPlugin->rostersView()->instance()); Shortcuts::insertWidgetShortcut(SCT_ROSTERVIEW_GATELOGOUT,FRostersViewPlugin->rostersView()->instance()); } return true; }
bool ClientInfo::initObjects() { if (FStanzaProcessor) { IStanzaHandle shandle; shandle.handler = this; shandle.order = SHO_DEFAULT; shandle.direction = IStanzaHandle::DirectionIn; shandle.conditions.append(SHC_SOFTWARE_VERSION); FVersionHandle = FStanzaProcessor->insertStanzaHandle(shandle); shandle.conditions.clear(); shandle.conditions.append(SHC_LAST_ACTIVITY); FActivityHandler = FStanzaProcessor->insertStanzaHandle(shandle); shandle.conditions.clear(); shandle.conditions.append(SHC_ENTITY_TIME); FTimeHandle = FStanzaProcessor->insertStanzaHandle(shandle); shandle.conditions.clear(); shandle.conditions.append(SHC_XMPP_PING); FPingHandle = FStanzaProcessor->insertStanzaHandle(shandle); } if (FDiscovery) { registerDiscoFeatures(); FDiscovery->insertFeatureHandler(NS_JABBER_VERSION,this,DFO_DEFAULT); FDiscovery->insertFeatureHandler(NS_JABBER_LAST,this,DFO_DEFAULT); FDiscovery->insertFeatureHandler(NS_XMPP_TIME,this,DFO_DEFAULT); } if (FDataForms) { FDataForms->insertLocalizer(this,DFT_SOFTWAREINFO); } return true; }