15 #include "bookmarkstorage.h"
16 #include "clientbase.h"
24 m_bookmarkHandler( 0 )
34 Tag *s =
new Tag(
"storage" );
39 BookmarkList::const_iterator it = bList.begin();
40 for( ; it != bList.end(); ++it )
42 Tag *i =
new Tag( s,
"url" );
50 ConferenceList::const_iterator it = cList.begin();
51 for( ; it != cList.end(); ++it )
53 Tag *i =
new Tag( s,
"conference" );
61 new Tag( i,
"nick", (*it).nick );
62 new Tag( i,
"password", (*it).password );
79 Tag::TagList::const_iterator it = l.begin();
80 for( ; it != l.end(); ++it )
82 if( (*it)->name() ==
"url" )
84 const std::string& url = (*it)->findAttribute(
"url" );
85 const std::string& name = (*it)->findAttribute(
"name" );
87 if( !url.empty() && !name.empty() )
92 bList.push_back( item );
95 else if( (*it)->name() ==
"conference" )
97 bool autojoin =
false;
98 const std::string& jid = (*it)->findAttribute(
"jid" );
99 const std::string& name = (*it)->findAttribute(
"name" );
100 const std::string& join = (*it)->findAttribute(
"autojoin" );
101 if( ( join ==
"true" ) || ( join ==
"1" ) )
106 nick = nickname->
cdata();
110 pwd = password->
cdata();
112 if( !jid.empty() && !name.empty() )
120 cList.push_back( item );
125 if( m_bookmarkHandler )
135 m_bookmarkHandler = bmh;
140 m_bookmarkHandler = 0;