#include <favorites.h>

Public Member Functions | |
| Bookmark () | |
| bool | read_url (LPCTSTR path) |
| read .URL file | |
| bool | read (const_XMLPos &pos) |
| void | write (XMLPos &pos) const |
Public Attributes | |
| String | _name |
| String | _description |
| String | _url |
| String | _icon_path |
| int | _icon_idx |
Definition at line 32 of file favorites.h.
| Bookmark::Bookmark | ( | ) | [inline] |
Definition at line 34 of file favorites.h.
: _icon_idx(0) {}
| bool Bookmark::read | ( | const_XMLPos & | pos ) |
| bool Bookmark::read_url | ( | LPCTSTR | path ) |
read .URL file
Definition at line 54 of file favorites.cpp.
References _icon_path, _url, BUFFER_LEN, and DecodeURLString().
Referenced by BookmarkList::import_IE_favorites().
{
char line[BUFFER_LEN];
tifstream in(path);
while(in.good()) {
in.getline(line, BUFFER_LEN);
const char* p = line;
while(isspace(*p))
++p;
const char* keyword = p;
const char* eq = strchr(p, '=');
if (eq) {
const char* cont = eq + 1;
while(isspace(*cont))
++cont;
if (!_strnicmp(keyword, "URL", 3))
_url = DecodeURLString(cont);
else if (!_strnicmp(keyword, "IconFile", 8))
_icon_path = DecodeURLString(cont);
}
}
return true;
}


| void Bookmark::write | ( | XMLPos & | pos ) | const |
Definition at line 37 of file favorites.h.
Referenced by FavoritesMenu::AddEntries(), and MainFrameBase::Notify().
Definition at line 40 of file favorites.h.
Referenced by FavoritesMenu::AddEntries(), and BookmarkList::fill_tree().
Definition at line 39 of file favorites.h.
Referenced by FavoritesMenu::AddEntries(), BookmarkList::fill_tree(), and read_url().
Definition at line 36 of file favorites.h.
Referenced by FavoritesMenu::AddEntries(), BookmarkList::fill_tree(), and BookmarkList::import_IE_favorites().
Definition at line 38 of file favorites.h.
Referenced by FavoritesMenu::AddEntries(), FavoritesMenu::Command(), MainFrameBase::Notify(), and read_url().
|
ROS Explorer Source Code Documentation
generated on 02.01.2013 by
|