Initialize();\r
}\r
\r
-void IdentityExportXML::AddIdentity(const std::string &name, const std::string &publickey, const std::string &privatekey, const bool singleuse, const bool publishtrustlist, const bool publishboardlist)\r
+void IdentityExportXML::AddIdentity(const std::string &name, const std::string &publickey, const std::string &privatekey, const bool singleuse, const bool publishtrustlist, const bool publishboardlist, const bool publishfreesite)\r
{\r
- m_identities.push_back(identity(name,publickey,privatekey,singleuse,publishtrustlist,publishboardlist));\r
+ m_identities.push_back(identity(name,publickey,privatekey,singleuse,publishtrustlist,publishboardlist,publishfreesite));\r
}\r
\r
const std::string IdentityExportXML::GetName(const long index)\r
}\r
}\r
\r
+const bool IdentityExportXML::GetPublishFreesite(const long index)\r
+{\r
+ if(index>=0 && index<GetCount())\r
+ {\r
+ return m_identities[index].m_publishfreesite;\r
+ }\r
+ else\r
+ {\r
+ return false;\r
+ }\r
+}\r
+\r
const bool IdentityExportXML::GetPublishTrustList(const long index)\r
{\r
if(index>=0 && index<GetCount())\r
tr->LinkEndChild(XMLCreateBooleanElement("SingleUse",(*i).m_singleuse));\r
tr->LinkEndChild(XMLCreateBooleanElement("PublishTrustList",(*i).m_publishtrustlist));\r
tr->LinkEndChild(XMLCreateBooleanElement("PublishBoardList",(*i).m_publishboardlist));\r
+ tr->LinkEndChild(XMLCreateBooleanElement("PublishFreesite",(*i).m_publishfreesite));\r
}\r
\r
td.Accept(&tp);\r
bool singleuse=false;\r
bool publishtrustlist=false;\r
bool publishboardlist=false;\r
+ bool publishfreesite=false;\r
TiXmlText *txt;\r
TiXmlHandle hnd(&td);\r
TiXmlNode *node;\r
singleuse=false;\r
publishtrustlist=false;\r
publishboardlist=false;\r
+ publishfreesite=false;\r
\r
TiXmlHandle hnd2(node);\r
txt=hnd2.FirstChild("Name").FirstChild().ToText();\r
singleuse=XMLGetBooleanElement(node->ToElement(),"SingleUse");\r
publishtrustlist=XMLGetBooleanElement(node->ToElement(),"PublishTrustList");\r
publishboardlist=XMLGetBooleanElement(node->ToElement(),"PublishBoardList");\r
+ publishfreesite=XMLGetBooleanElement(node->ToElement(),"PublishFreesite");\r
\r
if(name!="" && publickey!="" && privatekey!="")\r
{\r
- m_identities.push_back(identity(name,publickey,privatekey,singleuse,publishtrustlist,publishboardlist));\r
+ m_identities.push_back(identity(name,publickey,privatekey,singleuse,publishtrustlist,publishboardlist,publishfreesite));\r
}\r
\r
node=node->NextSibling("Identity");\r