1/*
2 * Copyright 2013, Stephan A��mus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5#include "PackageInfoListener.h"
6
7#include <stdio.h>
8
9#include "PackageInfo.h"
10
11
12// #pragma mark - PackageInfoEvent
13
14
15PackageInfoEvent::PackageInfoEvent()
16	:
17	fPackage(),
18	fChanges(0)
19{
20}
21
22
23PackageInfoEvent::PackageInfoEvent(const PackageInfoRef& package,
24		uint32 changes)
25	:
26	fPackage(package),
27	fChanges(changes)
28{
29}
30
31
32PackageInfoEvent::PackageInfoEvent(const PackageInfoEvent& other)
33	:
34	fPackage(other.fPackage),
35	fChanges(other.fChanges)
36{
37}
38
39
40PackageInfoEvent::~PackageInfoEvent()
41{
42}
43
44
45bool
46PackageInfoEvent::operator==(const PackageInfoEvent& other)
47{
48	if (this == &other)
49		return true;
50
51	return fPackage == other.fPackage
52		&& fChanges == other.fChanges;
53}
54
55
56bool
57PackageInfoEvent::operator!=(const PackageInfoEvent& other)
58{
59	return !(*this == other);
60}
61
62
63PackageInfoEvent&
64PackageInfoEvent::operator=(const PackageInfoEvent& other)
65{
66	if (this != &other) {
67		fPackage = other.fPackage;
68		fChanges = other.fChanges;
69	}
70
71	return *this;
72}
73
74
75// #pragma mark - PackageInfoListener
76
77
78PackageInfoListener::PackageInfoListener()
79{
80}
81
82
83PackageInfoListener::~PackageInfoListener()
84{
85}
86