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

KIO

kfileitemactions.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 1998-2009 David Faure <faure@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or modify
00005    it under the terms of the GNU Library General Public License as published
00006    by the Free Software Foundation; either version 2 of the License or
00007    ( at your option ) version 3 or, at the discretion of KDE e.V.
00008    ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KFILEITEMACTIONS_H
00022 #define KFILEITEMACTIONS_H
00023 
00024 #include <kservice.h>
00025 #include <kfileitem.h>
00026 #include <kio/kio_export.h>
00027 
00028 class KFileItemListProperties;
00029 class KAction;
00030 class QMenu;
00031 class KFileItemActionsPrivate;
00032 
00044 class KIO_EXPORT KFileItemActions : public QObject
00045 {
00046     Q_OBJECT
00047 public:
00053     KFileItemActions(QObject* parent = 0);
00054 
00058     ~KFileItemActions();
00059 
00064     void setItemListProperties(const KFileItemListProperties& itemList);
00065 
00074     void setParentWidget(QWidget* widget);
00075 
00084     void addOpenWithActionsTo(QMenu* menu, const QString& traderConstraint = QString());
00085 
00092     KAction* preferredOpenWithAction(const QString& traderConstraint);
00093 
00117     static KService::List associatedApplications(const QStringList& mimeTypeList, const QString& traderConstraint);
00118 
00132     int addServiceActionsTo(QMenu* menu);
00133 
00134 public Q_SLOTS:
00141     void runPreferredApplications(const KFileItemList& fileOpenList, const QString& traderConstraint);
00142 
00143 private:
00144     KFileItemActionsPrivate* const d;
00145 };
00146 
00147 #endif /* KFILEITEMACTIONS_H */
00148 

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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