- added more ui accessors
authorMichael Andres <ma@suse.de>
Tue, 7 Feb 2006 16:07:39 +0000 (16:07 +0000)
committerMichael Andres <ma@suse.de>
Tue, 7 Feb 2006 16:07:39 +0000 (16:07 +0000)
zypp/ui/Selectable.h

index 8691862..4852921 100644 (file)
@@ -101,6 +101,16 @@ namespace zypp
       available_iterator availableEnd() const;
 
     public:
+
+      /** True if installed object is present. */
+      bool has_installed() const
+      { return installedObj(); }
+
+      /** True if candidate object is present. */
+      bool has_candidate() const
+      { return candidateObj(); }
+
+    public:
       /** Implementation  */
       class Impl;
       typedef shared_ptr<Impl> Impl_Ptr;