\section{KBookmark\-Group Class Reference}
\label{classKBookmarkGroup}\index{KBookmarkGroup@{KBookmarkGroup}}
A group of bookmarks.  


{\tt \#include $<$kbookmark.h$>$}

Collaboration diagram for KBookmark\-Group:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=76pt]{classKBookmarkGroup__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KBookmark\-Group} ()
\begin{CompactList}\small\item\em Create an invalid group. \item\end{CompactList}\item 
{\bf KBookmark\-Group} ({\bf QDom\-Element} elem)
\begin{CompactList}\small\item\em Create a bookmark group as specified by the given element. \item\end{CompactList}\item 
{\bf QString} {\bf group\-Address} () const 
\begin{CompactList}\small\item\em Much like KBookmark::address, but caches the address into m\_\-address. \item\end{CompactList}\item 
bool {\bf is\-Open} () const 
\item 
KBookmark {\bf first} () const 
\begin{CompactList}\small\item\em Return the first child bookmark of this group. \item\end{CompactList}\item 
KBookmark {\bf previous} (const  KBookmark \&current) const 
\begin{CompactList}\small\item\em Return the prevous sibling of a child bookmark of this group. \item\end{CompactList}\item 
KBookmark {\bf next} (const  KBookmark \&current) const 
\begin{CompactList}\small\item\em Return the next sibling of a child bookmark of this group. \item\end{CompactList}\item 
{\bf KBookmark\-Group} {\bf create\-New\-Folder} ({\bf KBookmark\-Manager} $\ast$mgr, const  {\bf QString} \&text=QString::null, bool emit\-Signal=true)
\begin{CompactList}\small\item\em Create a new bookmark folder, as the last child of this group {\tt text} for the folder. \item\end{CompactList}\item 
KBookmark {\bf create\-New\-Separator} ()
\begin{CompactList}\small\item\em Create a new bookmark separator. \item\end{CompactList}\item 
KBookmark {\bf add\-Bookmark} ({\bf KBookmark\-Manager} $\ast$mgr, const  {\bf QString} \&text, const  {\bf KURL} \&url, const  {\bf QString} \&icon=QString::null, bool emit\-Signal=true)
\begin{CompactList}\small\item\em Create a new bookmark, as the last child of this group Don't forget to use KBookmark\-Manager::self()-$>$emit\-Changed( parent\-Bookmark ); if this bookmark was added interactively. \item\end{CompactList}\item 
bool {\bf move\-Item} (const  KBookmark \&item, const  KBookmark \&after)
\begin{CompactList}\small\item\em Moves {\tt item} after {\tt after} (which should be a child of ours). \item\end{CompactList}\item 
void {\bf delete\-Bookmark} (KBookmark bk)
\begin{CompactList}\small\item\em Delete a bookmark - it has to be one of our children ! \item\end{CompactList}\item 
bool {\bf is\-Toolbar\-Group} () const 
\item 
{\bf QDom\-Element} {\bf find\-Toolbar} () const \label{classKBookmarkGroup_a13}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf QDom\-Element} {\bf next\-Known\-Tag} ({\bf QDom\-Element} start, bool go\-Next) const \label{classKBookmarkGroup_b0}

\end{CompactItemize}


\subsection{Detailed Description}
A group of bookmarks. 



Definition at line 147 of file kbookmark.h.

\subsection{Constructor \& Destructor Documentation}
\index{KBookmarkGroup@{KBookmark\-Group}!KBookmarkGroup@{KBookmarkGroup}}
\index{KBookmarkGroup@{KBookmarkGroup}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark\-Group::KBookmark\-Group ()}\label{classKBookmarkGroup_a0}


Create an invalid group. 

This is mostly for use in {\bf QValue\-List}, and other places where we need a null group. Also used as a parent for a bookmark that doesn't have one (e.g. Netscape bookmarks) 

Definition at line 31 of file kbookmark.cc.

Referenced by create\-New\-Folder().\index{KBookmarkGroup@{KBookmark\-Group}!KBookmarkGroup@{KBookmarkGroup}}
\index{KBookmarkGroup@{KBookmarkGroup}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark\-Group::KBookmark\-Group ({\bf QDom\-Element} {\em elem})}\label{classKBookmarkGroup_a1}


Create a bookmark group as specified by the given element. 



Definition at line 36 of file kbookmark.cc.

\subsection{Member Function Documentation}
\index{KBookmarkGroup@{KBookmark\-Group}!groupAddress@{groupAddress}}
\index{groupAddress@{groupAddress}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KBookmark\-Group::group\-Address () const}\label{classKBookmarkGroup_a2}


Much like KBookmark::address, but caches the address into m\_\-address. 



Definition at line 41 of file kbookmark.cc.

References QString::is\-Empty().\index{KBookmarkGroup@{KBookmark\-Group}!isOpen@{isOpen}}
\index{isOpen@{isOpen}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KBookmark\-Group::is\-Open () const}\label{classKBookmarkGroup_a3}


\begin{Desc}
\item[Returns:]true if the bookmark folder is opened in the bookmark editor \end{Desc}


Definition at line 48 of file kbookmark.cc.\index{KBookmarkGroup@{KBookmark\-Group}!first@{first}}
\index{first@{first}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark KBookmark\-Group::first () const}\label{classKBookmarkGroup_a4}


Return the first child bookmark of this group. 



Definition at line 53 of file kbookmark.cc.

Referenced by KBookmark\-Menu::fill\-Bookmark\-Menu(), and KBookmark\-Manager::find\-By\-Address().\index{KBookmarkGroup@{KBookmark\-Group}!previous@{previous}}
\index{previous@{previous}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark KBookmark\-Group::previous (const KBookmark \& {\em current}) const}\label{classKBookmarkGroup_a5}


Return the prevous sibling of a child bookmark of this group. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em current}]has to be one of our child bookmarks. \end{description}
\end{Desc}


Definition at line 58 of file kbookmark.cc.\index{KBookmarkGroup@{KBookmark\-Group}!next@{next}}
\index{next@{next}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark KBookmark\-Group::next (const KBookmark \& {\em current}) const}\label{classKBookmarkGroup_a6}


Return the next sibling of a child bookmark of this group. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em current}]has to be one of our child bookmarks. \end{description}
\end{Desc}


Definition at line 63 of file kbookmark.cc.

Referenced by KBookmark\-Menu::fill\-Bookmark\-Menu(), and KBookmark\-Manager::find\-By\-Address().\index{KBookmarkGroup@{KBookmark\-Group}!createNewFolder@{createNewFolder}}
\index{createNewFolder@{createNewFolder}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KBookmark\-Group} KBookmark\-Group::create\-New\-Folder ({\bf KBookmark\-Manager} $\ast$ {\em mgr}, const {\bf QString} \& {\em text} = QString::null, bool {\em emit\-Signal} = true)}\label{classKBookmarkGroup_a7}


Create a new bookmark folder, as the last child of this group {\tt text} for the folder. 

If empty, the user will be queried for it. 

Definition at line 87 of file kbookmark.cc.

References KBookmark\-Notifier::created\-New\-Folder(), QDom\-Document::create\-Element(), QDom\-Document::create\-Text\-Node(), KDialog\-Base::enable\-Button\-OK(), QDialog::exec(), QString::is\-Empty(), KBookmark\-Group(), KBookmark\-Manager::notifier(), KBookmark\-Manager::path(), KDialog::set\-Caption(), and KLine\-Edit\-Dlg::text().\index{KBookmarkGroup@{KBookmark\-Group}!createNewSeparator@{createNewSeparator}}
\index{createNewSeparator@{createNewSeparator}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark KBookmark\-Group::create\-New\-Separator ()}\label{classKBookmarkGroup_a8}


Create a new bookmark separator. 



Definition at line 122 of file kbookmark.cc.

References QDom\-Document::create\-Element().\index{KBookmarkGroup@{KBookmark\-Group}!addBookmark@{addBookmark}}
\index{addBookmark@{addBookmark}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KBookmark KBookmark\-Group::add\-Bookmark ({\bf KBookmark\-Manager} $\ast$ {\em mgr}, const {\bf QString} \& {\em text}, const {\bf KURL} \& {\em url}, const {\bf QString} \& {\em icon} = QString::null, bool {\em emit\-Signal} = true)}\label{classKBookmarkGroup_a9}


Create a new bookmark, as the last child of this group Don't forget to use KBookmark\-Manager::self()-$>$emit\-Changed( parent\-Bookmark ); if this bookmark was added interactively. 



Definition at line 155 of file kbookmark.cc.

References QDom\-Document::create\-Element(), QDom\-Document::create\-Text\-Node(), KMime\-Type::icon\-For\-URL(), QString::is\-Empty(), KBookmark\-Manager::notifier(), KBookmark\-Manager::path(), QDom\-Element::set\-Attribute(), and KURL::url().\index{KBookmarkGroup@{KBookmark\-Group}!moveItem@{moveItem}}
\index{moveItem@{moveItem}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KBookmark\-Group::move\-Item (const KBookmark \& {\em item}, const KBookmark \& {\em after})}\label{classKBookmarkGroup_a10}


Moves {\tt item} after {\tt after} (which should be a child of ours). 

If item is null, {\tt item} is moved as the first child. 

Definition at line 132 of file kbookmark.cc.

References QDom\-Node::append\-Child(), QDom\-Node::insert\-After(), QDom\-Node::insert\-Before(), and QDom\-Node::is\-Null().\index{KBookmarkGroup@{KBookmark\-Group}!deleteBookmark@{deleteBookmark}}
\index{deleteBookmark@{deleteBookmark}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KBookmark\-Group::delete\-Bookmark (KBookmark {\em bk})}\label{classKBookmarkGroup_a11}


Delete a bookmark - it has to be one of our children ! 



Definition at line 180 of file kbookmark.cc.\index{KBookmarkGroup@{KBookmark\-Group}!isToolbarGroup@{isToolbarGroup}}
\index{isToolbarGroup@{isToolbarGroup}!KBookmarkGroup@{KBookmark\-Group}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KBookmark\-Group::is\-Toolbar\-Group () const}\label{classKBookmarkGroup_a12}


\begin{Desc}
\item[Returns:]true if this is the toolbar group \end{Desc}


Definition at line 185 of file kbookmark.cc.

Referenced by KBookmark\-Manager::save\-As().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kbookmark.h\item 
kbookmark.cc\end{CompactItemize}
