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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kio
  • kfile
k3filetreeviewitem.h
Go to the documentation of this file.
1 /* This file is part of the KDE project
2  Copyright (C) 2000 David Faure <faure@kde.org>
3  2000 Carsten Pfeiffer <pfeiffer@kde.org>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License version 2 as published by the Free Software Foundation.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Library General Public License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to
16  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef kfile_tree_view_item_h
21 #define kfile_tree_view_item_h
22 
23 #include "kde3support_export.h"
24 
25 #include <Qt3Support/Q3PtrList>
26 #include <k3listview.h>
27 
28 #include <kfileitem.h>
29 #include <kio/global.h>
30 #include <kdirlister.h>
31 #include <kio/job.h>
32 
33 class KUrl;
34 class K3FileTreeView;
35 class KFileTreeBranch;
36 
37 
41 class KDE3SUPPORT_EXPORT K3FileTreeViewItem : public K3ListViewItem
42 {
43 public:
44  K3FileTreeViewItem( K3FileTreeViewItem*, const KFileItem&, KFileTreeBranch * );
45  K3FileTreeViewItem( K3FileTreeView*, const KFileItem&, KFileTreeBranch * );
46  ~K3FileTreeViewItem();
47 
51  KFileTreeBranch* branch() const { return m_branch; }
52 
56  KFileItem fileItem() const { return m_kfileitem; }
57 
61  QString path() const;
62 
66  KUrl url() const;
67 
71  bool isDir() const;
72 
76  bool alreadyListed() const;
77 
81  void setListed( bool wasListed );
82 
83 protected:
84 
85 private:
86 
87  KFileItem m_kfileitem;
88  KFileTreeBranch *m_branch;
89  bool m_wasListed;
90  class K3FileTreeViewItemPrivate;
91  K3FileTreeViewItemPrivate *d;
92 };
93 
94 
98 typedef Q3PtrList<K3FileTreeViewItem> K3FileTreeViewItemList;
99 
103 typedef Q3PtrListIterator<K3FileTreeViewItem> K3FileTreeViewItemListIterator;
104 
105 
106 #endif
107 
kdirlister.h
KFileTreeBranch
This is the branch class of the K3FileTreeView, which represents one branch in the treeview...
Definition: kfiletreebranch.h:49
K3FileTreeViewItemListIterator
Q3PtrListIterator< K3FileTreeViewItem > K3FileTreeViewItemListIterator
Iterator for KFileTreeViewItemList.
Definition: k3filetreeviewitem.h:103
K3FileTreeViewItem::fileItem
KFileItem fileItem() const
Definition: k3filetreeviewitem.h:56
Q3PtrList
global.h
K3FileTreeViewItem::branch
KFileTreeBranch * branch() const
Definition: k3filetreeviewitem.h:51
KUrl
K3ListViewItem
A listview item with support for alternate background colors.
Definition: k3listview.h:986
k3listview.h
kde3support_export.h
QString
Q3PtrListIterator
job.h
K3FileTreeViewItem
An item for a K3FileTreeView that knows about its own KFileItem.
Definition: k3filetreeviewitem.h:41
K3FileTreeViewItemList
Q3PtrList< K3FileTreeViewItem > K3FileTreeViewItemList
List of KFileTreeViewItems.
Definition: k3filetreeviewitem.h:98
K3FileTreeView
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
Definition: k3filetreeview.h:53
kfileitem.h
KFileItem
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:47 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal