ReactOS  0.4.13-dev-249-gcba1a2f
Favorites Struct Reference

#include <favorites.h>

Inheritance diagram for Favorites:
Collaboration diagram for Favorites:

Public Types

typedef BookmarkList super
 
- Public Types inherited from list< BookmarkNode >
typedef BookmarkNode value_type
 
typedef BookmarkNode value_type
 
typedef value_typepointer
 
typedef value_typepointer
 
typedef const value_typeconst_pointer
 
typedef const value_typeconst_pointer
 
typedef value_typereference
 
typedef value_typereference
 
typedef const value_typeconst_reference
 
typedef const value_typeconst_reference
 
typedef size_t size_type
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef ptrdiff_t difference_type
 
typedef _Base::allocator_type allocator_type
 
typedef _Alloc_traits< value_type, _Alloc >::allocator_type allocator_type
 
typedef bidirectional_iterator_tag _Iterator_category
 
typedef bidirectional_iterator_tag _Iterator_category
 
typedef _STLP_PRIV _List_iterator< BookmarkNode, _Nonconst_traits< BookmarkNode > > iterator
 
typedef _STLP_PRIV _DBG_iter< _Base, _STLP_PRIV _DbgTraits< _Nonconst_traits< value_type > > > iterator
 
typedef _STLP_PRIV _List_iterator< value_type, _Nonconst_traits< value_type > > iterator
 
typedef _STLP_PRIV _List_iterator< BookmarkNode, _Const_traits< BookmarkNode > > const_iterator
 
typedef _STLP_PRIV _DBG_iter< _Base, _STLP_PRIV _DbgTraits< _Const_traits< value_type > > > const_iterator
 
typedef _STLP_PRIV _List_iterator< value_type, _Const_traits< value_type > > const_iterator
 

Public Member Functions

bool read (LPCTSTR path)
 read XBEL bookmark file More...
 
void write (LPCTSTR path) const
 write XBEL bookmark file More...
 
bool import_IE_favorites (HWND hwnd)
 import Internet Explorer bookmarks from Favorites folder More...
 
- Public Member Functions inherited from BookmarkList
void import_IE_favorites (struct ShellDirectory &dir, HWND hwnd)
 import Internet Explorer bookmarks from Favorites folder into bookmark list More...
 
void read (const_XMLPos &pos)
 read bookmark list from XBEL formated XML tree More...
 
void write (XMLPos &pos) const
 write bookmark list into XBEL formated XML tree More...
 
void fill_tree (HWND hwnd, HTREEITEM parent, HIMAGELIST, HDC hdc_wnd) const
 fill treeview control with bookmark tree content More...
 
- Public Member Functions inherited from list< BookmarkNode >
 list (size_type __n, const_reference __val=_STLP_DEFAULT_CONSTRUCTED(value_type), const allocator_type &__a=allocator_type())
 
 list (const value_type *__first, const value_type *__last, const allocator_type &__a=allocator_type())
 
 list (const_iterator __first, const_iterator __last, const allocator_type &__a=allocator_type())
 
 list (const allocator_type &__a=allocator_type())
 
 list (const _Self &__x)
 
 list (__move_source< _Self > src)
 
 list (const allocator_type &__a=allocator_type())
 
 list (size_type __n, const BookmarkNode &__x=BookmarkNode(), const allocator_type &__a=allocator_type())
 
 list (__move_source< _Self > src)
 
 list (const value_type *__first, const value_type *__last, const allocator_type &__a=allocator_type())
 
 list (const_iterator __first, const_iterator __last, const allocator_type &__a=allocator_type())
 
 list (const _Self &__x)
 
 list (const allocator_type &__a=allocator_type())
 
 list (size_type __n, const value_type &__val=_STLP_DEFAULT_CONSTRUCTED(value_type), const allocator_type &__a=allocator_type())
 
 list (const value_type *__first, const value_type *__last, const allocator_type &__a=allocator_type())
 
 list (const_iterator __first, const_iterator __last, const allocator_type &__a=allocator_type())
 
 list (const _Self &__x)
 
 list (__move_source< _Self > src)
 
 ~list ()
 
_Selfoperator= (const _Self &__x)
 
_Selfoperator= (const _Self &__x)
 
_Selfoperator= (const _Self &__x)
 
iterator begin ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
iterator end ()
 
const_iterator end () const
 
iterator end ()
 
const_iterator end () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rbegin ()
 
const_reverse_iterator rbegin () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
reverse_iterator rend ()
 
const_reverse_iterator rend () const
 
size_type size () const
 
size_type size () const
 
size_type size () const
 
size_type max_size () const
 
size_type max_size () const
 
size_type max_size () const
 
reference front ()
 
const_reference front () const
 
reference front ()
 
const_reference front () const
 
reference front ()
 
const_reference front () const
 
reference back ()
 
const_reference back () const
 
reference back ()
 
const_reference back () const
 
reference back ()
 
const_reference back () const
 
void swap (_Self &__x)
 
void swap (_Self &__x)
 
void swap (_Self &__x)
 
iterator insert (iterator __pos, const_reference __x=value_type())
 
void insert (iterator __pos, const value_type *__first, const value_type *__last)
 
void insert (iterator __pos, const_iterator __first, const_iterator __last)
 
void insert (iterator __pos, size_type __n, const_reference __x)
 
iterator insert (iterator __pos, const BookmarkNode &__x=BookmarkNode())
 
void insert (iterator __pos, const BookmarkNode *__first, const BookmarkNode *__last)
 
void insert (iterator __pos, const_iterator __first, const_iterator __last)
 
void insert (iterator __pos, iterator __first, iterator __last)
 
void insert (iterator __pos, size_type __n, const BookmarkNode &__x)
 
iterator insert (iterator __pos, const_reference __x=_STLP_DEFAULT_CONSTRUCTED(value_type))
 
void insert (iterator __pos, const value_type *__first, const value_type *__last)
 
void insert (iterator __pos, const_iterator __first, const_iterator __last)
 
void insert (iterator __pos, size_type __n, const value_type &__x)
 
void push_front (const_reference __x)
 
void push_front (const_reference __x)
 
void push_front (const value_type &__x)
 
void push_back (const_reference __x)
 
void push_back (const_reference __x)
 
void push_back (const value_type &__x)
 
iterator erase (iterator __pos)
 
iterator erase (iterator __first, iterator __last)
 
iterator erase (iterator __pos)
 
iterator erase (iterator __first, iterator __last)
 
iterator erase (iterator __pos)
 
iterator erase (iterator __first, iterator __last)
 
void resize (size_type __new_size, const_reference __x=value_type())
 
void resize (size_type __new_size, const BookmarkNode &__x=BookmarkNode())
 
void resize (size_type __new_size, const value_type &__x=_STLP_DEFAULT_CONSTRUCTED(value_type))
 
void pop_front ()
 
void pop_front ()
 
void pop_front ()
 
void pop_back ()
 
void pop_back ()
 
void pop_back ()
 
void assign (size_type __n, const_reference __val)
 
void assign (const value_type *__first2, const value_type *__last2)
 
void assign (const_iterator __first2, const_iterator __last2)
 
void assign (const BookmarkNode *__first, const BookmarkNode *__last)
 
void assign (iterator __first, iterator __last)
 
void assign (const_iterator __first, const_iterator __last)
 
void assign (size_type __n, const BookmarkNode &__val)
 
void assign (size_type __n, const value_type &__val)
 
void assign (const value_type *__first, const value_type *__last)
 
void assign (const_iterator __first, const_iterator __last)
 
void _M_fill_assign (size_type __n, const_reference __val)
 
void splice (iterator __pos, _Self &__x)
 
void splice (iterator __pos, _Self &__x, iterator __i)
 
void splice (iterator __pos, _Self &__x, iterator __first, iterator __last)
 
void splice (iterator __pos, _Self &__x)
 
void splice (iterator __pos, _Self &__x, iterator __i)
 
void splice (iterator __pos, _Self &__x, iterator __first, iterator __last)
 
void splice (iterator __pos, _Self &__x)
 
void splice (iterator __pos, _Self &__x, iterator __i)
 
void splice (iterator __pos, _Self &__x, iterator __first, iterator __last)
 
void remove (const_reference __val)
 
void remove (const BookmarkNode &__x)
 
void remove (const_reference __val)
 
void unique ()
 
void unique ()
 
void unique ()
 
void merge (_Self &__x)
 
void merge (_Self &__x)
 
void merge (_Self &__x)
 
void reverse ()
 
void reverse ()
 
void reverse ()
 
void sort ()
 
void sort ()
 
void sort ()
 
allocator_type get_allocator () const
 
allocator_type get_allocator () const
 
bool empty () const
 
bool empty () const
 
