• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kfile
 

kio/kfile

  • kio
  • kfile
kdiskfreesp.h
1 /*
2  * kdiskfreesp.h
3  *
4  * Copyright (c) 1999 Michael Kropfberger <michael.kropfberger@gmx.net>
5  *
6  * Requires the Qt widget libraries, available at no cost at
7  * http://www.troll.no/
8  *
9  *
10  * This library is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Library General Public
12  * License version 2 as published by the Free Software Foundation.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public License
20  * along with this library; see the file COPYING.LIB. If not, write to
21  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  */
24 
25 
26 #ifndef __KDISKFREESP_H__
27 #define __KDISKFREESP_H__
28 
29 #include <tqobject.h>
30 #include <tqstring.h>
31 
32 #include <kdelibs_export.h>
33 
34 class KProcess;
35 
40 class KIO_EXPORT KDiskFreeSp : public TQObject
41 { Q_OBJECT
42 public:
43  KDiskFreeSp( TQObject *parent=0, const char *name=0 );
47  ~KDiskFreeSp();
54  int readDF( const TQString & mountPoint );
55 
63  static KDiskFreeSp * findUsageInfo( const TQString & path );
64 
65 signals:
66  void foundMountPoint( const TQString & mountPoint, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail );
67 
68  // This one is a hack around a weird (compiler?) bug. In the former signal,
69  // the slot in KPropsDlg would get 0L, 0L as the last two parameters.
70  // When using const ulong& instead, all is ok.
71  void foundMountPoint( const unsigned long&, const unsigned long&, const unsigned long&, const TQString& );
72  void done();
73 
74 private slots:
75  void receivedDFStdErrOut(KProcess *, char *data, int len);
76  void dfDone();
77 
78 private:
79  KProcess *dfProc;
80  TQCString dfStringErrOut;
81  TQString m_mountPoint;
82  bool readingDFStdErrOut;
83  class KDiskFreeSpPrivate;
84  KDiskFreeSpPrivate * d;
85 };
86 /***************************************************************************/
87 
88 
89 #endif
KDiskFreeSp
This class parses the output of "df" to find the disk usage information for a given partition (mount ...
Definition: kdiskfreesp.h:40

kio/kfile

Skip menu "kio/kfile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kio/kfile

Skip menu "kio/kfile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kfile by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |