kate Library API Documentation

Kate::InitPlugin Class Reference

Inheritance diagram for Kate::InitPlugin:

Inheritance graph
[legend]
Collaboration diagram for Kate::InitPlugin:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InitPlugin (Application *application=0, const char *name=0)
virtual ~InitPlugin ()
unsigned int initPluginNumber () const
virtual void activate (const KURL &configScript=KURL())
virtual int actionsKateShouldNotPerformOnRealStartup ()
virtual int initKate ()
const KURL configScript () const

Friends

class PrivateInitPlugin

Detailed Description

Definition at line 91 of file plugin.h.


Constructor & Destructor Documentation

Kate::InitPlugin::InitPlugin Application application = 0,
const char *  name = 0
 

Please never instanciate this class yourself from a plugin.

Use the Applications performInit(pluginname,configscript) method instead You must neither assume that theol init object still exist after control returned to the main event loop after a call to performInit nor that the init library is still loaded

Definition at line 163 of file plugin.cpp.

References PrivateInitPlugin.


Member Function Documentation

int Kate::InitPlugin::actionsKateShouldNotPerformOnRealStartup  )  [virtual]
 

I don't create an enum, because I want this to be freely extensible Please return the or'ed values from the list, you don't need initialized by kate.

That speeds up appliaction startup. Be aware though, that you have to unload plugins or clear view/document lists yourself anyway. This is needed, because There could be a reinitialisation during the application runtime. (eg if another config script is opened)

0x1: restoreDocuments 0x2: restoreViews; 0x4: loadPlugins

Definition at line 187 of file plugin.cpp.

Referenced by KateApp::KateApp().

int Kate::InitPlugin::initKate  )  [virtual]
 

This should initiate the real kate initialisation.

Please always return "0". The return value is for later extenstion

Definition at line 198 of file plugin.cpp.

Referenced by KateApp::newInstance(), and KateApp::performInit().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kate Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jun 14 16:46:47 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003