KIO
kdiskfreespaceinfo.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KDISK_FREE_SPACE_INFO_H_
00022 #define _KDISK_FREE_SPACE_INFO_H_
00023
00024 #include <QtCore/QSharedDataPointer>
00025 #include <QtCore/QString>
00026
00027 #include <kio/kio_export.h>
00028 #include <kio/global.h>
00029
00052 class KIO_EXPORT KDiskFreeSpaceInfo
00053 {
00054 public:
00058 KDiskFreeSpaceInfo( const KDiskFreeSpaceInfo& );
00059
00063 ~KDiskFreeSpaceInfo();
00064
00068 KDiskFreeSpaceInfo& operator=( const KDiskFreeSpaceInfo& );
00069
00075 bool isValid() const;
00076
00082 QString mountPoint() const;
00083
00091 KIO::filesize_t size() const;
00092
00100 KIO::filesize_t available() const;
00101
00109 KIO::filesize_t used() const;
00110
00121 static KDiskFreeSpaceInfo freeSpaceInfo( const QString& path );
00122
00123 private:
00124 KDiskFreeSpaceInfo();
00125
00126 class Private;
00127 QSharedDataPointer<Private> d;
00128 };
00129
00130 #endif
00131