2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
6 #ifndef PACKAGE_DATA_UPDATE_PROCESS_H
7 #define PACKAGE_DATA_UPDATE_PROCESS_H
10 #include "AbstractServerProcess.h"
12 #include "PackageInfo.h"
20 class PkgDataUpdateProcess
: public AbstractServerProcess
{
23 const BPath
& localFilePath
,
25 BString naturalLanguageCode
,
26 BString repositorySourceCode
,
27 const PackageList
& packages
,
28 const CategoryList
& categories
);
29 virtual ~PkgDataUpdateProcess();
34 void GetStandardMetaDataPath(BPath
& path
) const;
35 void GetStandardMetaDataJsonPath(
36 BString
& jsonPath
) const;
37 const char* LoggingName() const;
40 status_t
PopulateDataToDepots();
43 BString fNaturalLanguageCode
;
44 BString fRepositorySourceCode
;
45 const PackageList
& fPackages
;
46 const CategoryList
& fCategories
;
51 #endif // PACKAGE_DATA_UPDATE_PROCESS_H