From 9d11b08ad61b1f0d6d7023ce403285d8662efaed Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 4 Mar 2015 00:23:39 +0100 Subject: sync with upstream --- xbmc/addons/Repository.h | 82 ------------------------------------------------ 1 file changed, 82 deletions(-) delete mode 100644 xbmc/addons/Repository.h (limited to 'xbmc/addons/Repository.h') diff --git a/xbmc/addons/Repository.h b/xbmc/addons/Repository.h deleted file mode 100644 index 5120c38..0000000 --- a/xbmc/addons/Repository.h +++ /dev/null @@ -1,82 +0,0 @@ -#pragma once -/* - * Copyright (C) 2005-2013 Team XBMC - * http://xbmc.org - * - * This Program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2, or (at your option) - * any later version. - * - * This Program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with XBMC; see the file COPYING. If not, see - * . - * - */ - -#include "Addon.h" -#include "utils/Job.h" - -namespace ADDON -{ - class CRepository; - typedef std::shared_ptr RepositoryPtr; - class CRepository : public CAddon - { - public: - virtual AddonPtr Clone() const; - CRepository(const AddonProps& props); - CRepository(const cp_extension_t *props); - virtual ~CRepository(); - - /*! \brief Get the md5 hash for an addon. - \param the addon in question. - \return the md5 hash for the given addon, empty if non exists. - */ - std::string GetAddonHash(const AddonPtr& addon) const; - - struct DirInfo - { - DirInfo() : version("0.0.0"), compressed(false), zipped(false), hashes(false) {} - AddonVersion version; - std::string info; - std::string checksum; - std::string datadir; - bool compressed; - bool zipped; - bool hashes; - }; - - typedef std::vector DirList; - DirList m_dirs; - - static bool Parse(const DirInfo& dir, VECADDONS& addons); - static std::string FetchChecksum(const std::string& url); - - virtual void OnPostInstall(bool restart, bool update, bool modal); - virtual void OnPostUnInstall(); - - private: - CRepository(const CRepository &rhs); - }; - - class CRepositoryUpdateJob : public CJob - { - public: - CRepositoryUpdateJob(const VECADDONS& repos); - virtual ~CRepositoryUpdateJob() {} - - virtual const char *GetType() const { return "repoupdate"; }; - virtual bool DoWork(); - private: - bool GrabAddons(const RepositoryPtr& repo, VECADDONS& addons); - - VECADDONS m_repos; - }; -} - -- cgit v1.2.3