File: flist.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 (34 lines) | stat: -rw-r--r-- 529 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
/*
 *  qftp
 *  Copyright (C) 1997,1998 Peter Strand
 *  Distributed under the GNU Pulic Licence
 */

#ifndef _FLIST_H_
#define _FLIST_H_

class FileInf {
 public:
	char *name;
	char *date;
	long size;
	char type;
	int perm;
	struct FileInf *next;
	FileInf &operator=(FileInf &fi);
};

class FileList {
public:
	FileInf *first, *last, *cur;
	FileList();
	FileList &operator=(FileList &fl);
	void Flush();
	void AddFile(FileInf &file);
	void Reset();
	int GetFile(FileInf &file);
	int GetFileAt(FileInf &file, int n);
};


#endif