PackageImplIf.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_DETAIL_PACKAGEIMPLIF_H
00013 #define ZYPP_DETAIL_PACKAGEIMPLIF_H
00014 
00015 #include <set>
00016 
00017 #include "zypp/detail/ResObjectImplIf.h"
00018 #include "zypp/CheckSum.h"
00019 #include "zypp/Edition.h"
00020 #include "zypp/Arch.h"
00021 #include "zypp/Changelog.h"
00022 #include "zypp/DiskUsage.h"
00023 #include "zypp/PackageKeyword.h"
00024 #include "zypp/repo/PackageDelta.h"
00025 
00027 namespace zypp
00028 { 
00029 
00030   class Package;
00031 
00033   namespace detail
00034   { 
00035 
00037     //
00038     //  CLASS NAME : PackageImplIf
00039     //
00042     class PackageImplIf : public ResObjectImplIf
00043     {
00044     public:
00045       typedef Package ResType;
00046 
00047     public:
00048       typedef packagedelta::DeltaRpm    DeltaRpm;
00049       typedef packagedelta::PatchRpm    PatchRpm;
00050       typedef std::set<PackageKeyword>  Keywords;
00051 
00052     public:
00056       virtual unsigned mediaNr() const;
00057 
00061       virtual ByteCount downloadSize() const;
00062 
00063     public:
00066 
00067       virtual std::string buildhost() const PURE_VIRTUAL;
00069       virtual std::string distribution() const PURE_VIRTUAL;
00071       virtual Label license() const PURE_VIRTUAL;
00073       virtual std::string packager() const PURE_VIRTUAL;
00075       virtual PackageGroup group() const PURE_VIRTUAL;
00077       virtual Keywords keywords() const PURE_VIRTUAL;
00079       virtual Changelog changelog() const PURE_VIRTUAL;
00083       virtual std::string url() const PURE_VIRTUAL;
00085       virtual std::string os() const PURE_VIRTUAL;
00087       virtual Text prein() const PURE_VIRTUAL;
00089       virtual Text postin() const PURE_VIRTUAL;
00091       virtual Text preun() const PURE_VIRTUAL;
00093       virtual Text postun() const PURE_VIRTUAL;
00095       virtual ByteCount sourcesize() const PURE_VIRTUAL;
00097       virtual std::list<std::string> authors() const PURE_VIRTUAL;
00099       virtual std::list<std::string> filenames() const PURE_VIRTUAL;
00101       virtual std::list<DeltaRpm> deltaRpms() const PURE_VIRTUAL;
00103       virtual std::list<PatchRpm> patchRpms() const PURE_VIRTUAL;
00104 
00105       virtual OnMediaLocation location() const PURE_VIRTUAL;
00106 
00110       virtual std::string sourcePkgName() const PURE_VIRTUAL;
00111 
00115       virtual Edition sourcePkgEdition() const PURE_VIRTUAL;
00116 
00118 
00119     };
00121 
00123   } // namespace detail
00126 } // namespace zypp
00128 #endif // ZYPP_DETAIL_PACKAGEIMPLIF_H

Generated on Tue Sep 25 19:23:00 2007 for libzypp by  doxygen 1.5.3