xref: /haiku/src/apps/haikudepot/server/PopulatePkgChangelogFromServerProcess.h (revision eea5774f46bba925156498abf9cb1a1165647bf7)
1 /*
2  * Copyright 2024, Andrew Lindesay <apl@lindesay.co.nz>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4 
5  */
6 #ifndef POPULATE_PKG_CHANGELOG_FROM_SERVER_PROCESS__H
7 #define POPULATE_PKG_CHANGELOG_FROM_SERVER_PROCESS__H
8 
9 
10 #include "AbstractProcess.h"
11 
12 #include "Model.h"
13 #include "PackageInfo.h"
14 
15 #include <File.h>
16 #include <Path.h>
17 #include <String.h>
18 #include <Url.h>
19 
20 #include <package/RepositoryCache.h>
21 
22 
23 class PkgDataLoadState;
24 
25 
26 /*!	This process will take the data from the locally stored repositories (HPKR)
27 	and will extract the packages.  The packages are then loaded into the
28 	HaikuDepot 'Model'.
29 */
30 
31 class PopulatePkgChangelogFromServerProcess : public AbstractProcess
32 {
33 public:
34 								PopulatePkgChangelogFromServerProcess(PackageInfoRef packageInfo,
35 									Model *model);
36 	virtual						~PopulatePkgChangelogFromServerProcess();
37 
38 			const char*			Name() const;
39 			const char*			Description() const;
40 
41 protected:
42 	virtual status_t			RunInternal();
43 
44 private:
45 			Model*				fModel;
46 			PackageInfoRef		fPackageInfo;
47 };
48 
49 #endif // POPULATE_PKG_CHANGELOG_FROM_SERVER_PROCESS__H
50