DomainPlug-insDocumentation
|
00001 #ifndef _EPPTYPE_H_ 00002 #define _EPPTYPE_H_ 00003 #include "DomainPluginTypes.h" 00004 00005 /* 00006 * @class EPPContact 00007 * @ingroup geppxml 00008 */ 00009 struct EPPContact { 00010 EPPContact(){}; 00011 EPPContact(const DTContact& contact) : 00012 ID(contact.handleID), 00013 Org(contact.orgName), 00014 Name(Str() << contact.fName << " " << contact.lName), 00015 AddrStreet(contact.address1), 00016 AddrCity(contact.city), 00017 AddrSP(contact.state.length() > 0 ? contact.state : contact.stateName), 00018 AddrPC(contact.zip), 00019 AddrCC((Str() << contact.country).toUpper() == "UK" ? "GB" : (Str() << contact.country).toUpper()), 00020 Voice(Str("+")<< contact.phone.cc << "." << contact.phone.area << 00021 contact.phone.number), 00022 VoiceExt(contact.phone.ext), 00023 Fax(contact.fax.number.length() > 0 ? 00024 Str("+")<< contact.fax.cc << "." << contact.fax.area << contact.fax.number 00025 : "" 00026 ), 00027 FaxExt(contact.fax.ext), 00028 Email(contact.eMail){}; 00029 00030 Str ID; 00031 Str Org; 00032 Str Name; 00033 Str AddrStreet; 00034 Str AddrCity; 00035 Str AddrSP; 00036 Str AddrPC; 00037 Str AddrCC; 00038 Str Voice; 00039 Str VoiceExt; 00040 Str Fax; 00041 Str FaxExt; 00042 Str Email; 00043 Str Password; 00044 }; 00045 00046 enum EPPNSTYPE { 00047 hostAttr, hostObj 00048 }; 00049 00054 struct EPPNS { 00055 Str hostName; 00056 Str hostAddr; 00057 EPPNSTYPE eppNsType; 00058 EPPNS() {;} 00059 EPPNS(const Str& name, const Str& ip, const EPPNSTYPE& aEppNsType = hostAttr) { hostName = name; hostAddr = ip; eppNsType = aEppNsType; } 00060 }; 00061 00066 struct EPPResponse { 00067 int code; 00068 Str msg; 00069 }; 00070 00071 #endif