* add support to storing names and texts of licenses that require
approval to repository-info git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40427 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <Archivable.h>
|
||||
#include <Entry.h>
|
||||
#include <ObjectList.h>
|
||||
#include <String.h>
|
||||
|
||||
#include <package/PackageArchitecture.h>
|
||||
@@ -37,6 +38,8 @@ public:
|
||||
const BString& Summary() const;
|
||||
uint8 Priority() const;
|
||||
BPackageArchitecture Architecture() const;
|
||||
const BObjectList<BString>& LicenseNames() const;
|
||||
const BObjectList<BString>& LicenseTexts() const;
|
||||
|
||||
void SetName(const BString& name);
|
||||
void SetOriginalBaseURL(const BString& url);
|
||||
@@ -45,6 +48,10 @@ public:
|
||||
void SetPriority(uint8 priority);
|
||||
void SetArchitecture(BPackageArchitecture arch);
|
||||
|
||||
status_t AddLicense(const BString& licenseName,
|
||||
const BString& licenseText);
|
||||
void ClearLicenses();
|
||||
|
||||
public:
|
||||
static BRepositoryInfo* Instantiate(BMessage* data);
|
||||
|
||||
@@ -56,6 +63,8 @@ public:
|
||||
static const char* kSummaryField;
|
||||
static const char* kPriorityField;
|
||||
static const char* kArchitectureField;
|
||||
static const char* kLicenseNameField;
|
||||
static const char* kLicenseTextField;
|
||||
|
||||
private:
|
||||
status_t fInitStatus;
|
||||
@@ -66,6 +75,8 @@ private:
|
||||
BString fSummary;
|
||||
uint8 fPriority;
|
||||
BPackageArchitecture fArchitecture;
|
||||
BObjectList<BString> fLicenseNames;
|
||||
BObjectList<BString> fLicenseTexts;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user