xref: /haiku/src/apps/haikudepot/packagemanagement/PackageAction.h (revision 13581b3d2a71545960b98fefebc5225b5bf29072)
1 /*
2  * Copyright 2021, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef PACKAGE_ACTION_H
6 #define PACKAGE_ACTION_H
7 
8 
9 #include <Message.h>
10 #include <Referenceable.h>
11 #include <String.h>
12 
13 
14 class PackageAction : public BReferenceable {
15 public:
16 								PackageAction(const BString& title,
17 									const BMessage& message);
18 	virtual						~PackageAction();
19 
20 	const	BString&			Title() const;
21 	const	BMessage&			Message() const;
22 
23 private:
24 			BString				fTitle;
25 			BMessage			fMessage;
26 };
27 
28 
29 typedef BReference<PackageAction> PackageActionRef;
30 
31 
32 #endif // PACKAGE_ACTION_H
33