File: decode.h

package info (click to toggle)
nget 0.27.1-11
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 3,172 kB
  • ctags: 2,941
  • sloc: cpp: 15,311; python: 4,075; ansic: 239; makefile: 206; sh: 184
file content (43 lines) | stat: -rw-r--r-- 1,365 bytes parent folder | download | duplicates (4)
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
42
43
/*
    decode.* - uu/yenc/etc decoding (wrapper around uulib)
    Copyright (C) 1999-2003  Matthew Mueller <donut AT dakotacom.net>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __NGET__DECODE_H__
#define __NGET__DECODE_H__

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <string>
#include <list>
#include "nget.h"
#include "dupe_file.h"
#include "cache.h"

class Decoder {
	protected:
		typedef list<pair<int,char*> > t_fnbuf_list;
		t_fnbuf_list fnbuf;
	public:
		void addpart(int partno, char *fn);//takes ownership of fn.
		int decode(const nget_options &options, const c_nntp_file_retr::ptr &fr, dupe_file_checker &flist);
		void delete_tempfiles(void);
		~Decoder();
};


#endif