HtmlView::HtmlView( HWND parent, const std::string & title ) { parentHWnd=parent; init(); SetParent(thisHWnd, parent); this->title=utf8::utf8_wchar(title); wt=WndTitleRef(new WndTitle(this, 0)); }
DiscoListView::DiscoListView( HWND parent, const std::string & title ) { parentHWnd=parent; init(); SetParent(thisHWnd, parent); this->title=utf8::utf8_wchar(title); wt=WndTitleRef(new WndTitle(this, 0)); cursorPos=ODRRef();//odrlist->front(); odrlist=ODRListRef(new ODRList()); }
ClientInfoForm::ref ClientInfoForm::createInfoForm( HWND parent, const std::string &jid, ResourceContextRef rc) { ClientInfoForm *vf=new ClientInfoForm(); vf->parentHWnd=parent; vf->title=utf8::utf8_wchar(jid); vf->wt=WndTitleRef(new WndTitle(vf, icons::ICON_SEARCH_INDEX)); vf->init(); SetParent(vf->thisHWnd, parent); vf->rc=rc; ClientInfoForm::ref vfRef=ClientInfoForm::ref(vf); vfRef->infoListener=new GetInfo(jid, vfRef); rc->jabberStanzaDispatcherRT->addListener(JabberDataBlockListenerRef(vfRef->infoListener)); vfRef->infoListener->doRequest(rc); return vfRef; }
VcardForm::ref VcardForm::createVcardForm( HWND parent,const std::string &jid, ResourceContextRef rc, bool edit) { VcardForm *vf=new VcardForm(); vf->editForm=edit; vf->parentHWnd=parent; vf->title=utf8::utf8_wchar(jid); vf->wt=WndTitleRef(new WndTitle(vf, icons::ICON_VCARD)); vf->init(); SetParent(vf->thisHWnd, parent); vf->rc=rc; VcardForm::ref vfRef=VcardForm::ref(vf); GetVcard *getv=new GetVcard(jid, vfRef); rc->jabberStanzaDispatcherRT->addListener(JabberDataBlockListenerRef(getv)); getv->doRequest(rc); return vfRef; }
MucConfigForm::ref MucConfigForm::createMucConfigForm(HWND parent, const std::string &roomJid, ResourceContextRef rc) { MucConfigForm *af=new MucConfigForm(); af->parentHWnd=parent; af->title=utf8::utf8_wchar(roomJid); af->wt=WndTitleRef(new WndTitle(af, icons::ICON_AD_HOC)); af->init(); SetParent(af->thisHWnd, parent); af->rc=rc; af->roomJid=roomJid; MucConfigForm::ref afRef=MucConfigForm::ref(af); af->formRef=afRef; /*GetMucConfig *getah=new GetMucConfig(jid, node, afRef); rc->jabberStanzaDispatcherRT->addListener(JabberDataBlockListenerRef(getah)); getah->doRequest(rc, "", "execute", JabberDataBlockRef());*/ af->sendIq(JabberDataBlockRef()); return afRef; }
CaptchaForm::ref CaptchaForm::createCaptchaForm(HWND parent, const std::string &jid, const std::string &id, ResourceContextRef rc){ CaptchaForm *af=new CaptchaForm(); af->parentHWnd=parent; af->title=utf8::utf8_wchar(jid); af->wt=WndTitleRef(new WndTitle(af, icons::ICON_AD_HOC)); af->init(); SetParent(af->thisHWnd, parent); af->rc=rc; af->jid=jid; af->id=id; CaptchaForm::ref afRef=CaptchaForm::ref(af); af->formRef=afRef; /*IqRegister *regListener=new IqRegister(jid, afRef); rc->jabberStanzaDispatcherRT->addListener(JabberDataBlockListenerRef(regListener)); regListener->doRequest(rc, JabberDataBlockRef());*/ return afRef; }