libzypp  10.5.0
KeyContext.h
Go to the documentation of this file.
00001 #ifndef KEYCONTEXT_H_
00002 #define KEYCONTEXT_H_
00003 
00004 #include "zypp/RepoInfo.h"
00005 
00006 namespace zypp {
00007 
00008   struct KeyContext
00009   {
00010   public:
00012     bool empty() const { return _repoInfo.alias().empty(); }
00013     
00014   public:
00015     const RepoInfo repoInfo() const { return _repoInfo; }
00016     void setRepoInfo(const RepoInfo & repoinfo) { _repoInfo = repoinfo; }
00017   
00018   private:
00019     RepoInfo _repoInfo;
00020   };
00021 
00022 }
00023 
00024 #endif /*KEYCONTEXT_H_*/