File: fgpickregexp.h

package info (click to toggle)
ftpgrab 0.1.2r-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 376 kB
  • ctags: 335
  • sloc: cpp: 2,790; makefile: 26
file content (39 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (8)
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
#ifndef _FGPICKREGEXP_H
#define _FGPICKREGEXP_H

// fgpickregexp.h
//
// Implementation of a file picker that selects all remote files matching
// a given regular expression for which we do not have remote copies

#ifndef _FGFPICKI_H
#include "fgfpicki.h"
#endif

class FGConnectionInterface;
class FGString;

// Ah the joys of c++ forward declarations
struct re_pattern_buffer;
typedef struct re_pattern_buffer regex_t;

class FGPickRegexp : public FGFilePickerInterface {
public:
  // Must be constructed with connection interface and regexp match string
  FGPickRegexp(FGConnectionInterface* pConnIf,
               const FGString& regexp);
  virtual ~FGPickRegexp();

  virtual FGActionList DecideActions(const FGDirListing& localDir,
                                     const FGDirListing& remoteDir);

private:
  // Banned!
  FGPickRegexp(const FGPickRegexp& other);
  FGPickRegexp& operator=(const FGPickRegexp& other);

  // Internal representation of a regexp
  regex_t* mpRegExp;
};

#endif // _FGPICKREGEXP_H