• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

filelight

  • sources
  • kde-4.14
  • kdeutils
  • filelight
  • src
  • part
localLister.h
Go to the documentation of this file.
1 /***********************************************************************
2 * Copyright 2003-2004 Max Howell <max.howell@methylblue.com>
3 * Copyright 2008-2009 Martin Sandsmark <martin.sandsmark@kde.org>
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License or (at your option) version 3 or any later version
9 * accepted by the membership of KDE e.V. (or its successor approved
10 * by the membership of KDE e.V.), which shall act as a proxy
11 * defined in Section 14 of version 3 of the license.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ***********************************************************************/
21 
22 #ifndef LOCALLISTER_H
23 #define LOCALLISTER_H
24 
25 #include <QtCore/QByteArray>
26 #include <QtCore/QThread>
27 
28 class Folder;
29 template<class T> class Chain;
30 
31 namespace Filelight
32 {
33 class ScanManager;
34 
35 class LocalLister : public QThread
36 {
37  Q_OBJECT
38 
39 public:
40  LocalLister(const QString &path, Chain<Folder> *cachedTrees, ScanManager *parent);
41 
42  static void readMounts();
43 
44 signals:
45  void branchCompleted(Folder* tree, bool finished);
46 
47 private:
48  QString m_path;
49  Chain<Folder> *m_trees;
50  ScanManager *m_parent;
51 
52 private:
53  virtual void run();
54  Folder *scan(const QByteArray&, const QByteArray&);
55 
56 private:
57  static QStringList s_localMounts, s_remoteMounts; //TODO namespace
58 };
59 }
60 
61 #endif
QByteArray
Filelight::LocalLister::readMounts
static void readMounts()
Definition: localLister.cpp:228
Filelight::LocalLister
Definition: localLister.h:35
Folder
Definition: fileTree.h:271
QString
QStringList
Chain
Definition: fileTree.h:40
Filelight::LocalLister::branchCompleted
void branchCompleted(Folder *tree, bool finished)
Filelight::ScanManager
Definition: scan.h:35
QThread
Filelight::LocalLister::LocalLister
LocalLister(const QString &path, Chain< Folder > *cachedTrees, ScanManager *parent)
Definition: localLister.cpp:57
QObject::parent
QObject * parent() const
QThread::finished
void finished()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:32 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

filelight

Skip menu "filelight"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal