• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Konsole

  • Konsole
  • BookmarkHandler
Public Slots | Signals | Public Member Functions | List of all members
Konsole::BookmarkHandler Class Reference

#include <BookmarkHandler.h>

Inheritance diagram for Konsole::BookmarkHandler:
Inheritance graph
[legend]

Public Slots

void setActiveView (ViewProperties *view)
 
void setViews (const QList< ViewProperties * > &views)
 

Signals

void openUrl (const KUrl &url)
 
void openUrls (const QList< KUrl > &urls)
 

Public Member Functions

 BookmarkHandler (KActionCollection *collection, KMenu *menu, bool toplevel, QObject *parent)
 
 ~BookmarkHandler ()
 
ViewProperties * activeView () const
 
virtual QList< QPair< QString,
QString > > 
currentBookmarkList () const
 
virtual QString currentTitle () const
 
virtual QString currentUrl () const
 
virtual bool enableOption (BookmarkOption option) const
 
KMenu * menu () const
 
virtual void openFolderinTabs (const KBookmarkGroup &group)
 
virtual bool supportsTabs () const
 
QList< ViewProperties * > views () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

This class handles the communication between the bookmark menu and the active session, providing a suggested title and URL when the user clicks the "Add Bookmark" item in the bookmarks menu.

The bookmark handler is associated with a session controller, which is used to determine the working URL of the current session. When the user changes the active view, the bookmark handler's controller should be changed using setController()

When the user selects a bookmark, the openUrl() signal is emitted.

Definition at line 52 of file BookmarkHandler.h.

Constructor & Destructor Documentation

BookmarkHandler::BookmarkHandler ( KActionCollection *  collection,
KMenu *  menu,
bool  toplevel,
QObject *  parent 
)

Constructs a new bookmark handler for Konsole bookmarks.

Parameters
collectionThe collection which the bookmark menu's actions should be added to
menuThe menu which the bookmark actions should be added to
toplevelTODO: Document me
parentThe parent object

Definition at line 40 of file BookmarkHandler.cpp.

BookmarkHandler::~BookmarkHandler ( )

Definition at line 66 of file BookmarkHandler.cpp.

Member Function Documentation

ViewProperties * BookmarkHandler::activeView ( ) const

Definition at line 153 of file BookmarkHandler.cpp.

QList< QPair< QString, QString > > BookmarkHandler::currentBookmarkList ( ) const
virtual

Definition at line 130 of file BookmarkHandler.cpp.

QString BookmarkHandler::currentTitle ( ) const
virtual

Definition at line 100 of file BookmarkHandler.cpp.

QString BookmarkHandler::currentUrl ( ) const
virtual

Definition at line 87 of file BookmarkHandler.cpp.

bool BookmarkHandler::enableOption ( BookmarkOption  option) const
virtual

Definition at line 79 of file BookmarkHandler.cpp.

KMenu* Konsole::BookmarkHandler::menu ( ) const
inline

Returns the menu which this bookmark handler inserts its actions into.

Definition at line 78 of file BookmarkHandler.h.

void BookmarkHandler::openFolderinTabs ( const KBookmarkGroup &  group)
virtual

Definition at line 75 of file BookmarkHandler.cpp.

void Konsole::BookmarkHandler::openUrl ( const KUrl &  url)
signal

Emitted when the user selects a bookmark from the bookmark menu.

Parameters
urlThe url of the bookmark which was selected by the user.
void Konsole::BookmarkHandler::openUrls ( const QList< KUrl > &  urls)
signal

Emitted when the user selects 'Open Folder in Tabs' from the bookmark menu.

Parameters
urlsThe urls of the bookmarks in the folder whose 'Open Folder in Tabs' action was triggered
void BookmarkHandler::setActiveView ( ViewProperties *  view)
slot

Definition at line 149 of file BookmarkHandler.cpp.

void BookmarkHandler::setViews ( const QList< ViewProperties * > &  views)
slot

Definition at line 141 of file BookmarkHandler.cpp.

bool BookmarkHandler::supportsTabs ( ) const
virtual

Definition at line 125 of file BookmarkHandler.cpp.

QList< ViewProperties * > BookmarkHandler::views ( ) const

Definition at line 145 of file BookmarkHandler.cpp.


The documentation for this class was generated from the following files:
  • BookmarkHandler.h
  • BookmarkHandler.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

Skip menu "Konsole"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal