00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00015 #ifndef ZYPP_UI_PATCH_CONTENTS_H 00016 #define ZYPP_UI_PATCH_CONTENTS_H 00017 00018 #include <vector> 00019 #include "zypp/base/PtrTypes.h" 00020 #include "zypp/Patch.h" 00021 00022 namespace zypp 00023 { 00024 namespace ui 00025 { 00029 class PatchContents 00030 { 00031 protected: 00032 typedef std::vector<ResObject::constPtr> ContentsCollection; 00033 00034 public: 00035 class Impl; 00036 00037 typedef ContentsCollection::iterator iterator; 00038 typedef ContentsCollection::const_iterator const_iterator; 00039 typedef ContentsCollection::size_type size_type; 00040 00041 00042 public: 00043 00044 PatchContents( Patch::constPtr patch ); 00045 00046 const_iterator begin() const; 00047 const_iterator end () const; 00048 00049 bool empty() const; 00050 size_type size() const; 00051 00052 private: 00053 RW_pointer<Impl> _pimpl; 00054 }; 00055 00056 00057 } // namespace ui 00058 } // namespace zypp 00059 00060 #endif // ZYPP_UI_PATCH_CONTENTS_H