• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

Public Member Functions | Public Attributes | List of all members
KMimeTypeResolver< IconItem, Parent > Class Template Reference

#include <kmimetyperesolver.h>

Inherits KMimeTypeResolverBase.

Public Member Functions

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

Public Attributes

TQPtrList< IconItem > m_lstPendingMimeIconItems
 

Detailed Description

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.

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

Here's what the parent must implement :

  • void mimeTypeDeterminationFinished();
  • TQScrollView * scrollWidget();
  • void determineIcon( IconItem * item ), which should call
  • KFileItem::determineMimeType on the fileItem, and update the icon, etc.

Definition at line 118 of file kmimetyperesolver.h.

Constructor & Destructor Documentation

◆ KMimeTypeResolver()

template<class IconItem , class Parent >
KMimeTypeResolver< IconItem, Parent >::KMimeTypeResolver ( Parent *  parent)
inline

Creates a new KMimeTypeResolver with the given parent.

Parameters
parentthe parent's resolver

Definition at line 125 of file kmimetyperesolver.h.

Member Function Documentation

◆ slotProcessMimeIcons()

template<class IconItem , class Parent >
void KMimeTypeResolver< IconItem, Parent >::slotProcessMimeIcons
inlinevirtual

"Connected" to the timer

Definition at line 180 of file kmimetyperesolver.h.

◆ slotViewportAdjusted()

template<class IconItem , class Parent >
void KMimeTypeResolver< IconItem, Parent >::slotViewportAdjusted
inlinevirtual

"Connected" to the viewportAdjusted signal of the scrollview

Definition at line 217 of file kmimetyperesolver.h.

◆ start()

template<class IconItem , class Parent >
void KMimeTypeResolver< IconItem, Parent >::start ( uint  delayNonVisibleIcons = 10)
inline

Start the mimetype-determination.

Call this when the listing is completed.

Parameters
delayNonVisibleIconsthe 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

Definition at line 141 of file kmimetyperesolver.h.

Member Data Documentation

◆ m_lstPendingMimeIconItems

template<class IconItem , class Parent >
TQPtrList<IconItem> KMimeTypeResolver< IconItem, Parent >::m_lstPendingMimeIconItems

The list of items to process.

The view is free to clear it, insert new items into it, remove items, etc.

Returns
the list of items to process

Definition at line 152 of file kmimetyperesolver.h.


The documentation for this class was generated from the following file:
  • kmimetyperesolver.h

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.9.1
This website is maintained by Timothy Pearson.