.TH "KMimeTypeResolver" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "virtual void \fBslotViewportAdjusted\fP ()"
.br
.ti -1c
.RI "virtual void \fBslotProcessMimeIcons\fP ()"
.br
.in -1c
.SS "Public Attributes"

.in +1c
.ti -1c
.RI "\fBQPtrList\fP< IconItem > \fBm_lstPendingMimeIconItems\fP"
.br
.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 : 
.PD 0

.IP "\(bu" 2
void mimeTypeDeterminationFinished(); 
.IP "\(bu" 2
\fBQScrollView\fP * scrollWidget(); 
.IP "\(bu" 2
void determineIcon( IconItem * item ), which should call 
.IP "\(bu" 2
\fBKFileItem::determineMimeType\fP on the fileItem, and update the icon, etc. 
.PP

.PP
Definition at line 118 of file kmimetyperesolver.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "template<class IconItem, class Parent> \fBKMimeTypeResolver\fP< IconItem, Parent >::\fBKMimeTypeResolver\fP (Parent * parent)\fC [inline]\fP"
.PP
Creates a new KMimeTypeResolver with the given parent. 
.PP
\fBParameters:\fP
.RS 4
\fIparent\fP the parent's resolver 
.RE
.PP

.PP
Definition at line 125 of file kmimetyperesolver.h.
.SH "Member Function Documentation"
.PP 
.SS "template<class IconItem, class Parent> void \fBKMimeTypeResolver\fP< IconItem, Parent >::start (uint delayNonVisibleIcons = \fC10\fP)\fC [inline]\fP"
.PP
Start the mimetype-determination. 
.PP
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

.PP
Definition at line 141 of file kmimetyperesolver.h.
.PP
Referenced by KFileIconView::listingCompleted(), and KFileDetailView::listingCompleted().
.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 
.PP
Definition at line 217 of file kmimetyperesolver.h.
.PP
References QPtrList::isEmpty(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, and QPtrList::remove().
.SS "template<class IconItem, class Parent> void \fBKMimeTypeResolver\fP< IconItem, Parent >::slotProcessMimeIcons ()\fC [inline, virtual]\fP"
.PP
'Connected' to the timer 
.PP
Definition at line 180 of file kmimetyperesolver.h.
.PP
References QPtrList::count(), QPtrList::first(), KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems, and QPtrList::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. 
.PP
The view is free to clear it, insert new items into it, remove items, etc. 
.PP
\fBReturns:\fP
.RS 4
the list of items to process 
.RE
.PP

.PP
Definition at line 152 of file kmimetyperesolver.h.
.PP
Referenced by KFileIconView::clearView(), KFileDetailView::clearView(), KFileIconView::insertItem(), KFileDetailView::insertItem(), KFileIconView::removeItem(), KFileDetailView::removeItem(), KMimeTypeResolver< IconItem, Parent >::slotProcessMimeIcons(), and KMimeTypeResolver< IconItem, Parent >::slotViewportAdjusted().

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