kfiletreeviewitem.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
This file is part of the documentation for kio Library Version 3.4.0.