/
detailsinfo.h
60 lines (47 loc) · 1.27 KB
/
detailsinfo.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
58
59
60
#ifndef DETAILSINFO_H
#define DETAILSINFO_H
#include <QObject>
#include "transaction.h"
#include "packageinfo.h"
class DetailsInfo
{
public:
DetailsInfo(QSharedPointer<PackageInfo> p, const QString& license, const QString& group, const QString& detail, const QString& url, qulonglong size);
/**
* Destructor
*/
~DetailsInfo();
/**
* Returns the package these details are linked to
* \return the Package object to which these details are related
*/
QSharedPointer<PackageInfo> package() const;
/**
* Returns the package's license
*/
QString license() const;
/**
* Returns the package's group (for example Multimedia, Editors...)
*/
PackageKit::Transaction::Group group() const;
/**
* Returns the package's long description
*/
QString description() const;
/**
* Returns the software's homepage url
*/
QString url() const;
/**
* Returns the package's size
*/
qulonglong size() const;
private:
QSharedPointer<PackageInfo> m_package;
QString m_license;
PackageKit::Transaction::Group m_group;
QString m_description;
QString m_url;
uint m_size;
};
#endif // DETAILSINFO_H