File: conf.h

package info (click to toggle)
qftp 0.97-1.1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 204 kB
  • ctags: 168
  • sloc: cpp: 1,336; makefile: 61
file content (41 lines) | stat: -rw-r--r-- 644 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
 *  qftp
 *  Copyright (C) 1997,1998 Peter Strand
 *  Distributed under the GNU Pulic Licence
 */

#ifndef _CONF_H_
#define _CONF_H_

struct config {
	char bg;	// b
	char proc;	// z
	char force;	// f
	char cont;	// c
	char longl;	// l
	char anon;	// a
	char retry;
	char retrsl;	// s
	char user[256];	// u
	char noinf;	// n
	char rec;	// r
	char quiet;	// q
};


class Conf {
public:
	struct config opts;
	Conf();
	Conf(Conf &cf);
	Conf(Conf &cf, int argc, char *argv[], char *valid);
	Parse(Conf &cf, int argc, char *argv[], char *valid);
	Parse(int fd);
	void set(char c);
	void print();
	void setdef();
	struct config *Get();

};

#endif