• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KFile

kdirsortfilterproxymodel.h

Go to the documentation of this file.
00001 /*
00002    Copyright (C) 2006 by Peter Penz <peter.penz@gmx.at>
00003    Copyright (C) 2006 by Dominic Battre <dominic@battre.de>
00004    Copyright (C) 2006 by Martin Pool <mbp@canonical.com>
00005 
00006    Separated from Dolphin by Nick Shaforostoff <shafff@ukr.net>
00007 
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License version 2 as published by the Free Software Foundation.
00011 
00012    This library is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015    Library General Public License for more details.
00016 
00017    You should have received a copy of the GNU Library General Public License
00018    along with this library; see the file COPYING.LIB.  If not, write to
00019    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020    Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KDIRSORTFILTERPROXYMODEL_H
00024 #define KDIRSORTFILTERPROXYMODEL_H
00025 
00026 #include <QtCore/QFileInfo>
00027 
00028 #include <kcategorizedsortfilterproxymodel.h>
00029 
00030 #include <kfile_export.h>
00031 
00051 class KFILE_EXPORT KDirSortFilterProxyModel
00052     : public KCategorizedSortFilterProxyModel
00053 {
00054 public:
00055     KDirSortFilterProxyModel(QObject* parent = 0);
00056     virtual ~KDirSortFilterProxyModel();
00057 
00059     virtual bool hasChildren(const QModelIndex& parent = QModelIndex()) const;
00060 
00065     virtual bool canFetchMore(const QModelIndex& parent) const;
00066 
00071     static int pointsForPermissions(const QFileInfo &info);
00072 
00073 protected:
00077     virtual bool subSortLessThan(const QModelIndex& left,
00078                                  const QModelIndex& right) const;
00079 
00080 private:
00081     class KDirSortFilterProxyModelPrivate;
00082     KDirSortFilterProxyModelPrivate* const d;
00083 };
00084 
00085 
00086 #endif

KFile

Skip menu "KFile"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal