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

tdeio/tdefile

  • tdeio
  • tdefile
tdefiletreeviewitem.h
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 TDEFILE_TREE_VIEW_ITEM_H
21 #define TDEFILE_TREE_VIEW_ITEM_H
22 
23 #include <tqptrlist.h>
24 #include <tdelistview.h>
25 
26 #include <tdefileitem.h>
27 #include <tdeio/global.h>
28 #include <kdirlister.h>
29 #include <tdeio/job.h>
30 
31 class KURL;
32 class KFileTreeView;
33 class KFileTreeBranch;
34 class KFileTreeItem;
35 
36 
40 class TDEIO_EXPORT KFileTreeViewItem : public TDEListViewItem
41 {
42 public:
43  KFileTreeViewItem( KFileTreeViewItem*, KFileItem*, KFileTreeBranch * );
44  KFileTreeViewItem( KFileTreeView*, KFileItem*, KFileTreeBranch * );
45  ~KFileTreeViewItem();
46 
50  KFileTreeBranch* branch() const { return m_branch; }
51 
55  KFileItem *fileItem() const { return m_tdefileitem; }
56 
60  TQString path() const;
61 
65  KURL url() const;
66 
70  bool isDir() const;
71 
75  bool alreadyListed() const;
76 
80  void setListed( bool wasListed );
81 
82 protected:
83 
84 private:
85 
86  KFileItem *m_tdefileitem;
87  KFileTreeBranch *m_branch;
88  bool m_wasListed;
89  class KFileTreeViewItemPrivate;
90  KFileTreeViewItemPrivate *d;
91 };
92 
93 
97 typedef TQPtrList<KFileTreeViewItem> KFileTreeViewItemList;
98 
102 typedef TQPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator;
103 
104 
105 #endif
106 
KFileTreeBranch
This is the branch class of the KFileTreeView, which represents one branch in the treeview.
Definition: tdefiletreebranch.h:49
KFileTreeViewItem
An item for a KFileTreeView that knows about its own KFileItem.
Definition: tdefiletreeviewitem.h:41
KFileTreeViewItem::branch
KFileTreeBranch * branch() const
Definition: tdefiletreeviewitem.h:50
KFileTreeViewItem::fileItem
KFileItem * fileItem() const
Definition: tdefiletreeviewitem.h:55
KFileTreeView
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
Definition: tdefiletreeview.h:67

tdeio/tdefile

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

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • 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/tdefile by doxygen 1.9.1
This website is maintained by Timothy Pearson.