00001 /* 00002 * Copyright (C) 2009, Edmundo Albuquerque de Souza e Silva. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 #ifndef __DFRIOWINDOW_H__ 00019 #define __DFRIOWINDOW_H__ 00020 00021 #include <qwidget.h> 00022 #include <qmainwindow.h> 00023 #include <qlistview.h> 00024 00025 #include "FileWindow.h" 00026 00027 class DfRioWindow : public QMainWindow 00028 { 00029 private: 00030 FileWindow *rioFW; 00031 QListView *dfList; 00032 bool disk_status; 00033 00034 void closeEvent( QCloseEvent * ); 00035 00036 /* Column numbers */ 00037 static const int MACHINE_COLUMN = 0; 00038 static const int DEVICE_COLUMN = 1; 00039 static const int USED_SIZE_COLUMN = 2; 00040 static const int FREE_SIZE_COLUMN = 3; 00041 static const int TOTAL_SIZE_COLUMN = 4; 00042 static const int PERCENT_USED_COLUMN = 5; 00043 static const int PERCENT_FREE_COLUMN = 6; 00044 00045 00046 00047 public: 00048 DfRioWindow( QWidget *parent, FileWindow *rioFW, 00049 const char *name = 0 , WFlags f = 0 ); 00050 // Esta funcao foi movida para public para permitir o uso dela na 00051 // classe RioQt. 00052 void getDiskInfo( void ); 00053 bool getDiskStatus( void ); 00054 }; 00055 00056 #endif 00057 00058