.TH "KMimeTypeResolver" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMimeTypeResolver \- This class implements the 'delayed-mimetype-determination' feature, for konqueror's directory views (and KFileDialog's :).  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmimetyperesolver.h>\fP
.PP
Inherits KMimeTypeResolverBase.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMimeTypeResolver\fP (Parent *parent)"
.br
.ti -1c
.RI "void \fBstart\fP (uint delayNonVisibleIcons=10)"
.br
.RI "\fIStart the mimetype-determination. \fP"
.ti -1c
.RI "virtual void \fBslotViewportAdjusted\fP ()"
.br
.RI "\fI'Connected' to the viewportAdjusted signal of the scrollview \fP"
.ti -1c
.RI "virtual void \fBslotProcessMimeIcons\fP ()"
.br
.RI "\fI'Connected' to the timer \fP"
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBQPtrList\fP< IconItem > \fBm_lstPendingMimeIconItems\fP"
.br
.RI "\fIThe list of items to process. \fP"
.in -1c
.SH "Detailed Description"
.PP 

.SS "template<class IconItem, class Parent> class KMimeTypeResolver< IconItem, Parent >"
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.
.PP
It is implemented as a template, so that it can work with both QPtrListViewItem and \fBQIconViewItem\fP, without requiring hacks such as void * or \fBQPtrDict\fP lookups.
.PP
Here's what the parent must implement :
.IP "\(bu" 2
void mimeTypeDeterminationFinished();
.IP "\(bu" 2
\fBQScrollView\fP * scrollWidget();
.IP "\(bu" 2
void determineIcon( IconItem * item ), which should call \fBKFileItem::determineMimeType\fP on the fileItem, and update the icon, etc. 
.PP

.PP
Definition at line 118 of file kmimetyperesolver.h.
.SH "Member Function Documentation"
.PP 
.SS "template<class IconItem, class Parent> void \fBKMimeTypeResolver\fP< IconItem, Parent >::start (uint delayNonVisibleIcons = 10)\fC [inline]\fP"
.PP
Start the mimetype-determination. Call this when the listing is completed. 
.PP
\fBParameters:\fP
.RS 4
\fIdelayNonVisibleIcons\fP 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 
.RE
.PP
Definition at line 137 of file kmimetyperesolver.h.
.SS "template<class IconItem, class Parent> void \fBKMimeTypeResolver\fP< IconItem, Parent >::slotViewportAdjusted ()\fC [inline, virtual]\fP"
.PP
'Connected' to the viewportAdjusted signal of the scrollview Definition at line 212 of file kmimetyperesolver.h.
.PP
References QPtrList< IconItem >::isEmpty(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, and QPtrList< IconItem >::remove().
.SS "template<class IconItem, class Parent> void \fBKMimeTypeResolver\fP< IconItem, Parent >::slotProcessMimeIcons ()\fC [inline, virtual]\fP"
.PP
'Connected' to the timer Definition at line 175 of file kmimetyperesolver.h.
.PP
References QPtrList< IconItem >::count(), QPtrList< IconItem >::first(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, and QPtrList< IconItem >::remove().
.SH "Member Data Documentation"
.PP 
.SS "template<class IconItem, class Parent> \fBQPtrList\fP<IconItem> \fBKMimeTypeResolver\fP< IconItem, Parent >::\fBm_lstPendingMimeIconItems\fP"
.PP
The list of items to process. The view is free to clear it, insert new items into it, remove items, etc. Definition at line 147 of file kmimetyperesolver.h.
.PP
Referenced by KMimeTypeResolver< IconItem, Parent >::slotProcessMimeIcons(), and KMimeTypeResolver< IconItem, Parent >::slotViewportAdjusted().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
