2 * Copyright (c) 2002, Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <rbtcollins@hotmail.com>
16 #ifndef SETUP_INIDBBUILDER_H
17 #define SETUP_INIDBBUILDER_H
19 #include "PackageSpecification.h"
20 #include "PackageTrust.h"
22 enum class hashType
{ none
, md5
, sha512
};
27 virtual ~IniDBBuilder() {};
29 virtual void buildTimestamp (const std::string
& ) = 0;
30 virtual void buildVersion (const std::string
& ) = 0;
31 virtual const std::string
buildMinimumVersion(const std::string
&) = 0;
32 virtual void buildPackage (const std::string
& ) = 0;
33 virtual void buildPackageVersion (const std::string
& ) = 0;
34 virtual void buildPackageSDesc (const std::string
& ) = 0;
35 virtual void buildPackageLDesc (const std::string
& ) = 0;
36 virtual void buildPackageInstall (const std::string
&, const std::string
&,
37 char *, hashType
) = 0;
38 virtual void buildPackageSource (const std::string
&, const std::string
&,
39 char *, hashType
) = 0;
40 virtual void buildPackageTrust (trusts
) = 0;
41 virtual void buildPackageCategory (const std::string
& ) = 0;
42 virtual void buildBeginDepends () = 0;
43 virtual void buildBeginBuildDepends () = 0;
44 virtual void buildBeginObsoletes () = 0;
45 virtual void buildBeginProvides () = 0;
46 virtual void buildBeginConflicts () = 0;
47 virtual void buildMessage (const std::string
&, const std::string
&) = 0;
48 virtual void buildSourceName (const std::string
& ) = 0;
49 virtual void buildSourceNameVersion (const std::string
& ) = 0;
50 virtual void buildPackageListNode (const std::string
& ) = 0;
51 virtual void buildPackageListOperator (PackageSpecification::_operators
const &) = 0;
52 virtual void buildPackageListOperatorVersion (const std::string
& ) = 0;
53 virtual void buildPackageReplaceVersionsList (const std::string
& ) = 0;
54 virtual void set_arch (const std::string
& a
) = 0;
55 virtual void set_release (const std::string
& rel
) = 0;
58 #endif /* SETUP_INIDBBUILDER_H */