class KMimeTypeResolver

# class KMimeTypeResolver | This class implements the "delayed-mimetype-determination" feature, for konqueror's directory views (and KFileDialog's :) More...
Definition | `#include <kmimetyperesolver.h>`
Template form | KMimeTypeResolver<class IconItem, class Parent>
Inherits | KMimeTypeResolverBase [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KMimeTypeResolver ( Parent * parent )
- virtual ~KMimeTypeResolver ()
- void start ( uint delayNonVisibleIcons = 10 )
- virtual void slotViewportAdjusted ()
- virtual void slotProcessMimeIcons ()

#### Public Members

- QPtrList m_lstPendingMimeIconItems

## Detailed Description

This class implements the "delayed-mimetype-determination" feature, for konqueror's directory views (and KFileDialog's :)

It determines the mimetypes of the icons in the background, but giving preferrence to the visible icons.

It is implemented as a template, so that it can work with both QPtrListViewItem and QIconViewItem, without requiring hacks such as void * or QPtrDict lookups.

Here's what the parent must implement : - void mimeTypeDeterminationFinished(); - QScrollView * scrollWidget(); - void determineIcon( IconItem * item ), which should call KFileItem::determineMimeType on the fileItem, and update the icon, etc.

KMimeTypeResolver ( Parent * parent ) | ### KMimeTypeResolver

~KMimeTypeResolver () | ### ~KMimeTypeResolver

[virtual]

void start ( uint delayNonVisibleIcons = 10 ) | ### start

Start the mimetype-determination. Call this when the listing is completed.

Parameters:

delayNonVisibleIcons | the delay to use between icons not on screen. Usually 10, but should be set to 0 when the image preview feature is activated, because image preview can only start once we know the mimetypes

QPtrList m_lstPendingMimeIconItems | ### m_lstPendingMimeIconItems

void slotViewportAdjusted () | ### slotViewportAdjusted

[virtual]

"Connected" to the viewportAdjusted signal of the scrollview

Reimplemented from KMimeTypeResolverBase.

void slotProcessMimeIcons () | ### slotProcessMimeIcons

[virtual]

"Connected" to the timer

Reimplemented from KMimeTypeResolverBase.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.