/
SrcPackage.h
57 lines (48 loc) · 1.85 KB
/
SrcPackage.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*---------------------------------------------------------------------\
| ____ _ __ __ ___ |
| |__ / \ / / . \ . \ |
| / / \ V /| _/ _/ |
| / /__ | | | | | | |
| /_____||_| |_| |_| |
| |
\---------------------------------------------------------------------*/
/** \file zypp/SrcPackage.h
*
*/
#ifndef ZYPP_SRCPACKAGE_H
#define ZYPP_SRCPACKAGE_H
#include "zypp/ResObject.h"
///////////////////////////////////////////////////////////////////
namespace zypp
{ /////////////////////////////////////////////////////////////////
DEFINE_PTR_TYPE(SrcPackage);
///////////////////////////////////////////////////////////////////
//
// CLASS NAME : SrcPackage
//
/** SrcPackage interface.
*/
class SrcPackage : public ResObject
{
public:
typedef SrcPackage Self;
typedef ResTraits<Self> TraitsType;
typedef TraitsType::PtrType Ptr;
typedef TraitsType::constPtrType constPtr;
public:
/** The type of the source rpm ("src" or "nosrc"). */
std::string sourcePkgType() const;
/** location of resolvable in repo */
OnMediaLocation location() const;
protected:
friend Ptr make<Self>( const sat::Solvable & solvable_r );
/** Ctor */
SrcPackage( const sat::Solvable & solvable_r );
/** Dtor */
virtual ~SrcPackage();
};
///////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
#endif // ZYPP_SRCPACKAGE_H