2 * Copyright (c) 2007, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
6 * Ćukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
11 #include "PackageItem.h"
25 PackageInfo(const entry_ref
*ref
);
28 const char *GetName() { return fName
.String(); }
29 const char *GetDescription() { return fDescription
.String(); }
30 const char *GetShortDescription() { return fShortDesc
.String(); }
31 const char *GetVersion() { return fVersion
.String(); }
32 const char *GetDisclaimer() { return fDisclaimer
.String(); }
33 BMallocIO
*GetSplashScreen() { return fHasImage
? &fImage
: NULL
; }
34 int32
GetProfileCount() { return fProfiles
.CountItems(); }
35 pkg_profile
*GetProfile(int32 num
) {
36 return static_cast<pkg_profile
*>(fProfiles
.ItemAt(num
)); }
37 int32
GetScriptCount() { return fScripts
.CountItems(); }
38 PackageScript
*GetScript(int32 num
) {
39 return static_cast<PackageScript
*>(fScripts
.ItemAt(num
)); }
42 status_t
InitCheck() { return fStatus
; }
45 void _AddItem(PackageItem
*item
, uint64 size
, uint32 groups
,
46 uint32 path
, uint32 cust
);
62 BList fFiles
; // Holds all files in the package
71 pkg_profile() : items(10), space_needed(0), path_type(P_SYSTEM_PATH
) {}