41 #ifndef NCPkgPopupDiskspace_h 42 #define NCPkgPopupDiskspace_h 48 #include <yui/FSize.h> 49 #include <yui/ncurses/NCPopup.h> 50 #include <yui/ncurses/NCLabel.h> 55 typedef zypp::DiskUsageCounter::MountPoint ZyppPartitionDu;
56 typedef zypp::DiskUsageCounter::MountPointSet ZyppDuSet;
57 typedef zypp::DiskUsageCounter::MountPointSet::iterator ZyppDuSetIterator;
140 void logSettings()
const;
165 NCTable * partitions;
166 NCPushButton * okButton;
171 virtual bool postAgain();
173 virtual NCursesEvent wHandleInput( wint_t ch );
180 void createLayout( std::string headline );
183 NCTable *Partitions() {
return partitions; }
185 virtual int preferredWidth();
186 virtual int preferredHeight();
205 ZyppDuSet testDiskUsage;
207 std::string usedPercent(
const FSize &used,
const FSize &total );
227 void fillPartitionTable();
229 std::string checkDiskSpace();
231 void setDiskSpace( wint_t key );
233 void checkDiskSpaceRange();
235 void showInfoPopup( std::string headline );
237 void checkRemainingDiskSpace(
const ZyppPartitionDu & partition );
239 FSize calculateDiff();
246 #endif // NCPkgPopupDiskspace_h bool needWarning() const
Definition: NCPkgPopupDiskspace.cc:657
void warningPostedNotify()
Definition: NCPkgPopupDiskspace.cc:636
void clearHistory()
Definition: NCPkgPopupDiskspace.cc:611
bool leavingProximity() const
Definition: NCPkgPopupDiskspace.cc:650
Definition: NCPkgPopupDiskspace.h:92
void clear()
Definition: NCPkgPopupDiskspace.cc:602
NCPkgWarningRangeNotifier()
Definition: NCPkgPopupDiskspace.cc:595
bool inRange() const
Definition: NCPkgPopupDiskspace.cc:643
void enterProximity()
Definition: NCPkgPopupDiskspace.cc:628
void enterRange()
Definition: NCPkgPopupDiskspace.cc:620
Definition: NCPkgPopupDiskspace.h:196