diff options
| author | Dawit Alemayehu <[email protected]> | 2010-11-01 16:56:47 +0000 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2010-11-01 16:56:47 +0000 |
| commit | 0ad893ae2b2bcc88c56587b57d227d65e593d2db (patch) | |
| tree | b05a871175bfddb9d9fd2d3f9bf108875ddd1909 /src/dolphinpart.h | |
| parent | 3aa13c7a247af8959c87121ad142662440300a13 (diff) | |
Added implementation of the FileInfoExtension to allow KPart plugins to obtain such information
svn path=/trunk/KDE/kdebase/apps/; revision=1191993
Diffstat (limited to 'src/dolphinpart.h')
| -rw-r--r-- | src/dolphinpart.h | 17 |
1 files changed, 17 insertions, 0 deletions
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 <kparts/part.h> #include <kparts/browserextension.h> +#include <kparts/fileinfoextension.h> #include <QItemSelectionModel> @@ -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 */ |
