From 3a044decb0a5d7be822c888b2d5374573d7df96e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 22 Jan 2013 20:23:50 -0600 Subject: Rename KInstance and KAboutData to avoid conflicts with KDE4 --- lib/interfaces/kdevgenericfactory.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/interfaces/kdevgenericfactory.h') diff --git a/lib/interfaces/kdevgenericfactory.h b/lib/interfaces/kdevgenericfactory.h index c705e9cd..24e3204a 100644 --- a/lib/interfaces/kdevgenericfactory.h +++ b/lib/interfaces/kdevgenericfactory.h @@ -39,7 +39,7 @@ Data should be a const static object. This way it complies with the requirements for data objecs of KDevGenericFactory constructor. Important:
-There is no need to create @ref KAboutData objects. It is more useful to create +There is no need to create @ref TDEAboutData objects. It is more useful to create a static const @ref KDevPluginInfo object which can be used also in the constructor of a plugin. @@ -59,33 +59,33 @@ DummyPlugin::DummyPlugin(TQObject *parent, const char *name, const TQStringList In the example above the duplication of information is avoided as same @ref KDevPluginInfo objects are used for plugin and for plugin factory. This is possible because @ref KDevPluginInfo -class has an operator to cast @ref KDevPluginInfo to @ref KAboutData. +class has an operator to cast @ref KDevPluginInfo to @ref TDEAboutData. */ template class KDevGenericFactory: public KGenericFactory { public: /**Constructor. - @param data A reference to KAboutData with an information about the plugin. + @param data A reference to TDEAboutData with an information about the plugin. Data should have: - plugin name as an application name; - untranslated plugin generic name as a product name; - license type number. . data object should live as long as factory lives.*/ - KDevGenericFactory(KAboutData *data) + KDevGenericFactory(TDEAboutData *data) :KGenericFactory(data->appName()), aboutData(data) { } /**Creates an instance.*/ - KInstance *createInstance() + TDEInstance *createInstance() { - return new KInstance(aboutData); + return new TDEInstance(aboutData); } private: - KAboutData *aboutData; + TDEAboutData *aboutData; }; -- cgit v1.2.3