KDE3Support
k3filetreeviewitem.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 "kde3support_export.h" 00024 00025 #include <Qt3Support/Q3PtrList> 00026 #include <k3listview.h> 00027 00028 #include <kfileitem.h> 00029 #include <kio/global.h> 00030 #include <kdirlister.h> 00031 #include <kio/job.h> 00032 00033 class KUrl; 00034 class K3FileTreeView; 00035 class KFileTreeBranch; 00036 00037 00041 class KDE3SUPPORT_EXPORT K3FileTreeViewItem : public K3ListViewItem 00042 { 00043 public: 00044 K3FileTreeViewItem( K3FileTreeViewItem*, const KFileItem&, KFileTreeBranch * ); 00045 K3FileTreeViewItem( K3FileTreeView*, const KFileItem&, KFileTreeBranch * ); 00046 ~K3FileTreeViewItem(); 00047 00051 KFileTreeBranch* branch() const { return m_branch; } 00052 00056 KFileItem fileItem() const { return m_kfileitem; } 00057 00061 QString path() const; 00062 00066 KUrl url() const; 00067 00071 bool isDir() const; 00072 00076 bool alreadyListed() const; 00077 00081 void setListed( bool wasListed ); 00082 00083 protected: 00084 00085 private: 00086 00087 KFileItem m_kfileitem; 00088 KFileTreeBranch *m_branch; 00089 bool m_wasListed; 00090 class K3FileTreeViewItemPrivate; 00091 K3FileTreeViewItemPrivate *d; 00092 }; 00093 00094 00098 typedef Q3PtrList<K3FileTreeViewItem> K3FileTreeViewItemList; 00099 00103 typedef Q3PtrListIterator<K3FileTreeViewItem> K3FileTreeViewItemListIterator; 00104 00105 00106 #endif 00107