org.kde.koala
Class KFolderType

java.lang.Object
  extended by org.kde.koala.KShared
      extended by org.kde.koala.KSycocaEntry
          extended by org.kde.koala.KServiceType
              extended by org.kde.koala.KMimeType
                  extended by org.kde.koala.KFolderType
All Implemented Interfaces:
org.kde.qt.QtSupport

public class KFolderType
extends KMimeType

Folder mime type. Handles locked folders, for instance.


Constructor Summary
protected KFolderType(java.lang.Class dummy)
           
  KFolderType(KDesktopFile config)
          Construct a folder mimetype and take all information from a desktop file.
  KFolderType(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?
 
Methods inherited from class org.kde.koala.KMimeType
buildDefaultType, checkEssentialMimeTypes, comment, defaultMimeType, errorMissingMimeType, favIconForURL, iconForURL, iconForURL, init, is, load, loadInternal, parentMimeType, patterns, patternsAccuracy, pixmap, pixmap, pixmap, pixmap, pixmap, pixmap, pixmap, pixmap, 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
 

Constructor Detail

KFolderType

protected KFolderType(java.lang.Class dummy)

KFolderType

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

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

KFolderType

public KFolderType(org.kde.qt.QDataStream _str,
                   int offset)
\internal @short \internal

Method Detail

icon

public java.lang.String icon(java.lang.String _url,
                             boolean _is_local)
Description copied from class: KMimeType
Return the filename of the icon associated with the mimetype. The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. KFolderType uses the URL to return one out of 2 icons)

Overrides:
icon in class KMimeType
Returns:
The path to the icon associated with this MIME type.

icon

public java.lang.String icon(KURL _url,
                             boolean _is_local)
Description copied from class: KMimeType
Return the filename of the icon associated with the mimetype. The arguments are unused, but provided so that KMimeType-derived classes can use them (e.g. KFolderType uses the URL to return one out of 2 icons)

Overrides:
icon in class KMimeType
Returns:
The path to the icon associated with this MIME type.

comment

public java.lang.String comment(java.lang.String _url,
                                boolean _is_local)
Description copied from class: KMimeType
Returns the descriptive comment associated with the MIME type. The arguments are unused, but provided so that KMimeType derived classes can use them.

Overrides:
comment in class KMimeType
Returns:
The descriptive comment associated with the MIME type, if any.

comment

public java.lang.String comment(KURL _url,
                                boolean _is_local)
Description copied from class: KMimeType
Returns the descriptive comment associated with the MIME type. The arguments are unused, but provided so that KMimeType derived classes can use them.

Overrides:
comment in class KMimeType
Returns:
The descriptive comment associated with the MIME type, if any.

finalize

protected void finalize()
                 throws java.lang.InternalError
Deletes the wrapped C++ instance

Overrides:
finalize in class KMimeType
Throws:
java.lang.InternalError

dispose

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

Overrides:
dispose in class KMimeType

isDisposed

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

Overrides:
isDisposed in class KMimeType