Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

storage.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2000 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qtopia Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #include <qwidget.h>
00021 #include <qframe.h>
00022 #include <qlist.h>
00023 #include <qdict.h>
00024 
00025 class QLabel;
00026 class GraphData;
00027 class Graph;
00028 class GraphLegend;
00029 class FileSystem;
00030 class MountInfo;
00031 class QVBoxLayout;
00032 class QWidget;
00033 class StorageInfo;
00034 
00035 
00036 class FileSysInfo : public QWidget
00037 {
00038     Q_OBJECT
00039 public:
00040     FileSysInfo( QWidget *parent=0, const char *name=0 );
00041 
00042 protected:
00043     void timerEvent(QTimerEvent*);
00044 
00045 private:
00046     void updateMounts();
00047 
00048     QWidget     *container;
00049     QVBoxLayout *vb;
00050     
00051     StorageInfo     *storage;
00052     QDict<MountInfo> disks;
00053     QList<QFrame>    lines;
00054 
00055     bool rebuildDisks;
00056     
00057 private slots:
00058     void disksChanged();
00059 };
00060 
00061 class MountInfo : public QWidget
00062 {
00063     Q_OBJECT
00064 public:
00065     MountInfo( FileSystem *filesys=0, QWidget *parent=0, const char *name=0 );
00066     ~MountInfo();
00067 
00068     void updateData();
00069     
00070     FileSystem *fs;
00071 
00072 private:
00073     QString title;
00074     QLabel *totalSize;
00075     GraphData *data;
00076     Graph *graph;
00077     GraphLegend *legend;
00078 };
00079 

Generated on Sat Nov 5 16:16:41 2005 for OPIE by  doxygen 1.4.2