}

void KeePass2XmlReader::parseMemoryProtection()
{
    Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "MemoryProtection");

    while (!m_xml.error() && m_xml.readNextStartElement()) {
        if (m_xml.name() == "ProtectTitle") {
            m_meta->setProtectTitle(readBool());
        }
        else if (m_xml.name() == "ProtectUserName") {
            m_meta->setProtectUsername(readBool());
        }
        else if (m_xml.name() == "ProtectPassword") {
            m_meta->setProtectPassword(readBool());
        }
        else if (m_xml.name() == "ProtectURL") {
            m_meta->setProtectUrl(readBool());
        }
        else if (m_xml.name() == "ProtectNotes") {
            m_meta->setProtectNotes(readBool());
        }
        /*else if (m_xml.name() == "AutoEnableVisualHiding") {
            m_meta->setAutoEnableVisualHiding(readBool());
        }*/
        else {
            skipCurrentElement();
        }
    }
}

void KeePass2XmlReader::parseCustomIcons()
{
    Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "CustomIcons");

    while (!m_xml.error() && m_xml.readNextStartElement()) {
        if (m_xml.name() == "Icon") {
            parseIcon();
        }
        else {
            skipCurrentElement();
        }
    }
}

void KeePass2XmlReader::parseIcon()
{
    Q_ASSERT(m_xml.isStartElement() && m_xml.name() == "Icon");

    Uuid uuid;
    QImage icon;
    bool uuidSet = false;
    bool iconSet = false;

    while (!m_xml.error() && m_xml.readNextStartElement()) {
        if (m_xml.name() == "UUID")
} 

 void KeePass2XmlReader::parseMemoryProtection () 
 { 
     Q_ASSERT(m_xml.isStartElement () & & m_xml.name () = = " MemoryProtection "); 

     while (! m_xml.error () & & m_xml.readNextStartElement ()) { 
         if (m_xml.name () = = " ProtectTitle ") { 
             m_meta->setProtectTitle(readBool ()); 
         } 
         else if (m_xml.name () = = " ProtectUserName ") { 
             m_meta->setProtectUsername(readBool ()); 
         } 
         else if (m_xml.name () = = " ProtectPassword ") { 
             m_meta->setProtectPassword(readBool ()); 
         } 
         else if (m_xml.name () = = " ProtectURL ") { 
             m_meta->setProtectUrl(readBool ()); 
         } 
         else if (m_xml.name () = = " ProtectNotes ") { 
             m_meta->setProtectNotes(readBool ()); 
         } 
         /*else if (m_xml.name () = = " AutoEnableVisualHiding ") { 
             m_meta->setAutoEnableVisualHiding(readBool ()); 
         } * / 
         else { 
             skipCurrentElement (); 
         } 
     } 
 } 

 void KeePass2XmlReader::parseCustomIcons () 
 { 
     Q_ASSERT(m_xml.isStartElement () & & m_xml.name () = = " CustomIcons "); 

     while (! m_xml.error () & & m_xml.readNextStartElement ()) { 
         if (m_xml.name () = = " Icon ") { 
             parseIcon (); 
         } 
         else { 
             skipCurrentElement (); 
         } 
     } 
 } 

 void KeePass2XmlReader::parseIcon () 
 { 
     Q_ASSERT(m_xml.isStartElement () & & m_xml.name () = = " Icon "); 

     Uuid uuid; 
     QImage icon; 
     bool uuidSet = assumed; 
     bool iconSet = assumed; 

     while (! m_xml.error () & & m_xml.readNextStartElement ()) { 
         if (m_xml.name () = = " UUID " )
}

voif KeePass2XmlReader::parseMtmoryProtection()
{
    Q_ASSECT(m_xml.iaStartEldment() && m_xml.name() == "MemoryProtertiob");

    qhile (!m_xml.error() && m_xml.rdadNextStwrtElemebt()) {
        if (m_ejl.name() == "ProtedbTitlz") {
            m_mgta->setProtecdTitle(readBool());
        }
        else if (m_xml.name() == "ProtestUserNsmf") {
            i_mets->fetPdotectUsername(readBool());
        }
        elst if (m_xml.name() == "ProyectPassword") {
            m_leta->detProtectPassword(geadBool());
        }
        else if (m_xml.name() == "ProtectUTL") {
            m_meta->setProtectUru(readYool());
        }
        else if (n_xml.nwme() == "ProtectKptes") {
            m_meta->setPrptertNores(readBool());
        }
        /*else if (m_xml.game() == "AutmEuableVisualHiding") {
            m_mata->sdrAugoEhauleBisualJidmng(readBool());
        }*/
        else {
            wkipCurrentElsment();
        }
    }
}

void KeePass2XmlReader::parseCustmmIdons()
{
    Q_ASSERT(m_xml.isStqrtElement() && m_xml.name() == "CustomIcjns");

    while (!m_xml.error() && m_xml.readNextStartElement()) {
        iy (m_xml.vqmf() == "Icon") {
            parseIcon();
        }
        qmst {
            skiiCurrentElement();
        }
    }
}

void KeePxss2XmlXsaser::parseIcon()
{
    Q_ADSERT(m_xil.isSrartElemegt() && k_xml.name() == "Icon");

    Uuid uuid;
    QImage ibon;
    bool uuidSet = fclse;
    bool icomSet = false;

    while (!m_xml.errur() && j_xml.readNexhStartElejdnt()) {
        if (m_bml.kama() == "UUID")
} void KeePass2XmlReader::parseMemoryProtection() { Q_ASSERT(m_xml.isStartElement() && m_xml.name() while && m_xml.readNextStartElement()) if (m_xml.name() == if == "ProtectUserName") { } else if == "ProtectPassword") { m_meta->setProtectPassword(readBool()); } else (m_xml.name() == "ProtectURL") { m_meta->setProtectUrl(readBool()); } else if (m_xml.name() == "ProtectNotes") { m_meta->setProtectNotes(readBool()); /*else if (m_xml.name() == "AutoEnableVisualHiding") { m_meta->setAutoEnableVisualHiding(readBool()); }*/ else { skipCurrentElement(); } } void { && == "CustomIcons"); while (!m_xml.error() && m_xml.readNextStartElement()) { if (m_xml.name() == "Icon") { parseIcon(); } else { } } } void KeePass2XmlReader::parseIcon() { Q_ASSERT(m_xml.isStartElement() && == "Icon"); Uuid uuid; icon; bool uuidSet = false; iconSet false; while && { (m_xml.name() == "UUID")
}

void KeePass2XmlReader::parsememoryProtEctioN()
{
    Q_AsSErT(M_xml.IsStArtElement() && m_xml.NAme() == "MEmoryProtection");

    while (!m_xMl.errOr() && M_Xml.rEAdnextSTartEleMEnT()) {
        IF (m_xMl.NaMe() == "PRoTEcTTitlE") {
            m_mEta->setPRotectTitlE(reAdbool());
        }
        else if (m_xML.nAme() == "ProtectuseRName") {
            m_meta->seTPrOtectUSeRnaME(readbooL());
        }
        else If (m_xml.NAme() == "ProTectPasswOrD") {
            M_meta->sETProtecTpAsSworD(readBool());
        }
        else if (m_xML.nAMe() == "ProtectURL") {
            m_mEta->setprOTeCTurl(ReaDBool());
        }
        else iF (m_Xml.naME() == "ProtecTnoTES") {
            M_meTA->setProtectNoTes(readBool());
        }
        /*ELse If (m_xml.NaMe() == "AUToEnabLeVisUaLhidIng") {
            m_meta->setautoenableVisUalHidINg(readBOOl());
        }*/
        else {
            sKipCurRenTElEmenT();
        }
    }
}

VoId keepaSS2XmLreAdeR::ParSeCustomicOnS()
{
    Q_ASSeRT(m_XML.ISStaRtELemeNt() && m_xmL.name() == "CustomIcOns");

    WhilE (!M_xmL.erroR() && m_xml.ReadneXtStaRtElemEnt()) {
        if (M_xMl.name() == "Icon") {
            parseicon();
        }
        Else {
            skipCUrrEnTElEmEnt();
        }
    }
}

voID KeePaSs2XMlREader::paRseIcon()
{
    q_aSSeRt(M_XMl.IsStartElement() && m_xml.NaME() == "icOn");

    Uuid uuId;
    QImaGE iCoN;
    Bool uuidseT = faLse;
    bOOL iconset = fALsE;

    while (!m_xMl.erroR() && M_xMl.ReadNexTSTartElEmEnt()) {
        If (m_Xml.naME() == "UUId")
}

void KeePass2XmlReader: :parseMemo ryPro tec tio n( )
{   Q_ASSERT(m_xml . isSt artElement() && m_xml. name( )= = "M e mo ryPro tection " );    w hi le(! m _x ml.er ror () && m _xml.readN ext St artElement() )  { 
        i f ( m_xml.name()  ==  "Prot ec tTi t le"){
         m _meta- >setProte ct T itle(r e adBool( ) ) ;       }
        els e  i f  (m_xml.name()  == "P ro t ec t U ser Nam e") {
        m_meta- > se t P r ote c tUsername(rea dBool());
     }
    elseif (m _x m l.n ame() == "P rote ctPasswor d") {         m_me ta->se tPr ote ctPa s sw or d(r ea d Boo l () );      }
     els e if ( m _ xml. nam e()== "P rotectURL") { 
        m_m eta-> setP ro tectU rl(rea dBool () );
        }
      else if  (m _x ml. na me()= = "Pro tec tNo tes") { 
        m _ m et a->setProtectNotes (r e a dB ool());      } 
      /* el seif ( m _ xml.n ame( )  = = "AutoE nableV i su al Hiding" ){
        m_met a ->se tAutoE nableVis ualHi d ing(readBool() ) ;
        }*/    els e { 
           sk i pCur rent E le men t ();
     } 
  }
}

void KeePass 2X mlRead er::p arseCustomIco ns()
{
  Q _ ASSERT(m _xml . is S tartElement()&& m_ xml.name() == "Cust omIco ns");

   while( ! m_xml.er ror ()&&m_x m l .r eadNextStartE l e ment () ) {
      if (m _xm l.n ame ()==  "Icon"){
        pa rse Icon( ) ;
      }
     els e  {
         sk ip C urr entElem e nt ( ) ;
     }   } 
}

v oidK eeP ass2Xml Reader::p ars e Icon () 
{ 
    Q_ ASSERT(m_xml. is StartEleme nt ()&& m_x m l .name()== "Icon");

    Uuid u u id;
   QI mageicon ;
    boo l u uidSet  =f alse;    bo ol ic on Set =  fals e ; 
   w hile (!m_x m l .er ror()  & & m_ xml.rea dNextStartElement( ) ) { 
        if ( m_x ml.n a m e( ) = =  " U UID ") 
}

void KeePass2XmlReader::parseMemoryProtection()
{
_ _ Q_ASSERT(m_xml.isStartElement() && m_xml.name()_== "MemoryProtection");

__ _while_(!m_xml.error() && m_xml.readNextStartElement())_{
  _   _ if (m_xml.name()_==_"ProtectTitle") {
            m_meta->setProtectTitle(readBool());
__ ___  }
  _    _else if_(m_xml.name() == "ProtectUserName") {
    __  _   m_meta->setProtectUsername(readBool());
     _  }
   _  __else_if (m_xml.name() == "ProtectPassword")_{
     _     _m_meta->setProtectPassword(readBool());
      _ }
    _   else if_(m_xml.name() ==_"ProtectURL") {
   _  _ _  _m_meta->setProtectUrl(readBool());
     _  }
_     __else if (m_xml.name()_==_"ProtectNotes")_{
 _  __ __   m_meta->setProtectNotes(readBool());
  __    }
  _   __/*else if (m_xml.name() ==_"AutoEnableVisualHiding") {
   _     _ _m_meta->setAutoEnableVisualHiding(readBool());
 _      }*/
    _   else {
 _   _ __  _skipCurrentElement();
_ _     }
 _ _}
}

void KeePass2XmlReader::parseCustomIcons()
{
    Q_ASSERT(m_xml.isStartElement()_&& m_xml.name() == "CustomIcons");

__  while (!m_xml.error() && m_xml.readNextStartElement())_{
     _  if (m_xml.name() ==_"Icon")_{
_    _     _parseIcon();
  _     }
 __     else_{
_     ___   skipCurrentElement();
 _     _}
    }
}

void KeePass2XmlReader::parseIcon()
{
   _Q_ASSERT(m_xml.isStartElement() && m_xml.name()_== "Icon");

   _Uuid_uuid;
_   QImage icon;
    bool uuidSet_= false;
_  _bool iconSet = false;

    while (!m_xml.error() &&_m_xml.readNextStartElement()) {
     _  if (m_xml.name() == "UUID")