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
#include <kdelibs_export.h>
00033
00034
class KProcess;
00035
00040 class KIO_EXPORT KDiskFreeSp :
public QObject
00041 { Q_OBJECT
00042
public:
00043 KDiskFreeSp(
QObject *parent=0,
const char *name=0 );
00047 ~KDiskFreeSp();
00054
int readDF(
const QString & mountPoint );
00055
00063
static KDiskFreeSp * findUsageInfo(
const QString & path );
00064
00065 signals:
00066
void foundMountPoint(
const QString & mountPoint,
unsigned long kBSize,
unsigned long kBUsed,
unsigned long kBAvail );
00067
00068
00069
00070
00071
void foundMountPoint(
const unsigned long&,
const unsigned long&,
const unsigned long&,
const QString& );
00072
void done();
00073
00074
private slots:
00075
void receivedDFStdErrOut(
KProcess *,
char *data,
int len);
00076
void dfDone();
00077
00078
private:
00079
KProcess *dfProc;
00080
QCString dfStringErrOut;
00081
QString m_mountPoint;
00082
bool readingDFStdErrOut;
00083
class KDiskFreeSpPrivate;
00084 KDiskFreeSpPrivate * d;
00085 };
00086
00087
00088
00089
#endif
This file is part of the documentation for kio Library Version 3.4.0.