kfiletreeviewitem.h
/* This file is part of the KDE project
Copyright (C) 2000 David Faure <faure@kde.org>
2000 Carsten Pfeiffer <pfeiffer@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef kfile_tree_view_item_h
#define kfile_tree_view_item_h
#include <qptrlist.h>
#include <klistview.h>
#include <kfileitem.h>
#include <kio/global.h>
#include <kdirlister.h>
#include <kio/job.h>
class KURL;
class KFileTreeView;
class KFileTreeBranch;
class KFileTreeItem;
class KIO_EXPORT KFileTreeViewItem : public KListViewItem
{
public:
KFileTreeViewItem( KFileTreeViewItem*, KFileItem*, KFileTreeBranch * );
KFileTreeViewItem( KFileTreeView*, KFileItem*, KFileTreeBranch * );
~KFileTreeViewItem();
KFileTreeBranch* branch() const { return m_branch; }
KFileItem *fileItem() const { return m_kfileitem; }
QString path() const;
KURL url() const;
bool isDir() const;
bool alreadyListed() const;
void setListed( bool wasListed );
protected:
private:
KFileItem *m_kfileitem;
KFileTreeBranch *m_branch;
bool m_wasListed;
class KFileTreeViewItemPrivate;
KFileTreeViewItemPrivate *d;
};
typedef QPtrList<KFileTreeViewItem> KFileTreeViewItemList;
typedef QPtrListIterator<KFileTreeViewItem> KFileTreeViewItemListIterator;
#endif
KFileTreeBranch
This is the branch class of the KFileTreeView, which represents one branch in the treeview...
Definition: kfiletreebranch.h:48
KFileTreeViewItem::fileItem
KFileItem * fileItem() const
Definition: kfiletreeviewitem.h:55
KFileTreeView
The filetreeview offers a treeview on the file system which behaves like a QTreeView showing files an...
Definition: kfiletreeview.h:66
KFileTreeViewItem
An item for a KFileTreeView that knows about its own KFileItem.
Definition: kfiletreeviewitem.h:40
KFileTreeViewItem::branch
KFileTreeBranch * branch() const
Definition: kfiletreeviewitem.h:50

KDE Home | KDE Accessibility Home | Description of Access Keys