Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

NCPopupDiskspace.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                      __   __    ____ _____ ____                      |
00004 |                      \ \ / /_ _/ ___|_   _|___ \                     |
00005 |                       \ V / _` \___ \ | |   __) |                    |
00006 |                        | | (_| |___) || |  / __/                     |
00007 |                        |_|\__,_|____/ |_| |_____|                    |
00008 |                                                                      |
00009 |                               core system                            |
00010 |                                                        (C) SuSE GmbH |
00011 \----------------------------------------------------------------------/
00012 
00013    File:       NCPopupDiskspace.h
00014 
00015    Author:     Gabriele Strattner <gs@suse.de>
00016    Maintainer: Michael Andres <ma@suse.de>
00017 
00018 /-*/
00019 #ifndef NCPopupDiskspace_h
00020 #define NCPopupDiskspace_h
00021 
00022 #include <iosfwd>
00023 
00024 #include <vector>
00025 #include <string>
00026 
00027 #include "NCPopup.h"
00028 
00029 class NCTable;
00030 class NCPushButton;
00031 
00032 
00034 //
00035 //      CLASS NAME : NCPopupDiskspace
00036 //
00037 //      DESCRIPTION :
00038 //
00039 class NCPopupDiskspace : public NCPopup {
00040 
00041     NCPopupDiskspace & operator=( const NCPopupDiskspace & );
00042     NCPopupDiskspace            ( const NCPopupDiskspace & );
00043 
00044 private:
00045 
00046     NCTable * partitions;
00047     NCPushButton * okButton;
00048 
00049     string usedPercent( FSize used, FSize total );
00050     
00051 protected:
00052 
00053     virtual bool postAgain();
00054 
00055     virtual NCursesEvent wHandleInput( wint_t ch );
00056     
00057 public:
00058     
00059     NCPopupDiskspace( const wpos at);
00060     
00061     virtual ~NCPopupDiskspace();
00062 
00063     virtual long nicesize(YUIDimension dim);
00064 
00065     void fillPartitionTable();
00066 
00067     string checkDiskSpace();
00068     
00069     void createLayout( const YCPString & headline );
00070 
00071     void showInfoPopup( );
00072 
00073 };
00074 
00076 
00077 
00078 #endif // NCPopupDiskspace_h

Generated on Wed Nov 12 04:52:32 2008 for yast2-ncurses by  doxygen 1.3.9.1