summaryrefslogtreecommitdiff
path: root/lib/Package.h
blob: d695ed0d5b0192d5029772af77c755e427bf219c (plain)
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
/*
* Copyright (C) 2007 Adrien Bustany <madcat@mymadcat.com>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 See MA 02111-1307, USA.
*
*/

#ifndef PACKAGE_H
#define PACKAGE_H

#include <QtCore>

#include "Info.h"

namespace PackageKit {

class Package : public QObject {

	Q_OBJECT

public:
	Package(const QString& packageId, QObject *parent = 0);
	Package(const QString& packageId, const Info::Value& info, const QString& summary, QObject *parent = 0);
	const QString id();
	const QString& name();
	const QString& version();
	const QString& arch();
	const QString& data();
	const Info::Value& info();
	const QString& summary();

	bool operator==(const Package &other) const;

private:
	QString _name, _version, _arch, _data, _summary;
	Info::Value _info;
};

}

#endif