Package.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_PACKAGE_H
00013 #define ZYPP_PACKAGE_H
00014 
00015 #include "zypp/ResObject.h"
00016 #include "zypp/detail/PackageImplIf.h"
00017 
00019 namespace zypp
00020 { 
00021 
00022   DEFINE_PTR_TYPE(Package);
00023 
00025   //
00026   //    CLASS NAME : Package
00027   //
00030   class Package : public ResObject
00031   {
00032 
00033   public:
00034     typedef detail::PackageImplIf    Impl;
00035     typedef Package                  Self;
00036     typedef ResTraits<Self>          TraitsType;
00037     typedef TraitsType::PtrType      Ptr;
00038     typedef TraitsType::constPtrType constPtr;
00039 
00040   public:
00044     CheckSum checksum() const;
00046     Changelog changelog() const;
00048     std::string buildhost() const;
00050     std::string distribution() const;
00052     Label license() const;
00054     std::string packager() const;
00056     PackageGroup group() const;
00059     std::string url() const;
00061     std::string os() const;
00063     Text prein() const;
00065     Text postin() const;
00067     Text preun() const;
00069     Text postun() const;
00071     ByteCount sourcesize() const;
00073     std::list<std::string> authors() const;
00075     std::list<std::string> filenames() const;
00076 
00078     DiskUsage diskusage() const;
00079 
00081     Pathname location() const;
00082 
00083   protected:
00084     Package( const NVRAD & nvrad_r );
00086     virtual ~Package();
00087 
00088   private:
00090     virtual Impl & pimpl() = 0;
00092     virtual const Impl & pimpl() const = 0;
00093   };
00095 
00097 } // namespace zypp
00099 #endif // ZYPP_PACKAGE_H

Generated on Thu Jul 6 00:07:21 2006 for zypp by  doxygen 1.4.6