ReactOS  0.4.14-dev-77-gd9e7c48
BookmarkFolder Struct Reference

#include <favorites.h>

Collaboration diagram for BookmarkFolder:

Public Member Functions

void read (const_XMLPos &pos)
 read bookmark folder from XBEL formated XML tree More...
 
void write (XMLPos &pos) const
 write bookmark folder content from XBEL formated XML tree More...
 

Public Attributes

String _name
 
String _description
 
BookmarkList _bookmarks
 

Detailed Description

Definition at line 86 of file favorites.h.

Member Function Documentation

◆ read()

void BookmarkFolder::read ( const_XMLPos &  pos)

read bookmark folder from XBEL formated XML tree

Definition at line 160 of file favorites.cpp.

161 {
162  if (pos.go_down("title")) {
163  _name = pos->get_content();
164  pos.back();
165  }
166 
167  if (pos.go_down("desc")) {
168  _description = pos->get_content();
169  pos.back();
170  }
171 
173 }
BookmarkList _bookmarks
Definition: favorites.h:90
String _name
Definition: favorites.h:88
String _description
Definition: favorites.h:89
void read(const_XMLPos &pos)
read bookmark list from XBEL formated XML tree
Definition: favorites.cpp:281

◆ write()

void BookmarkFolder::write ( XMLPos &  pos) const

write bookmark folder content from XBEL formated XML tree

Definition at line 176 of file favorites.cpp.

177 {
178  pos.create("folder");
179 
180  if (!_name.empty()) {
181  pos.create("title");
182  pos->set_content(_name);
183  pos.back();
184  }
185 
186  if (!_description.empty()) {
187  pos.create("desc");
188  pos->set_content(_description);
189  pos.back();
190  }
191 
193 }
BookmarkList _bookmarks
Definition: favorites.h:90
String _name
Definition: favorites.h:88
void write(XMLPos &pos) const
write bookmark list into XBEL formated XML tree
Definition: favorites.cpp:305
String _description
Definition: favorites.h:89

Member Data Documentation

◆ _bookmarks

BookmarkList BookmarkFolder::_bookmarks

Definition at line 90 of file favorites.h.

Referenced by BookmarkList::import_IE_favorites(), read(), and write().

◆ _description

String BookmarkFolder::_description

Definition at line 89 of file favorites.h.

Referenced by read(), and write().

◆ _name

String BookmarkFolder::_name

Definition at line 88 of file favorites.h.

Referenced by BookmarkList::import_IE_favorites(), read(), and write().


The documentation for this struct was generated from the following files: