# kio Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kfiletreeviewitem.h

    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., 59 Temple Place - Suite 330,
    00017    Boston, MA 02111-1307, USA.
    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.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:23:59 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003