19 #include "application.h"
24 #include <tdeparts/componentfactory.h>
41 class PrivatePluginViewInterface
44 PrivatePluginViewInterface ()
48 ~PrivatePluginViewInterface ()
54 unsigned int Plugin::globalPluginNumber = 0;
55 unsigned int PluginViewInterface::globalPluginViewInterfaceNumber = 0;
60 myPluginNumber = globalPluginNumber;
67 unsigned int Plugin::pluginNumber ()
const
69 return myPluginNumber;
72 Application *Plugin::application ()
const
77 PluginViewInterface::PluginViewInterface()
79 globalPluginViewInterfaceNumber++;
80 myPluginViewInterfaceNumber = globalPluginViewInterfaceNumber;
83 PluginViewInterface::~PluginViewInterface()
87 unsigned int PluginViewInterface::pluginViewInterfaceNumber ()
const
89 return myPluginViewInterfaceNumber;
92 Plugin *createPlugin (
const char* libname, Application *application,
const char *name,
const TQStringList &args )
94 return KParts::ComponentFactory::createInstanceFromLibrary<Plugin>( libname, application, name, args);
97 PluginViewInterface *pluginViewInterface (Plugin *plugin)
102 return static_cast<PluginViewInterface*
>(plugin->tqt_cast(
"Kate::PluginViewInterface"));
Namespace collecting as much of the internal Kate classes as we can manage.
Application * application()
Returns the application object.