diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /kmid/kmid_part.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmid/kmid_part.h')
-rw-r--r-- | kmid/kmid_part.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/kmid/kmid_part.h b/kmid/kmid_part.h new file mode 100644 index 00000000..4b02e099 --- /dev/null +++ b/kmid/kmid_part.h @@ -0,0 +1,63 @@ +#ifndef __KMIDPART_H__ +#define __KMIDPART_H__ + +#include <kparts/browserextension.h> +#include <kparts/factory.h> +#include <kdelibs_export.h> +class KAboutData; +class KInstance; +class KMidBrowserExtension; +class kmidClient; + +class KDE_EXPORT KMidFactory : public KParts::Factory +{ + Q_OBJECT + public: + KMidFactory(); + virtual ~KMidFactory(); + + virtual KParts::Part* createPartObject(QWidget *parentWidget, const char *widgetName, + QObject* parent = 0, const char* name = 0, + const char* classname = "QObject", + const QStringList &args = QStringList()); + + static KInstance *instance(); + + static KAboutData *aboutData(); + private: + static KInstance *s_instance; +}; + +class KMidPart: public KParts::ReadOnlyPart +{ + Q_OBJECT + public: + KMidPart(QWidget *parentWidget, const char *widgetName, + QObject *parent, const char *name); + virtual ~KMidPart(); + + + virtual bool closeURL(); + + protected: + virtual bool openFile(); + + protected slots: + void slotPlay(); + void slotStop(); + + private: + kmidClient *widget; + KMidBrowserExtension *m_extension; +}; + +class KMidBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT + friend class KMidPart; + public: + KMidBrowserExtension(KMidPart *parent); + virtual ~KMidBrowserExtension(); +}; + +#endif |