41 #ifndef NCPkgPopupDiskspace_h
42 #define NCPkgPopupDiskspace_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( FSize used, 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 zypp::ByteCount calculateDiff();
246 #endif // NCPkgPopupDiskspace_h
void warningPostedNotify()
Notification that a warning has been posted.
void clearHistory()
Clear everything, including all history values such as if a warning has been posted.
Helper class to manage warnings that are to be issued when a value enters a predefined range...
bool inRange() const
Check if the value is in range, i.e.
void clear()
Clear the current values, i.e.
bool leavingProximity() const
Check if the value is leaving the proximity range.
NCPkgWarningRangeNotifier()
Constructor.
bool needWarning() const
Check if a warning should be posted, i.e.
void enterProximity()
Notification that the proximity range is entered, i.e.
void enterRange()
Notification that the inner range is entered.