• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libkonq

KonqMenuActions Class Reference

#include <konq_menuactions.h>

List of all members.


Detailed Description

This class handles the user-defined actions for a url in a popupmenu.

User-defined actions include:

  • builtin services like mount/unmount for old-style device desktop files
  • user-defined actions for a .desktop file, defined in the file itself (see the desktop entry standard)
  • servicemenus actions, defined in .desktop files and selected based on the mimetype of the url

Definition at line 36 of file konq_menuactions.h.


Public Member Functions

 KonqMenuActions ()
void setItems (const KFileItemList &items)
void setUrl (const KUrl &url)
void setReadOnly (bool ro)
int addActionsTo (QMenu *menu)

Constructor & Destructor Documentation

KonqMenuActions::KonqMenuActions (  ) 

Creates a KonqMenuActions instance.

Note that this instance must stay alive for at least as long as the popupmenu; it has the slots for the actions created by addActionsTo.

Definition at line 168 of file konq_menuactions.cpp.


Member Function Documentation

void KonqMenuActions::setItems ( const KFileItemList &  items  ) 

Sets the list of fileitems which the actions apply to.

This call is mandatory.

Definition at line 173 of file konq_menuactions.cpp.

void KonqMenuActions::setUrl ( const KUrl &  url  ) 

Sets the URL which the actions apply to.

This call is optional, the url of the first item given to setItems is used otherwise.

Definition at line 199 of file konq_menuactions.cpp.

void KonqMenuActions::setReadOnly ( bool  ro  ) 

Call this if actions that modify the files should not be shown.

This is controlled by Require=Write in the servicemenu desktop files

Definition at line 205 of file konq_menuactions.cpp.

int KonqMenuActions::addActionsTo ( QMenu *  menu  ) 

Generate the actions and submenus, and adds them to the menu.

All actions are created as children of the menu.

Returns:
the number of actions added

Definition at line 210 of file konq_menuactions.cpp.


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

libkonq

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

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal