Add Selectable::locked (short for TABOO||PROTECED)
authorMichael Andres <ma@suse.de>
Wed, 4 Nov 2009 15:32:09 +0000 (16:32 +0100)
committerMichael Andres <ma@suse.de>
Wed, 4 Nov 2009 15:46:00 +0000 (16:46 +0100)
zypp/ui/Selectable.h

index 0331cab..ac32377 100644 (file)
@@ -313,6 +313,10 @@ namespace zypp
       bool unmodified() const
       { return fate() == UNMODIFIED; }
 
+      /** True if locked (subclass of unmodified). */
+      bool locked() const
+      { Status st( status() ); return( st == S_Protected || st == S_Taboo ); }
+
       /** True if either to delete or to install */
       bool toModify() const
       { return fate() != UNMODIFIED; }