|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KShared
org.kde.koala.KSycocaEntry
org.kde.koala.KServiceType
org.kde.koala.KMimeType
org.kde.koala.KDEDesktopMimeType
public class KDEDesktopMimeType
Mime type for desktop files. Handles mount/umount icon, and user-defined properties.
Field Summary | |
---|---|
static int |
ST_MOUNT
|
static int |
ST_UNMOUNT
|
static int |
ST_USER_DEFINED
|
Constructor Summary | |
---|---|
protected |
KDEDesktopMimeType(java.lang.Class dummy)
|
|
KDEDesktopMimeType(KDesktopFile config)
Construct a desktop mimetype and take all information from a desktop file. |
|
KDEDesktopMimeType(org.kde.qt.QDataStream _str,
int offset)
\internal @short \internal |
Method Summary | |
---|---|
java.lang.String |
comment(KURL _url,
boolean _is_local)
Returns the descriptive comment associated with the MIME type. |
java.lang.String |
comment(java.lang.String _url,
boolean _is_local)
Returns the descriptive comment associated with the MIME type. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
java.lang.String |
icon(KURL _url,
boolean _is_local)
Return the filename of the icon associated with the mimetype. |
java.lang.String |
icon(java.lang.String _url,
boolean _is_local)
Return the filename of the icon associated with the mimetype. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
org.kde.qt.QPixmap |
pixmap(int group)
|
org.kde.qt.QPixmap |
pixmap(int group,
int force_size)
|
org.kde.qt.QPixmap |
pixmap(int group,
int force_size,
int state)
|
org.kde.qt.QPixmap |
pixmap(int group,
int force_size,
int state,
java.lang.StringBuffer path)
Use this function only if you don't have a special URL for which you search a pixmap. |
org.kde.qt.QPixmap |
pixmap(KURL _url,
int _group)
|
org.kde.qt.QPixmap |
pixmap(KURL _url,
int _group,
int _force_size)
|
org.kde.qt.QPixmap |
pixmap(KURL _url,
int _group,
int _force_size,
int _state)
|
org.kde.qt.QPixmap |
pixmap(KURL _url,
int _group,
int _force_size,
int _state,
java.lang.StringBuffer _path)
Find the pixmap for a given file of this mimetype. |
static int |
run(KURL _url,
boolean _is_local)
Invokes the default action for the desktop entry. |
protected static int |
runApplication(KURL _url,
java.lang.String _serviceFile)
|
protected static int |
runFSDevice(KURL _url,
KSimpleConfig cfg)
|
protected static int |
runLink(KURL _url,
KSimpleConfig cfg)
|
protected static int |
runMimeType(KURL _url,
KSimpleConfig cfg)
|
Methods inherited from class org.kde.koala.KMimeType |
---|
buildDefaultType, checkEssentialMimeTypes, comment, defaultMimeType, errorMissingMimeType, favIconForURL, iconForURL, iconForURL, init, is, load, loadInternal, parentMimeType, patterns, patternsAccuracy, pixmapForURL, pixmapForURL, pixmapForURL, pixmapForURL, pixmapForURL, pixmapForURL, property, propertyNames, save |
Methods inherited from class org.kde.koala.KServiceType |
---|
desktopEntryPath, icon, inherits, isDerived, isValid, name, parentServiceType, propertyDef, propertyDefNames |
Methods inherited from class org.kde.koala.KSycocaEntry |
---|
entryPath, isDeleted, isType, offset, read, read, sycocaType |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ST_MOUNT
public static final int ST_UNMOUNT
public static final int ST_USER_DEFINED
Constructor Detail |
---|
protected KDEDesktopMimeType(java.lang.Class dummy)
public KDEDesktopMimeType(KDesktopFile config)
config
- the desktop configuration file that describes the mime typepublic KDEDesktopMimeType(org.kde.qt.QDataStream _str, int offset)
Method Detail |
---|
public java.lang.String icon(java.lang.String _url, boolean _is_local)
KMimeType
icon
in class KMimeType
public java.lang.String icon(KURL _url, boolean _is_local)
KMimeType
icon
in class KMimeType
public org.kde.qt.QPixmap pixmap(KURL _url, int _group, int _force_size, int _state, java.lang.StringBuffer _path)
KMimeType
pixmap
in class KMimeType
_url
- URL for the file._group
- The icon group where the icon is going to be used._force_size
- Override globallly configured icon size.
Use 0 for the default size_state
- The icon state, one of: KIcon.DefaultState,
KIcon.ActiveState or KIcon.DisabledState._path
- Output parameter to get the full path. Seldom needed.
Ignored if 0
public org.kde.qt.QPixmap pixmap(KURL _url, int _group, int _force_size, int _state)
pixmap
in class KMimeType
public org.kde.qt.QPixmap pixmap(KURL _url, int _group, int _force_size)
pixmap
in class KMimeType
public org.kde.qt.QPixmap pixmap(KURL _url, int _group)
pixmap
in class KMimeType
public java.lang.String comment(java.lang.String _url, boolean _is_local)
KMimeType
comment
in class KMimeType
public java.lang.String comment(KURL _url, boolean _is_local)
KMimeType
comment
in class KMimeType
public static int run(KURL _url, boolean _is_local)
_url
- the url to run_is_local
- true if the URL is local, false otherwise
KRun.runURL(org.kde.koala.KURL, java.lang.String, boolean, boolean)
public org.kde.qt.QPixmap pixmap(int group, int force_size, int state, java.lang.StringBuffer path)
KMimeType
pixmap
in class KMimeType
group
- The icon group where the icon is going to be used.force_size
- Override globallly configured icon size.
Use 0 for the default sizestate
- The icon state, one of: KIcon
.DefaultState,
KIcon
.ActiveState or KIcon
.DisabledState.path
- Output parameter to get the full path. Seldom needed.
Ignored if 0
public org.kde.qt.QPixmap pixmap(int group, int force_size, int state)
pixmap
in class KMimeType
public org.kde.qt.QPixmap pixmap(int group, int force_size)
pixmap
in class KMimeType
public org.kde.qt.QPixmap pixmap(int group)
pixmap
in class KMimeType
protected static int runFSDevice(KURL _url, KSimpleConfig cfg)
protected static int runApplication(KURL _url, java.lang.String _serviceFile)
protected static int runLink(KURL _url, KSimpleConfig cfg)
protected static int runMimeType(KURL _url, KSimpleConfig cfg)
protected void finalize() throws java.lang.InternalError
finalize
in class KMimeType
java.lang.InternalError
public void dispose()
dispose
in class KMimeType
public boolean isDisposed()
isDisposed
in class KMimeType
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |