diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:23:50 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-22 20:23:50 -0600 |
commit | 3a044decb0a5d7be822c888b2d5374573d7df96e (patch) | |
tree | ddf4681e0233c25203fc927596aa7b3bdb5f2efa /lib/interfaces/kdevgenericfactory.h | |
parent | 5c0390ebaa2be82d8684af5a6bc2b16740f4cc1b (diff) | |
download | tdevelop-3a044decb0a5d7be822c888b2d5374573d7df96e.tar.gz tdevelop-3a044decb0a5d7be822c888b2d5374573d7df96e.zip |
Rename KInstance and KAboutData to avoid conflicts with KDE4
Diffstat (limited to 'lib/interfaces/kdevgenericfactory.h')
-rw-r--r-- | lib/interfaces/kdevgenericfactory.h | 14 |
1 files changed, 7 insertions, 7 deletions
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. <b>Important:</b><br> -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 T, class ParentType = TQObject> class KDevGenericFactory: public KGenericFactory<T, ParentType> { 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<T, ParentType>(data->appName()), aboutData(data) { } /**Creates an instance.*/ - KInstance *createInstance() + TDEInstance *createInstance() { - return new KInstance(aboutData); + return new TDEInstance(aboutData); } private: - KAboutData *aboutData; + TDEAboutData *aboutData; }; |