• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.3 API Reference
  • 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 Q_SIGNALS:
00140     void openWithDialogAboutToBeShown();
00141 
00142 public Q_SLOTS:
00149     void runPreferredApplications(const KFileItemList& fileOpenList, const QString& traderConstraint);
00150 
00151 private:
00152     KFileItemActionsPrivate* const d;
00153     friend class KFileItemActionsPrivate;
00154 };
00155 
00156 #endif /* KFILEITEMACTIONS_H */
00157 
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 20:55:20 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal