org.kde.koala

Class KDEDesktopMimeType

public class KDEDesktopMimeType extends KMimeType

Mime type for desktop files. Handles mount/umount icon, and user-defined properties.

UNKNOWN: Mimetype for a .desktop file.

Field Summary
static intST_MOUNT
static intST_UNMOUNT
static intST_USER_DEFINED
Constructor Summary
protected KDEDesktopMimeType(Class dummy)
KDEDesktopMimeType(KDesktopFile config)
Construct a desktop mimetype and take all information from a desktop file.
KDEDesktopMimeType(QDataStream _str, int offset)
\internal @short \internal
Method Summary
Stringcomment(String _url, boolean _is_local)
Stringcomment(KURL _url, boolean _is_local)
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
Stringicon(String _url, boolean _is_local)
Stringicon(KURL _url, boolean _is_local)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QPixmappixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path)
QPixmappixmap(KURL _url, int _group, int _force_size, int _state)
QPixmappixmap(KURL _url, int _group, int _force_size)
QPixmappixmap(KURL _url, int _group)
QPixmappixmap(int group, int force_size, int state, StringBuffer path)
QPixmappixmap(int group, int force_size, int state)
QPixmappixmap(int group, int force_size)
QPixmappixmap(int group)
static intrun(KURL _url, boolean _is_local)
Invokes the default action for the desktop entry.
protected static intrunApplication(KURL _url, String _serviceFile)
protected static intrunFSDevice(KURL _url, KSimpleConfig cfg)
protected static intrunLink(KURL _url, KSimpleConfig cfg)
protected static intrunMimeType(KURL _url, KSimpleConfig cfg)

Field Detail

ST_MOUNT

public static final int ST_MOUNT

ST_UNMOUNT

public static final int ST_UNMOUNT

ST_USER_DEFINED

public static final int ST_USER_DEFINED

Constructor Detail

KDEDesktopMimeType

protected KDEDesktopMimeType(Class dummy)

KDEDesktopMimeType

public KDEDesktopMimeType(KDesktopFile config)
Construct a desktop mimetype and take all information from a desktop file.

Parameters: config the desktop configuration file that describes the mime type

UNKNOWN: Construct a desktop mimetype and take all information from a desktop file.

KDEDesktopMimeType

public KDEDesktopMimeType(QDataStream _str, int offset)
\internal @short \internal

Method Detail

comment

public String comment(String _url, boolean _is_local)

comment

public String comment(KURL _url, boolean _is_local)

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

icon

public String icon(String _url, boolean _is_local)

icon

public String icon(KURL _url, boolean _is_local)

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

pixmap

public QPixmap pixmap(KURL _url, int _group, int _force_size, int _state, StringBuffer _path)

pixmap

public QPixmap pixmap(KURL _url, int _group, int _force_size, int _state)

pixmap

public QPixmap pixmap(KURL _url, int _group, int _force_size)

pixmap

public QPixmap pixmap(KURL _url, int _group)

pixmap

public QPixmap pixmap(int group, int force_size, int state, StringBuffer path)

pixmap

public QPixmap pixmap(int group, int force_size, int state)

pixmap

public QPixmap pixmap(int group, int force_size)

pixmap

public QPixmap pixmap(int group)

run

public static int run(KURL _url, boolean _is_local)
Invokes the default action for the desktop entry. If the desktop entry is not local, then only false is returned. Otherwise we would create a security problem. Only types Link and Mimetype could be followed.

Parameters: _url the url to run _is_local true if the URL is local, false otherwise

Returns: true on success and false on failure.

See Also: KRun

UNKNOWN: Invokes the default action for the desktop entry.

runApplication

protected static int runApplication(KURL _url, String _serviceFile)

runFSDevice

protected static int runFSDevice(KURL _url, KSimpleConfig cfg)

runLink

protected static int runLink(KURL _url, KSimpleConfig cfg)

runMimeType

protected static int runMimeType(KURL _url, KSimpleConfig cfg)