|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KInstance
public class KInstance
Access to KDE global objects for use in shared libraries. In practical terms, this class is used in KDE components. This allows components to store things that normally would be accessed by KGlobal.
Constructor Summary | |
---|---|
protected |
KInstance(java.lang.Class dummy)
|
|
KInstance(KAboutData aboutData)
Constructor. |
|
KInstance(KInstanceInterface src)
|
|
KInstance(java.lang.String instanceName)
Constructor. |
Method Summary | |
---|---|
KAboutData |
aboutData()
Returns the about data of this instance Warning, can be null |
KConfig |
config()
Returns the general config object ("appnamerc"). |
KStandardDirs |
dirs()
Returns the application standard dirs object. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
KIconLoader |
iconLoader()
Returns an iconloader object. |
java.lang.String |
instanceName()
Returns the name of the instance |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
KMimeSourceFactory |
mimeSourceFactory()
Returns the KMimeSourceFactory of the instance. |
void |
newIconLoader()
Re-allocate the global iconloader. |
protected void |
setConfigName(java.lang.String name)
Set name of default config file. |
KSharedConfig |
sharedConfig()
Returns the general config object ("appnamerc"). |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected KInstance(java.lang.Class dummy)
public KInstance(java.lang.String instanceName)
instanceName
- the name of the instancepublic KInstance(KAboutData aboutData)
aboutData
- data about this instance (see KAboutData)public KInstance(KInstanceInterface src)
Method Detail |
---|
public KStandardDirs dirs()
dirs
in interface KInstanceInterface
public KConfig config()
config
in interface KInstanceInterface
public KSharedConfig sharedConfig()
sharedConfig
in interface KInstanceInterface
public KIconLoader iconLoader()
iconLoader
in interface KInstanceInterface
public void newIconLoader()
newIconLoader
in interface KInstanceInterface
public KAboutData aboutData()
aboutData
in interface KInstanceInterface
public java.lang.String instanceName()
instanceName
in interface KInstanceInterface
public KMimeSourceFactory mimeSourceFactory()
mimeSourceFactory
in interface KInstanceInterface
protected void setConfigName(java.lang.String name)
name
- the name of the default config fileprotected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |