]> cygwin.com Git - cygwin-apps/setup.git/blame - cygpackage.h
2002-04-23 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / cygpackage.h
CommitLineData
7939f6d1
RC
1/*
2 * Copyright (c) 2001, Robert Collins.
3 *
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.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Robert Collins <rbtcollins@hotmail.com>
13 *
14 */
15
16/* This is a cygwin specific package class, that should be able to
17 * arbitrate acceess to cygwin binary packages amd cygwin source packages
18 */
19
20#ifndef _CYGPACKAGE_H_
21#define _CYGPACKAGE_H_
22
3c054baf
RC
23#include "String++.h"
24
fa0c0d10 25class cygpackage:public packageversion
7939f6d1
RC
26{
27public:
3c054baf
RC
28 virtual String const Name ();
29 virtual String const Vendor_version ();
30 virtual String const Package_version ();
31 virtual String const Canonical_version ();
7b606ae5
RC
32 virtual package_status_t Status ()
33 {
34 return status;
35 };
36 virtual package_type_t Type ()
37 {
38 return type;
39 };
3c054baf
RC
40 virtual void set_sdesc (String const &);
41 virtual void set_ldesc (String const &);
42 virtual String const SDesc ()
d4a4527d 43 {
bb849dbd
RC
44 return sdesc;
45 };
3c054baf 46 virtual String const LDesc ()
bb849dbd
RC
47 {
48 return ldesc;
d4a4527d 49 };
fa0c0d10
RC
50 virtual void uninstall ();
51
7939f6d1
RC
52
53 /* pass the name of the package when constructing */
3c054baf
RC
54 cygpackage (String const &);
55 cygpackage (String const &, String const &, size_t const, String const &,
56 package_status_t const, package_type_t const);
57 void set_canonical_version (String const &);
7b606ae5
RC
58
59
60 virtual ~ cygpackage ();
7939f6d1
RC
61 /* TODO: we should probably return a metaclass - file name & path & size & type
62 - ie doc/script/binary
63 */
3c054baf
RC
64 virtual String const getfirstfile ();
65 virtual String const getnextfile ();
7939f6d1
RC
66private:
67 void destroy ();
3c054baf
RC
68 String name;
69 String vendor;
70 String packagev;
71 String canonical;
72 String fn;
73 String sdesc, ldesc;
bb849dbd 74 char getfilenamebuffer[_MAX_PATH];
7b606ae5 75
7939f6d1
RC
76// package_stability_t stability;
77 package_status_t status;
78 package_type_t type;
7b606ae5 79
7939f6d1
RC
80 io_stream *listdata, *listfile;
81 size_t filesize;
82};
83
84#endif /* _CYGPACKAGE_H_ */
This page took 0.031793 seconds and 5 git commands to generate.