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

kio

kfiletreeviewitem.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2000 David Faure <faure@kde.org>
00003                  2000 Carsten Pfeiffer <pfeiffer@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef kfile_tree_view_item_h
00021 #define kfile_tree_view_item_h
00022 
00023 #include <qptrlist.h>
00024 #include <klistview.h>
00025 
00026 #include <kfileitem.h>
00027 #include <kio/global.h>
00028 #include <kdirlister.h>
00029 #include <kio/job.h>
00030 
00031 class KURL;
00032 class KFileTreeView;
00033 class KFileTreeBranch;
00034 class KFileTreeItem;
00035 
00036 
00040 class KIO_EXPORT KFileTreeViewItem : public KListViewItem
00041 {
00042 public:
00043    KFileTreeViewItem( KFileTreeViewItem*, KFileItem*, KFileTreeBranch * );
00044    KFileTreeViewItem( KFileTreeView*, KFileItem*, KFileTreeBranch * );
00045    ~KFileTreeViewItem();
00046 
00050    KFileTreeBranch* branch() const     { return m_branch; }
00051 
00055    KFileItem *fileItem() const         { return m_kfileitem; }
00056 
00060    QString path() const;
00061 
00065    KURL    url() const;
00066 
00070    bool    isDir() const;
00071 
00075    bool    alreadyListed() const;
00076 
00080    void    setListed( bool wasListed );
00081 
00082 protected:
00083 
00084 private:
00085 
00086    KFileItem *m_kfileitem;
00087    KFileTreeBranch *m_branch;
00088    bool  m_wasListed;
00089    class KFileTreeViewItemPrivate;
00090    KFileTreeViewItemPrivate *d;
00091 };
00092 
00093 
00097 typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList;
00098 
00102 typedef QPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator;
00103 
00104 
00105 #endif
00106 

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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