2 * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3 * Copyright 2008-2009, Pier Luigi Fiorini. All Rights Reserved.
4 * Copyright 2004-2008, Michael Davidson. All Rights Reserved.
5 * Copyright 2004-2007, Mikael Eiman. All Rights Reserved.
6 * Distributed under the terms of the MIT License.
14 #include <Flattenable.h>
15 #include <Notification.h>
21 class AppUsage
: public BFlattenable
{
24 AppUsage(const char* name
,
25 const char* signature
,
28 virtual bool AllowsTypeCode(type_code code
) const;
29 virtual status_t
Flatten(void* buffer
, ssize_t numBytes
) const;
30 virtual ssize_t
FlattenedSize() const;
31 virtual bool IsFixedSize() const;
32 virtual type_code
TypeCode() const;
33 virtual status_t
Unflatten(type_code code
, const void* buffer
,
36 const char* AppName();
37 const char* Signature();
39 void SetAllowed(bool allow
);
47 #endif // _APP_USAGE_H