repository_infos: Enable automatic updates on the main Haiku repostiory.
[haiku.git] / src / apps / haikudepot / server / ServerIconExportUpdateProcess.h
blobf91c8068015c0a7cdc7add6fa375ed5cf7468692
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 SERVER_ICON_EXPORT_UPDATE_PROCESS_H
7 #define SERVER_ICON_EXPORT_UPDATE_PROCESS_H
10 #include "AbstractServerProcess.h"
12 #include <File.h>
13 #include <Path.h>
14 #include <String.h>
15 #include <Url.h>
18 class ServerIconExportUpdateProcess : public AbstractServerProcess {
19 public:
21 ServerIconExportUpdateProcess(
22 const BPath& localStorageDirectoryPath);
23 virtual ~ServerIconExportUpdateProcess();
25 status_t Run();
27 protected:
28 void GetStandardMetaDataPath(BPath& path) const;
29 void GetStandardMetaDataJsonPath(
30 BString& jsonPath) const;
31 const char* LoggingName() const;
34 private:
35 status_t Download(BPath& tarGzFilePath);
37 BPath fLocalStorageDirectoryPath;
41 #endif // SERVER_ICON_EXPORT_UPDATE_PROCESS_H