File: fgfpicki.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 (29 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (9)
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
#ifndef _FGFPICKI_H
#define _FGFPICKI_H

// fgfpicki.h
//
// FGFilePickerInterface
//
// Defines interface to deciding what files we want to download from
// remote and erase locally. We decide based upon a directory listing
// of the remote directory and a directory listing of the local
// directory.

class FGActionList;
class FGDirListing;
class FGConnectionInterface;

class FGFilePickerInterface {
public:
  // Construct taking connection on which to do downloads
  FGFilePickerInterface(FGConnectionInterface* pConnIf);

  virtual FGActionList DecideActions(const FGDirListing& localDir,
                                     const FGDirListing& remoteDir) = 0;
protected:
  // Some actions must be performed in the context of a connection
  FGConnectionInterface* mpConnIf;
};

#endif // _FGFPICKI_H