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"
24 virtual ~IniDBBuilder() {};
25 virtual void buildTimestamp (const std::string
& ) = 0;
26 virtual void buildVersion (const std::string
& ) = 0;
27 virtual void buildPackage (const std::string
& ) = 0;
28 virtual void buildPackageVersion (const std::string
& ) = 0;
29 virtual void buildPackageSDesc (const std::string
& ) = 0;
30 virtual void buildPackageLDesc (const std::string
& ) = 0;
31 virtual void buildPackageInstall (const std::string
& ) = 0;
32 virtual void buildPackageSource (const std::string
&, const std::string
&) = 0;
33 virtual void buildSourceFile (unsigned char const[16],
34 const std::string
&, const std::string
&) = 0;
35 virtual void buildPackageTrust (int) = 0;
36 virtual void buildPackageCategory (const std::string
& ) = 0;
37 virtual void buildBeginDepends () = 0;
38 virtual void buildBeginPreDepends () = 0;
39 virtual void buildPriority (const std::string
& ) = 0;
40 virtual void buildInstalledSize (const std::string
& ) = 0;
41 virtual void buildMaintainer (const std::string
& ) = 0;
42 virtual void buildArchitecture (const std::string
& ) = 0;
43 virtual void buildInstallSize (const std::string
& ) = 0;
44 virtual void buildInstallSHA512 (unsigned char const[64]) = 0;
45 virtual void buildSourceSHA512 (unsigned char const[64]) = 0;
46 virtual void buildInstallMD5 (unsigned char const[16]) = 0;
47 virtual void buildSourceMD5 (unsigned char const[16]) = 0;
48 virtual void buildBeginRecommends () = 0;
49 virtual void buildBeginSuggests () = 0;
50 virtual void buildBeginReplaces () = 0;
51 virtual void buildBeginConflicts () = 0;
52 virtual void buildBeginProvides () = 0;
53 virtual void buildBeginBuildDepends () = 0;
54 virtual void buildBeginBinary () = 0;
55 virtual void buildDescription (const std::string
& ) = 0;
56 virtual void buildSourceName (const std::string
& ) = 0;
57 virtual void buildSourceNameVersion (const std::string
& ) = 0;
58 virtual void buildPackageListAndNode () = 0;
59 virtual void buildPackageListOrNode (const std::string
& ) = 0;
60 virtual void buildPackageListOperator (PackageSpecification::_operators
const &) = 0;
61 virtual void buildPackageListOperatorVersion (const std::string
& ) = 0;
62 virtual void buildMessage (const std::string
&, const std::string
&) = 0;
63 virtual void autodep (const std::string
&, const std::string
&) = 0;
64 void set_arch (const std::string
& a
) { arch
= a
; }
65 void set_release (const std::string
& rel
) { release
= rel
; }
67 unsigned int timestamp
;
71 std::string parse_mirror
;
74 #endif /* SETUP_INIDBBUILDER_H */