2 * Copyright 2013-2014, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
5 #ifndef MESSAGE_PACKAGE_LISTENER_H
6 #define MESSAGE_PACKAGE_LISTENER_H
9 #include "PackageInfoListener.h"
13 MSG_UPDATE_PACKAGE
= 'updp'
19 class MessagePackageListener
: public PackageInfoListener
{
21 MessagePackageListener(BHandler
* target
);
22 virtual ~MessagePackageListener();
24 virtual void PackageChanged(const PackageInfoEvent
& event
);
26 void SetChangesMask(uint32 mask
);
34 class OnePackageMessagePackageListener
: public MessagePackageListener
{
36 OnePackageMessagePackageListener(
38 virtual ~OnePackageMessagePackageListener();
40 void SetPackage(const PackageInfoRef
& package
);
41 const PackageInfoRef
& Package() const;
44 PackageInfoRef fPackage
;
48 #endif // MESSAGE_PACKAGE_LISTENER_H