libkonq
#include <konq_popupmenuinformation.h>
| Public Member Functions | |
| KonqPopupMenuInformation () | |
| KonqPopupMenuInformation (const KonqPopupMenuInformation &) | |
| ~KonqPopupMenuInformation () | |
| KonqFileItemCapabilities | capabilities () const | 
| bool | isDirectory () const | 
| KFileItemListProperties | itemListProperties () const | 
| KFileItemList | items () const | 
| QString | mimeGroup () const | 
| QString | mimeType () const | 
| KonqPopupMenuInformation & | operator= (const KonqPopupMenuInformation &o) | 
| QWidget * | parentWidget () const | 
| void | setItemListProperties (const KFileItemListProperties &items) | 
| KDE_DEPRECATED void | setItems (const KFileItemList &items) | 
| void | setParentWidget (QWidget *parentWidget) | 
| KUrl::List | urlList () const | 
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.
This class exists only for KonqPopupMenu plugins. Everything else should use KFileItemListProperties since 4.3.
Definition at line 43 of file konq_popupmenuinformation.h.
Constructor & Destructor Documentation
| KonqPopupMenuInformation::KonqPopupMenuInformation | ( | ) | 
Constructor.
Definition at line 35 of file konq_popupmenuinformation.cpp.
| KonqPopupMenuInformation::KonqPopupMenuInformation | ( | const KonqPopupMenuInformation & | other | ) | 
Copy constructor.
Definition at line 44 of file konq_popupmenuinformation.cpp.
| KonqPopupMenuInformation::~KonqPopupMenuInformation | ( | ) | 
Destructor.
Definition at line 40 of file konq_popupmenuinformation.cpp.
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 95 of file konq_popupmenuinformation.cpp.
| bool KonqPopupMenuInformation::isDirectory | ( | ) | const | 
- Returns
- true if all items are directories
Definition at line 70 of file konq_popupmenuinformation.cpp.
| KFileItemListProperties KonqPopupMenuInformation::itemListProperties | ( | ) | const | 
Returns the list of items and their properties.
- Since
- 4.3
Definition at line 105 of file konq_popupmenuinformation.cpp.
| KFileItemList KonqPopupMenuInformation::items | ( | ) | const | 
List of fileitems.
Definition at line 60 of file konq_popupmenuinformation.cpp.
| 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 90 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 85 of file konq_popupmenuinformation.cpp.
| KonqPopupMenuInformation & KonqPopupMenuInformation::operator= | ( | const KonqPopupMenuInformation & | o | ) | 
Definition at line 49 of file konq_popupmenuinformation.cpp.
| QWidget * KonqPopupMenuInformation::parentWidget | ( | ) | const | 
Parent widget (e.g.
for error message boxes, open with dialog, etc.)
Definition at line 80 of file konq_popupmenuinformation.cpp.
| void KonqPopupMenuInformation::setItemListProperties | ( | const KFileItemListProperties & | items | ) | 
Sets a list of items and their properties.
- Since
- 4.3
Definition at line 100 of file konq_popupmenuinformation.cpp.
| void KonqPopupMenuInformation::setItems | ( | const KFileItemList & | items | ) | 
Sets the list of fileitems which the actions apply to.
- Deprecated:
- use setItemListProperties
Definition at line 55 of file konq_popupmenuinformation.cpp.
| void KonqPopupMenuInformation::setParentWidget | ( | QWidget * | parentWidget | ) | 
Call this to set a parent widget (e.g.
for error message boxes, open with dialog, etc.)
Definition at line 75 of file konq_popupmenuinformation.cpp.
| KUrl::List KonqPopupMenuInformation::urlList | ( | ) | const | 
List of urls, gathered from the fileitems.
Definition at line 65 of file konq_popupmenuinformation.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
 KDE API Reference
    KDE API Reference