libkonq
KonqPopupMenuInformation Class Reference
Holds the information about the items shown by KonqPopupMenu. More...
#include <konq_popupmenuinformation.h>
Public Member Functions | |
| KonqFileItemCapabilities | capabilities () const |
| bool | isDirectory () const |
| KFileItemList | items () const |
| KonqPopupMenuInformation (const KonqPopupMenuInformation &) | |
| KonqPopupMenuInformation () | |
| QString | mimeGroup () const |
| QString | mimeType () const |
| KonqPopupMenuInformation & | operator= (const KonqPopupMenuInformation &o) |
| QWidget * | parentWidget () const |
| void | setItems (const KFileItemList &items) |
| void | setParentWidget (QWidget *parentWidget) |
| KUrl::List | urlList () const |
| ~KonqPopupMenuInformation () | |
Detailed Description
Holds the information about the items shown by KonqPopupMenu.This information is used by KonqMenuActions to insert the appropriate actions (for user-defined services and for associated applications), and by KonqPopupMenuPlugin for plugins to decide what to show.
KonqPopupMenuInformation is implicitly shared, i.e. it can be used as a value and copied around at almost no cost.
Definition at line 39 of file konq_popupmenuinformation.h.
Constructor & Destructor Documentation
| KonqPopupMenuInformation::KonqPopupMenuInformation | ( | ) |
| KonqPopupMenuInformation::KonqPopupMenuInformation | ( | const KonqPopupMenuInformation & | other | ) |
| KonqPopupMenuInformation::~KonqPopupMenuInformation | ( | ) |
Member Function Documentation
| KonqFileItemCapabilities KonqPopupMenuInformation::capabilities | ( | ) | const |
Returns the capabilities of the items.
For instance, if they are readonly, then no action should modify those files.
Definition at line 122 of file konq_popupmenuinformation.cpp.
| bool KonqPopupMenuInformation::isDirectory | ( | ) | const |
- Returns:
- true if all items are directories
Definition at line 97 of file konq_popupmenuinformation.cpp.
| KFileItemList KonqPopupMenuInformation::items | ( | ) | const |
| QString KonqPopupMenuInformation::mimeGroup | ( | ) | const |
- Returns:
- the mimetype group (e.g. "text") of all items, if they all have the same, otherwise empty
Definition at line 117 of file konq_popupmenuinformation.cpp.
| QString KonqPopupMenuInformation::mimeType | ( | ) | const |
- Returns:
- the mimetype of all items, if they all have the same, otherwise empty
Definition at line 112 of file konq_popupmenuinformation.cpp.
| KonqPopupMenuInformation & KonqPopupMenuInformation::operator= | ( | const KonqPopupMenuInformation & | o | ) |
Definition at line 55 of file konq_popupmenuinformation.cpp.
| QWidget * KonqPopupMenuInformation::parentWidget | ( | ) | const |
Parent widget (e.g.
for error message boxes)
Definition at line 107 of file konq_popupmenuinformation.cpp.
| void KonqPopupMenuInformation::setItems | ( | const KFileItemList & | items | ) |
Sets the list of fileitems which the actions apply to.
Definition at line 61 of file konq_popupmenuinformation.cpp.
| void KonqPopupMenuInformation::setParentWidget | ( | QWidget * | parentWidget | ) |
Call this to set a parent widget (e.g.
for error message boxes)
Definition at line 102 of file konq_popupmenuinformation.cpp.
| KUrl::List KonqPopupMenuInformation::urlList | ( | ) | const |
List of urls, gathered from the fileitems.
Definition at line 92 of file konq_popupmenuinformation.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference