KIO
kfileitemactions.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KFILEITEMACTIONS_H
00022 #define KFILEITEMACTIONS_H
00023
00024 #include <kfileitem.h>
00025 #include <kio/kio_export.h>
00026
00027 class KFileItemListProperties;
00028 class KAction;
00029 class QMenu;
00030 class KFileItemActionsPrivate;
00031
00043 class KIO_EXPORT KFileItemActions : public QObject
00044 {
00045 Q_OBJECT
00046 public:
00052 KFileItemActions(QObject* parent = 0);
00053
00057 ~KFileItemActions();
00058
00063 void setItemListProperties(const KFileItemListProperties& itemList);
00064
00073 void setParentWidget(QWidget* widget);
00074
00082 void addOpenWithActionsTo(QMenu* menu, const QString& traderConstraint);
00083
00090 KAction* preferredOpenWithAction(const QString& traderConstraint);
00091
00105 int addServiceActionsTo(QMenu* menu);
00106
00107 private:
00108 KFileItemActionsPrivate* const d;
00109 };
00110
00111 #endif
00112