You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.4 KiB
67 lines
1.4 KiB
#ifndef __KMIDPART_H__
|
|
#define __KMIDPART_H__
|
|
|
|
#include <kparts/browserextension.h>
|
|
#include <kparts/factory.h>
|
|
#include <tdelibs_export.h>
|
|
class KAboutData;
|
|
class KInstance;
|
|
class KMidBrowserExtension;
|
|
class kmidClient;
|
|
|
|
class KDE_EXPORT KMidFactory : public KParts::Factory
|
|
{
|
|
Q_OBJECT
|
|
TQ_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 KInstance *instance();
|
|
|
|
static KAboutData *aboutData();
|
|
private:
|
|
static KInstance *s_instance;
|
|
};
|
|
|
|
class KMidPart: public KParts::ReadOnlyPart
|
|
{
|
|
Q_OBJECT
|
|
TQ_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:
|
|
kmidClient *widget;
|
|
KMidBrowserExtension *m_extension;
|
|
};
|
|
|
|
class KMidBrowserExtension : public KParts::BrowserExtension
|
|
{
|
|
Q_OBJECT
|
|
TQ_OBJECT
|
|
friend class KMidPart;
|
|
public:
|
|
KMidBrowserExtension(KMidPart *parent);
|
|
virtual ~KMidBrowserExtension();
|
|
};
|
|
|
|
#endif
|