• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

  • tdeio
  • tdefile
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 <tdelibs_export.h>
33 
34 class TDEProcess;
35 
40 class TDEIO_EXPORT KDiskFreeSp : public TQObject
41 { TQ_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(TDEProcess *, char *data, int len);
76  void dfDone();
77 
78 private:
79  TDEProcess *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:41

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.1
This website is maintained by Timothy Pearson.