InfoType request_infos() { std::unique_ptr<DialogType> dialog( new DialogType() ); if( dialog->exec() ) return dialog->infos(); else return InfoType(); }
//! @brief Receives object members through the channel being passed as parameter. int XC::Information::recvData(const CommParameters &cp) { //setTag(getDbTagDataPos(0)); int IT= theType; int res= cp.receiveInts(IT,theInt,getDbTagData(),CommMetaData(1)); theType= InfoType(IT); res+= cp.receiveDouble(theDouble,getDbTagData(),CommMetaData(2)); theID= cp.receiveIDPtr(theID,getDbTagData(),ArrayCommMetaData(3,4,5)); theVector= cp.receiveVectorPtr(theVector,getDbTagData(),ArrayCommMetaData(6,7,8)); theMatrix= cp.receiveMatrixPtr(theMatrix,getDbTagData(),MatrixCommMetaData(9,10,11,12)); theTensor= cp.receiveTensorPtr(theTensor,getDbTagData(),TensorCommMetaData(13,14,15,16)); return res; }
static QList<InfoType> makeInfoTypeList(bool legacyEmail = false) { QList<InfoType> out; out += InfoType(QCA::CommonName, "CommonName", "CN", CertViewDlg::tr("Common Name (CN)"), "Full name, domain, anything"); out += InfoType(QCA::Email, "Email", "", CertViewDlg::tr("Email Address"), ""); if(legacyEmail) out += InfoType(QCA::EmailLegacy, "EmailLegacy", "", CertViewDlg::tr("PKCS#9 Email Address"), ""); out += InfoType(QCA::Organization, "Organization", "O", CertViewDlg::tr("Organization (O)"), "Company, group, etc"); out += InfoType(QCA::OrganizationalUnit, "OrganizationalUnit", "OU", CertViewDlg::tr("Organizational Unit (OU)"), "Division/branch of organization"); out += InfoType(QCA::Locality, "Locality", "", CertViewDlg::tr("Locality (L)"), "City, shire, part of a state"); out += InfoType(QCA::State, "State", "", CertViewDlg::tr("State (ST)"), "State within the country"); out += InfoType(QCA::Country, "Country", "C", CertViewDlg::tr("Country Code (C)"), "2-letter code"); out += InfoType(QCA::IncorporationLocality, "IncorporationLocality", "", CertViewDlg::tr("Incorporation Locality"), "For EV certificates"); out += InfoType(QCA::IncorporationState, "IncorporationState", "", CertViewDlg::tr("Incorporation State"), "For EV certificates"); out += InfoType(QCA::IncorporationCountry, "IncorporationCountry", "", CertViewDlg::tr("Incorporation Country"), "For EV certificates"); out += InfoType(QCA::URI, "URI", "", CertViewDlg::tr("URI"), ""); out += InfoType(QCA::DNS, "DNS", "", CertViewDlg::tr("Domain Name"), "Domain (dnsName)"); out += InfoType(QCA::IPAddress, "IPAddress", "", CertViewDlg::tr("IP Adddress"), ""); out += InfoType(QCA::XMPP, "XMPP", "", CertViewDlg::tr("XMPP Address (JID)"), "From RFC 3920 (id-on-xmppAddr)"); return out; }