text: /*
   * Copyright 2020 - 2021 Maximilian Voss (maximilian@voss.rocks)
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  #ifndef _DOWNLOAD_DOWNLOADER_H
  #define _DOWNLOAD_DOWNLOADER_H
  
  #include "../application.h"
  
  void downloader_init(app_t *app);
  
  void downloader_destroy(app_t *app);
  
  uint8_t downloader_addToQueue(void *appPtr, rl_system *system, char *title, char *url, char *data, char *filename,
                                chttp_method method);
  
  void downloader_cancel(app_t *app, acll_t *element);
  
  uint8_t downloader_isActive(app_t *app);
  
  void downloader_cancelAllDownloads(app_t *app);
  
  #endif