]>
cygwin.com Git - cygwin-apps/setup.git/blob - cygpackage.h
2 * Copyright (c) 2001, 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 /* This is a cygwin specific package class, that should be able to
17 * arbitrate acceess to cygwin binary packages amd cygwin source packages
20 #ifndef _CYGPACKAGE_H_
21 #define _CYGPACKAGE_H_
25 class cygpackage
:public packageversion
28 virtual String
const Name ();
29 virtual String
const Vendor_version ();
30 virtual String
const Package_version ();
31 virtual String
const Canonical_version ();
32 virtual package_status_t
Status ()
36 virtual package_type_t
Type ()
40 virtual void set_sdesc (String
const &);
41 virtual void set_ldesc (String
const &);
42 virtual String
const SDesc ()
46 virtual String
const LDesc ()
50 virtual void uninstall ();
53 /* pass the name of the package when constructing */
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 &);
60 virtual ~ cygpackage ();
61 /* TODO: we should probably return a metaclass - file name & path & size & type
62 - ie doc/script/binary
64 virtual String
const getfirstfile ();
65 virtual String
const getnextfile ();
74 char getfilenamebuffer
[_MAX_PATH
];
76 // package_stability_t stability;
77 package_status_t status
;
80 io_stream
*listdata
, *listfile
;
84 #endif /* _CYGPACKAGE_H_ */
This page took 0.038083 seconds and 5 git commands to generate.