|
|
@ -62,17 +62,17 @@ public:
|
|
|
|
virtual KParts::Part *createPartObject
|
|
|
|
virtual KParts::Part *createPartObject
|
|
|
|
(TQWidget *wparent, const char *wname, TQObject *parent, const char *name,
|
|
|
|
(TQWidget *wparent, const char *wname, TQObject *parent, const char *name,
|
|
|
|
const char *className, const TQStringList &args);
|
|
|
|
const char *className, const TQStringList &args);
|
|
|
|
static KInstance * instance () { return s_instance; }
|
|
|
|
static TDEInstance * instance () { return s_instance; }
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
static KInstance * s_instance;
|
|
|
|
static TDEInstance * s_instance;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
K_EXPORT_COMPONENT_FACTORY (libkmplayerkofficepart, KMPlayerFactory)
|
|
|
|
K_EXPORT_COMPONENT_FACTORY (libkmplayerkofficepart, KMPlayerFactory)
|
|
|
|
|
|
|
|
|
|
|
|
KInstance *KMPlayerFactory::s_instance = 0;
|
|
|
|
TDEInstance *KMPlayerFactory::s_instance = 0;
|
|
|
|
|
|
|
|
|
|
|
|
KMPlayerFactory::KMPlayerFactory () {
|
|
|
|
KMPlayerFactory::KMPlayerFactory () {
|
|
|
|
s_instance = new KInstance ("KMPlayerKofficePart");
|
|
|
|
s_instance = new TDEInstance ("KMPlayerKofficePart");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KMPlayerFactory::~KMPlayerFactory () {
|
|
|
|
KMPlayerFactory::~KMPlayerFactory () {
|
|
|
|