source: projects/synaptic/trunk/common/rconfiguration.h @ 280

Revision 280, 1.7 KB checked in by yasumichi, 13 years ago (diff)

first import

Line 
1/* rconfiguration.h
2 *
3 * Copyright (c) 2000, 2001 Conectiva S/A
4 *               2002 Michael Vogt <mvo@debian.org>
5 *
6 * Author: Alfredo K. Kojima <kojima@conectiva.com.br>
7 *         Michael Vogt <mvo@debian.org>
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
22 * USA
23 */
24
25
26#ifndef _RCONFIGURATION_H_
27#define _RCONFIGURATION_H_
28
29#include <string>
30#include <fstream>
31
32using namespace std;
33
34class Configuration;
35
36bool RWriteConfigFile(Configuration &Conf);
37
38bool RInitConfiguration(string confFileName);
39
40bool RReadFilterData(Configuration &config);
41bool RFilterDataOutFile(ofstream &out);
42
43bool RPackageOptionsFile(ofstream &out);
44bool RPackageOptionsFile(ifstream &in);
45
46
47// get the default conf dir
48string RConfDir();
49
50// this needs to be a safe tmp dir (like /root/.synaptic/tmp) to store
51// small files like changelogs or pinfiles (preferences)
52string RTmpDir();
53
54// state dir - we store the locked packages (preferences file) here
55//             possible other stuff in the future
56string RStateDir();
57
58// we store the commit history here
59string RLogDir();
60
61#endif
Note: See TracBrowser for help on using the repository browser.