void clear ()
 
void clear ()
 

Additional Inherited Members

- Public Attributes inherited from list< BookmarkNode >
 _STLP_DECLARE_BIDIRECTIONAL_REVERSE_ITERATORS
 
struct listnext
 
struct listprev
 
- Protected Member Functions inherited from list< BookmarkNode >
_Node_base_M_create_node (const_reference __x=value_type())
 

Detailed Description

Definition at line 96 of file favorites.h.

Member Typedef Documentation

◆ super

Definition at line 98 of file favorites.h.

Member Function Documentation

◆ import_IE_favorites()

bool Favorites::import_IE_favorites ( HWND  hwnd)

import Internet Explorer bookmarks from Favorites folder

Definition at line 465 of file favorites.cpp.

466 {
467  WaitCursor wait;
468 
469  StartMenuShellDirs dirs;
470 
471  try {
474  } catch(COMException&) {
475  }
476 
477  for(StartMenuShellDirs::iterator it=dirs.begin(); it!=dirs.end(); ++it) {
478  StartMenuDirectory& smd = *it;
479  ShellDirectory& dir = smd._dir;
480 
481  try {
483  } catch(COMException&) {
484  }
485  }
486 
487  return true;
488 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
void push_back(const_reference __x)
Definition: _list.h:509
iterator begin()
Definition: _list.h:367
#define CSIDL_COMMON_FAVORITES
Definition: shlobj.h:2033
Retrieval of special shell folder paths.
Definition: shellclasses.h:981
shell folder entry
Definition: shellfs.h:53
Exception with context information.
Definition: shellclasses.h:113
#define CSIDL_FAVORITES
Definition: shlobj.h:2009
unsigned int dir
Definition: maze.c:112
void import_IE_favorites(struct ShellDirectory &dir, HWND hwnd)
import Internet Explorer bookmarks from Favorites folder into bookmark list
Definition: favorites.cpp:372
_STLP_PRIV _List_iterator< StartMenuDirectory, _Nonconst_traits< StartMenuDirectory > > iterator
Definition: _list.h:275
StartMenuDirectory is used to store the base directory of start menus.
Definition: startmenu.h:52
ShellFolder & GetDesktopFolder()
iterator end()
Definition: _list.h:370
ShellDirectory _dir
Definition: startmenu.h:64

Referenced by ExplorerGlobals::read_persistent().

◆ read()

bool Favorites::read ( LPCTSTR  path)

read XBEL bookmark file

Definition at line 425 of file favorites.cpp.

426 {
427  XMLDoc xbel;
428 
429  if (!xbel.read_file(path)) {
430  if (!xbel._errors.empty())
431  MessageBox(g_Globals._hwndDesktop, xbel._errors.str(),
432  TEXT("ROS Explorer - reading bookmark file"), MB_OK);
433  }
434 
435  const_XMLPos pos(&xbel);
436 
437  if (!pos.go_down("xbel"))
438  return false;
439 
440  super::read(pos);
441 
442  pos.back();
443 
444  return true;
445 }
ExplorerGlobals g_Globals
Definition: explorer.cpp:52
#define MessageBox
Definition: winuser.h:5688
#define TEXT(s)
Definition: k32.h:26
Definition: services.c:325
#define MB_OK
Definition: winuser.h:784
void read(const_XMLPos &pos)
read bookmark list from XBEL formated XML tree
Definition: favorites.cpp:281
HWND _hwndDesktop
Definition: globals.h:289

Referenced by ExplorerGlobals::read_persistent().

◆ write()

void Favorites::write ( LPCTSTR  path) const

write XBEL bookmark file

Definition at line 448 of file favorites.cpp.

449 {
450  XMLDoc xbel;
451 
452  XMLPos pos(&xbel);
453  pos.create("xbel");
454  super::write(pos);
455  pos.back();
456 
457  xbel._format._doctype._name = "xbel";
458  xbel._format._doctype._public = "+//IDN python.org//DTD XML Bookmark Exchange Language 1.0//EN//XML";
459  xbel._format._doctype._system = "http://www.python.org/topics/xml/dtds/xbel-1.0.dtd";
460 
461  xbel.write_file(path);
462 }
void write(XMLPos &pos) const
write bookmark list into XBEL formated XML tree
Definition: favorites.cpp:305
Definition: services.c:325

Referenced by ExplorerGlobals::read_persistent(), and ExplorerGlobals::write_persistent().


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