The Link class stores a single entry in the heirarchical list of bookmarks. More...
Publicly inherits QObject.
Link | ( Bookmarks* bookmarks ); | |
void | appendLink | ( Link* link ); |
QList<Link>& | links | ( ); |
QPopupMenu* | menu | ( ); |
QString | name | ( ); |
void | save | ( FILE* fptr, int indent ); |
void | setName | ( QString name ); |
void | setUrl | ( QString url ); |
~Link | ( ); |
void | selected | ( ); |
Bookmarks* | _bookmarks; |
QList<Link> | _links; |
QString | _name; |
QString | _url; |
The Link class stores a single entry in the heirarchical list of bookmarks.
Every link has a title associated with it. However each link may have either a URL or a list of sublinks, but not both. If the link has a list of sublinks then it represents a submenu in the bookmarks menu structure. Otherwise it represents a menu item that when selected will open the URL in the active browser window.Create a new link associated with the given bookmarks object.
Add a new sublink to this link.
Return the list of sublinks.
Return a newly constructed popup menu structure base on this link and all of its sublinks. The popup menu is owned by the caller.
Return my title.
Write out the information for this link and its sublinks to the given open file pointer.
Set the title for this link.
Set the URL for this link.
Destroy the link.
Process the menu selection call back for this link. Ask the bookmarks object to open the link in the active browser.