From 0ad893ae2b2bcc88c56587b57d227d65e593d2db Mon Sep 17 00:00:00 2001 From: Dawit Alemayehu Date: Mon, 1 Nov 2010 16:56:47 +0000 Subject: Added implementation of the FileInfoExtension to allow KPart plugins to obtain such information svn path=/trunk/KDE/kdebase/apps/; revision=1191993 --- src/dolphinpart.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/dolphinpart.h') diff --git a/src/dolphinpart.h b/src/dolphinpart.h index dd5fe1e37..b0b01d8d8 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -22,6 +22,7 @@ #include #include +#include #include @@ -262,4 +263,20 @@ private: DolphinPart* m_part; }; + +class DolphinPartFileInfoExtension : public KParts::FileInfoExtension +{ + Q_OBJECT + +public: + DolphinPartFileInfoExtension(DolphinPart* part); + + virtual QueryModes supportedQueryModes() const; + virtual bool hasSelection() const; + + virtual KFileItemList queryFor(QueryMode mode) const; +protected: + DolphinPart* part() const; +}; + #endif /* DOLPHINPART_H */ -- cgit v1.3