CARDS 2.4.140
Package manager for the NuTyX GNU/Linux distribution
repodwl.h
1//
2// repodwl.h
3//
4// Copyright (c) 2002 - 2005 by Johannes Winkelmann jw at tks6 dot net
5// Copyright (c) 2014 - 2021 by NuTyX team (http://nutyx.org)
6//
7// This program is free software; you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation; either version 2 of the License, or
10// (at your option) any later version.
11//
12// This program is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16//
17// You should have received a copy of the GNU General Public License
18// along with this program; if not, write to the Free Software
19// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
20// USA.
21//
22#ifndef REPODWL_H
23#define REPODWL_H
24
25#include "file_download.h"
26#include "pkgrepo.h"
27
28class Repodwl: public Pkgrepo {
29public:
30 Repodwl(const char *fileName);
41 void downloadPortsPkgRepo(const std::string& packageName);
42
53 void downloadPackageFileName(const std::string& packageName);
54 bool checkBinaryExist(const std::string& packageName);
55 std::string getPackageFileName(const std::string& packageName);
56 std::string getPackageFileNameSignature(const std::string& packageName);
57
58 void setPackageFileName(const std::string& packageFileName);
59
60private:
61 std::string m_packageFileName;
62 std::string m_packageFileNameSignature;
63};
64#endif /* REPODWL_H */
65// vim:set ts=2 :
Definition: libcards.h:944
Definition: libcards.h:1128
void downloadPortsPkgRepo(const std::string &packageName)
void downloadPackageFileName(const std::string &packageName)