summaryrefslogtreecommitdiffstats
path: root/tdemid/tdemid_part.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdemid/tdemid_part.h')
-rw-r--r--tdemid/tdemid_part.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/tdemid/tdemid_part.h b/tdemid/tdemid_part.h
new file mode 100644
index 00000000..e2f07af1
--- /dev/null
+++ b/tdemid/tdemid_part.h
@@ -0,0 +1,66 @@
+#ifndef __KMIDPART_H__
+#define __KMIDPART_H__
+
+#include <tdeparts/browserextension.h>
+#include <tdeparts/factory.h>
+#include <tdelibs_export.h>
+class TDEAboutData;
+class TDEInstance;
+class KMidBrowserExtension;
+class tdemidClient;
+
+class KDE_EXPORT KMidFactory : public KParts::Factory
+{
+ Q_OBJECT
+
+ public:
+ KMidFactory();
+ virtual ~KMidFactory();
+
+ virtual KParts::Part* createPartObject(TQWidget *parentWidget, const char *widgetName,
+ TQObject* parent = 0, const char* name = 0,
+ const char* classname = TQOBJECT_OBJECT_NAME_STRING,
+ const TQStringList &args = TQStringList());
+
+ static TDEInstance *instance();
+
+ static TDEAboutData *aboutData();
+ private:
+ static TDEInstance *s_instance;
+};
+
+class KMidPart: public KParts::ReadOnlyPart
+{
+ Q_OBJECT
+
+ public:
+ KMidPart(TQWidget *parentWidget, const char *widgetName,
+ TQObject *parent, const char *name);
+ virtual ~KMidPart();
+
+
+ virtual bool closeURL();
+
+ protected:
+ virtual bool openFile();
+
+ protected slots:
+ void slotPlay();
+ void slotStop();
+
+ private:
+ tdemidClient *widget;
+ KMidBrowserExtension *m_extension;
+};
+
+class KMidBrowserExtension : public KParts::BrowserExtension
+{
+ Q_OBJECT
+
+ friend class KMidPart;
+ public:
+ KMidBrowserExtension(KMidPart *parent);
+ virtual ~KMidBrowserExtension();
+};
+
+#endif