KeyRingReport: New infoVerify callback showing the trusted key that will be used
[platform/upstream/libzypp.git] / zypp / KeyContext.h
1 #ifndef KEYCONTEXT_H_
2 #define KEYCONTEXT_H_
3
4 #include "zypp/RepoInfo.h"
5
6 namespace zypp {
7
8   struct KeyContext
9   {
10   public:
11     /** Is the context unknown? */
12     bool empty() const { return _repoInfo.alias().empty(); }
13     
14   public:
15     const RepoInfo repoInfo() const { return _repoInfo; }
16     void setRepoInfo(const RepoInfo & repoinfo) { _repoInfo = repoinfo; }
17   
18   private:
19     RepoInfo _repoInfo;
20   };
21
22 }
23
24 #endif /*KEYCONTEXT_H_*/