1 /* 2 * Copyright 2017, Andrew Lindesay <apl@lindesay.co.nz>. 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 6 #ifndef SERVER_ICON_EXPORT_UPDATE_PROCESS_H 7 #define SERVER_ICON_EXPORT_UPDATE_PROCESS_H 8 9 10 #include "AbstractServerProcess.h" 11 12 #include <File.h> 13 #include <Path.h> 14 #include <String.h> 15 #include <Url.h> 16 17 18 class ServerIconExportUpdateProcess : public AbstractServerProcess { 19 public: 20 21 ServerIconExportUpdateProcess( 22 const BPath& localStorageDirectoryPath); 23 virtual ~ServerIconExportUpdateProcess(); 24 25 status_t Run(); 26 27 protected: 28 void GetStandardMetaDataPath(BPath& path) const; 29 void GetStandardMetaDataJsonPath( 30 BString& jsonPath) const; 31 const char* LoggingName() const; 32 33 34 private: 35 status_t Download(BPath& tarGzFilePath); 36 37 BPath fLocalStorageDirectoryPath; 38 39 }; 40 41 #endif // SERVER_ICON_EXPORT_UPDATE_PROCESS_H 42