diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:17:43 -0600 |
commit | cb68a7857c80661d242ee5527ec6f99dc3f79fa7 (patch) | |
tree | a3b54203ca6bce0e8e1dc5107dc9653db246a281 /tdemid/tdemid_part.h | |
parent | 7534907d3759a8c520eeb9a701b316d891c63bdf (diff) | |
download | tdemultimedia-cb68a7857c80661d242ee5527ec6f99dc3f79fa7.tar.gz tdemultimedia-cb68a7857c80661d242ee5527ec6f99dc3f79fa7.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'tdemid/tdemid_part.h')
-rw-r--r-- | tdemid/tdemid_part.h | 66 |
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 |