b11af0d27cb5f49ccbbdb9ad05b07f8725aece3b
[platform/upstream/libzypp.git] / zypp / repo / cached / MessageImpl.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9
10 #ifndef zypp_repo_cached_MessageImpl_H
11 #define zypp_repo_cached_MessageImpl_H
12
13 #include "zypp/detail/MessageImpl.h"
14 #include "zypp/repo/cached/RepoImpl.h"
15
16 ///////////////////////////////////////////////////////////////////
17 namespace zypp
18 { /////////////////////////////////////////////////////////////////
19 namespace repo
20 { /////////////////////////////////////////////////////////////////
21 namespace cached
22 { /////////////////////////////////////////////////////////////////
23
24   ///////////////////////////////////////////////////////////////////
25   //
26   //        CLASS NAME : MessageImpl
27   //
28   class MessageImpl : public detail::MessageImplIf
29   {
30   public:
31
32     MessageImpl( const data::RecordId &id, repo::cached::RepoImpl::Ptr repository_r );
33
34     virtual TranslatedText summary() const;
35     virtual TranslatedText description() const;
36     virtual TranslatedText insnotify() const;
37     virtual TranslatedText delnotify() const;
38     virtual TranslatedText licenseToConfirm() const;
39     virtual Vendor vendor() const;
40     virtual ByteCount size() const;
41     virtual bool installOnly() const;
42     virtual Date buildtime() const;
43     virtual Date installtime() const;
44
45     // MESSAGE
46     virtual TranslatedText text() const;
47     virtual Patch::constPtr patch() const;
48
49     virtual Repository repository() const;
50
51   private:
52     repo::cached::RepoImpl::Ptr _repository;
53     data::RecordId _id;
54   };
55   /////////////////////////////////////////////////////////////////
56 } // namespace cached
57 } // namespace repository
58 } // namespace zypp
59 ///////////////////////////////////////////////////////////////////
60 #endif // ZMD_BACKEND_DBSOURCE_DBPACKAGEIMPL_H
61