diff options
| author | Dawit Alemayehu <[email protected]> | 2013-08-16 09:01:55 -0400 |
|---|---|---|
| committer | Dawit Alemayehu <[email protected]> | 2013-10-12 13:33:42 -0400 |
| commit | e3b840e4aa291e5b28be7db06b27a665d1d0b985 (patch) | |
| tree | 1a59e3b46e1fd8514fad12607d76be4181dea49d /src/dolphinpart_ext.h | |
| parent | 2114210905970db6fb115cdc5710a7a71b5a669d (diff) | |
Moved all the extension code into dolphinpart_ext.*
REVIEW: 113132
Diffstat (limited to 'src/dolphinpart_ext.h')
| -rw-r--r-- | src/dolphinpart_ext.h | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/src/dolphinpart_ext.h b/src/dolphinpart_ext.h index 423e79efe..c05962cd9 100644 --- a/src/dolphinpart_ext.h +++ b/src/dolphinpart_ext.h @@ -20,11 +20,47 @@ #ifndef DOLPHINPART_EXT_H #define DOLPHINPART_EXT_H - +#include <kparts/browserextension.h> +#include <kparts/fileinfoextension.h> #include <kparts/listingextension.h> class DolphinPart; +class DolphinPartBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT +public: + DolphinPartBrowserExtension( DolphinPart* part ); + virtual void restoreState(QDataStream &stream); + virtual void saveState(QDataStream &stream); + +public Q_SLOTS: + void cut(); + void copy(); + void paste(); + void pasteTo(const KUrl&); + void reparseConfiguration(); + +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; + +private: + DolphinPart* m_part; +}; + class DolphinPartListingFilterExtension : public KParts::ListingFilterExtension { Q_OBJECT |
