repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / server / RepositoryDataUpdateProcess.h
blob1226a2aff41d59b41ff7294161fdfe62f995ae66
1 /*
2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
6 #ifndef REPOSITORY_DATA_UPDATE_PROCESS_H
7 #define REPOSITORY_DATA_UPDATE_PROCESS_H
10 #include "AbstractServerProcess.h"
12 #include "PackageInfo.h"
14 #include <File.h>
15 #include <Path.h>
16 #include <String.h>
17 #include <Url.h>
20 class RepositoryDataUpdateProcess : public AbstractServerProcess {
21 public:
23 RepositoryDataUpdateProcess(
24 const BPath& localFilePath,
25 DepotList* depotList);
26 virtual ~RepositoryDataUpdateProcess();
28 status_t Run();
30 protected:
31 void GetStandardMetaDataPath(BPath& path) const;
32 void GetStandardMetaDataJsonPath(
33 BString& jsonPath) const;
34 const char* LoggingName() const;
36 private:
37 status_t PopulateDataToDepots();
39 BPath fLocalFilePath;
40 DepotList* fDepotList;
44 #endif // REPOSITORY_DATA_UPDATE_PROCESS_H