Imported Upstream version 15.21.0
[platform/upstream/libzypp.git] / zypp / Application.h
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/Application.h
10  */
11 #ifndef ZYPP_APPLICATION_H
12 #define ZYPP_APPLICATION_H
13
14 #include <iosfwd>
15
16 #include "zypp/ResObject.h"
17
18 ///////////////////////////////////////////////////////////////////
19 namespace zypp
20 {
21   DEFINE_PTR_TYPE(Application);
22
23   ///////////////////////////////////////////////////////////////////
24   /// \class Application
25   /// \brief Class representing an application (appdata.xml)
26   ///////////////////////////////////////////////////////////////////
27   class Application : public ResObject
28   {
29   public:
30     typedef Application              Self;
31     typedef ResTraits<Self>          TraitsType;
32     typedef TraitsType::PtrType      Ptr;
33     typedef TraitsType::constPtrType constPtr;
34
35   public:
36     // no attributes defined by now
37
38   protected:
39     friend Ptr make<Self>( const sat::Solvable & solvable_r );
40     /** Ctor */
41     Application( const sat::Solvable & solvable_r );
42     /** Dtor */
43     virtual ~Application();
44   };
45
46 } // namespace zypp
47 ///////////////////////////////////////////////////////////////////
48 #endif // ZYPP_APPLICATION_H