2 * Copyright 2004 Martin Fuchs
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 // Explorer and Desktop clone
25 // Martin Fuchs, 04.04.2004
29 extern String
DecodeURLString(const char* s
);
34 Bookmark() : _icon_idx(0) {}
42 bool read_url(LPCTSTR path
);
43 bool read(const_XMLPos
& pos
);
44 void write(XMLPos
& pos
) const;
47 struct BookmarkFolder
;
52 BookmarkNode(const Bookmark
& bm
);
53 BookmarkNode(const BookmarkFolder
& bmf
);
54 BookmarkNode(const BookmarkNode
& other
);
58 BookmarkNode
& operator=(const Bookmark
& bm
);
59 BookmarkNode
& operator=(const BookmarkFolder
& bmf
);
60 BookmarkNode
& operator=(const BookmarkNode
& other
);
64 enum BOOKMARKNODE_TYPE
{
65 BMNT_NONE
, BMNT_BOOKMARK
, BMNT_FOLDER
68 BOOKMARKNODE_TYPE _type
;
72 BookmarkFolder
* _pfolder
;
76 struct BookmarkList
: public list
<BookmarkNode
>
78 void import_IE_favorites(struct ShellDirectory
& dir
, HWND hwnd
);
80 void read(const_XMLPos
& pos
);
81 void write(XMLPos
& pos
) const;
83 void fill_tree(HWND hwnd
, HTREEITEM parent
, HIMAGELIST
, HDC hdc_wnd
) const;
90 BookmarkList _bookmarks
;
92 void read(const_XMLPos
& pos
);
93 void write(XMLPos
& pos
) const;
96 struct Favorites
: public BookmarkList
98 typedef BookmarkList super
;
100 bool read(LPCTSTR path
);
101 void write(LPCTSTR path
) const;
103 bool import_IE_favorites(HWND hwnd
);