SrcPackageImpl.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00009 
00010 #ifndef CachedRepoSrcPackageImpl_H
00011 #define CachedRepoSrcPackageImpl_H
00012 
00013 #include "zypp/detail/SrcPackageImpl.h"
00014 #include "zypp/repo/cached/RepoImpl.h"
00015 
00017 namespace zypp
00018 { 
00019 namespace repo
00020 { 
00021 namespace cached
00022 {
00024   //
00025   //        CLASS NAME : SourcePackageImpl
00026   //
00027   class SrcPackageImpl : public detail::SrcPackageImplIf
00028   {
00029   public:
00030 
00031     SrcPackageImpl( const data::RecordId &id, repo::cached::RepoImpl::Ptr repository_r );
00032 
00033    public:
00037      virtual unsigned mediaNr() const;
00038 
00042      virtual ByteCount downloadSize() const;
00043 
00044    public:
00045     virtual Repository repository() const;
00046 
00047     virtual TranslatedText summary() const;
00048     virtual TranslatedText description() const;
00049     virtual TranslatedText insnotify() const;
00050     virtual TranslatedText delnotify() const;
00051     virtual TranslatedText licenseToConfirm() const;
00052     virtual Vendor vendor() const;
00053     virtual ByteCount size() const;
00054     virtual const DiskUsage & diskusage() const;
00055     virtual bool installOnly() const;
00056     virtual Date buildtime() const;
00057     virtual Date installtime() const;
00058 
00059     virtual OnMediaLocation location() const;
00060 
00061   private:
00062     repo::cached::RepoImpl::Ptr _repository;
00063     data::RecordId              _id;
00064 
00065     mutable DefaultIntegral<unsigned,(unsigned)-1> _mnr;
00066     mutable scoped_ptr<DiskUsage> _diskusage;
00067   };
00069 } // ns cached
00070 } // ns repo
00071 } // namespace zypp
00072 
00074 #endif // ZMD_BACKEND_DBSOURCE_DBPACKAGEIMPL_H

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