kdiskfreesp.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef __KDISKFREESP_H__
00027 #define __KDISKFREESP_H__
00028
00029 #include <qobject.h>
00030 #include <qstring.h>
00031
00032 class KProcess;
00033
00038 class KDiskFreeSp : public QObject
00039 { Q_OBJECT
00040 public:
00041 KDiskFreeSp( QObject *parent=0, const char *name=0 );
00045 ~KDiskFreeSp();
00052 int readDF( const QString & mountPoint );
00053
00061 static KDiskFreeSp * findUsageInfo( const QString & path );
00062
00063 signals:
00064 void foundMountPoint( const QString & mountPoint, unsigned long kBSize, unsigned long kBUsed, unsigned long kBAvail );
00065
00066
00067
00068
00069 void foundMountPoint( const unsigned long&, const unsigned long&, const unsigned long&, const QString& );
00070 void done();
00071
00072 private slots:
00073 void receivedDFStdErrOut(KProcess *, char *data, int len);
00074 void dfDone();
00075
00076 private:
00077 KProcess *dfProc;
00078 QCString dfStringErrOut;
00079 QString m_mountPoint;
00080 bool readingDFStdErrOut;
00081 class KDiskFreeSpPrivate;
00082 KDiskFreeSpPrivate * d;
00083 };
00084
00085
00086
00087 #endif
This file is part of the documentation for kdelibs Version 3.1.5.