• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/bookmarks
 

tdeio/bookmarks

Public Member Functions | Protected Member Functions | List of all members
KBookmarkOwner Class Reference

#include <kbookmarkmanager.h>

Inheritance diagram for KBookmarkOwner:
KExtendedBookmarkOwner

Public Member Functions

virtual void openBookmarkURL (const TQString &_url)
 
virtual TQString currentTitle () const
 
virtual TQString currentURL () const
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Detailed Description

The KBookmarkMenu and KBookmarkBar classes gives the user the ability to either edit bookmarks or add their own.

In the first case, the app may want to open the bookmark in a special way. In the second case, the app must supply the name and the URL for the bookmark.

This class gives the app this callback-like ability.

If your app does not give the user the ability to add bookmarks and you don't mind using the default bookmark editor to edit your bookmarks, then you don't need to overload this class at all. Rather, just use something like:

bookmarks = new KBookmarkMenu(new KBookmarkOwner(), ...)

If you wish to use your own editor or allow the user to add bookmarks, you must overload this class.

Definition at line 315 of file kbookmarkmanager.h.

Member Function Documentation

◆ currentTitle()

virtual TQString KBookmarkOwner::currentTitle ( ) const
inlinevirtual

This function is called whenever the user wants to add the current page to the bookmarks list.

The title will become the "name" of the bookmark. You must overload this function if you wish to give your users the ability to add bookmarks.

Returns
the title of the current page.

Definition at line 332 of file kbookmarkmanager.h.

◆ currentURL()

virtual TQString KBookmarkOwner::currentURL ( ) const
inlinevirtual

This function is called whenever the user wants to add the current page to the bookmarks list.

The URL will become the URL of the bookmark. You must overload this function if you wish to give your users the ability to add bookmarks.

Returns
the URL of the current page.

Definition at line 342 of file kbookmarkmanager.h.

◆ openBookmarkURL()

void KBookmarkOwner::openBookmarkURL ( const TQString &  _url)
virtual

This function is called if the user selects a bookmark.

It will open up the bookmark in a default fashion unless you override it.

Definition at line 641 of file kbookmarkmanager.cpp.

◆ virtual_hook()

void KBookmarkOwner::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 646 of file kbookmarkmanager.cpp.


The documentation for this class was generated from the following files:
  • kbookmarkmanager.h
  • kbookmarkmanager.cpp

tdeio/bookmarks

Skip menu "tdeio/bookmarks"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/bookmarks

Skip menu "tdeio/bookmarks"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/bookmarks by doxygen 1.9.4
This website is maintained by Timothy Pearson.