libzypp  10.5.0
SrcPackage.h
Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_SRCPACKAGE_H
00013 #define ZYPP_SRCPACKAGE_H
00014 
00015 #include "zypp/ResObject.h"
00016 
00018 namespace zypp
00019 { 
00020 
00021   DEFINE_PTR_TYPE(SrcPackage);
00022 
00024   //
00025   //    CLASS NAME : SrcPackage
00026   //
00029   class SrcPackage : public ResObject
00030   {
00031 
00032   public:
00033     typedef SrcPackage               Self;
00034     typedef ResTraits<Self>          TraitsType;
00035     typedef TraitsType::PtrType      Ptr;
00036     typedef TraitsType::constPtrType constPtr;
00037 
00038   public:
00040     std::string sourcePkgType() const;
00041 
00043     OnMediaLocation location() const;
00044 
00045   protected:
00046     friend Ptr make<Self>( const sat::Solvable & solvable_r );
00048     SrcPackage( const sat::Solvable & solvable_r );
00050     virtual ~SrcPackage();
00051   };
00053 
00055 } // namespace zypp
00057 #endif // ZYPP_SRCPACKAGE_H