Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / tt / bin / shell / mover.h
1 /*%%  (c) Copyright 1993, 1994 Hewlett-Packard Company                   */
2 /*%%  (c) Copyright 1993, 1994 International Business Machines Corp.     */
3 /*%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.                    */
4 /*%%  (c) Copyright 1993, 1994 Novell, Inc.                              */
5 /*%%  $XConsortium: mover.h /main/3 1995/10/20 16:36:24 rswiston $                                                       */
6 /*
7  * mover.h - Interface to mover, an LS/TT-aware mv(1).
8  *
9  * Copyright (c) 1990 by Sun Microsystems, Inc.
10  *
11  */
12
13 #ifndef _MOVER_H
14 #define _MOVER_H
15
16 #include <api/c/tt_c.h>
17 #include <util/tt_string.h>
18
19 class mover : public _Tt_object {
20     public:
21         mover( char *arg0 );
22         virtual ~mover();
23
24         int                     do_mv();
25         Tt_status               do_ttmv();
26         bool_t                  can_mv( _Tt_string from_path );
27         Tt_status               open_tt();
28         Tt_status               close_tt();
29         void                    parse_args( int argc, char **argv );
30         void                    usage( FILE *fs = stderr ) const;
31         bool_t                  should_mv() { return _should_mv; }
32         bool_t                  force() { return _force; }
33         bool_t                  tt_opened() { return _tt_opened; }
34
35     private:
36         _Tt_string              _process_name;
37         _Tt_string              _prog_name;
38         _Tt_string              _process_id;
39         _Tt_string_list_ptr     _args;
40         bool_t                  _should_mv;
41         bool_t                  _force;
42         bool_t                  _tt_opened;
43         _Tt_string_list_ptr     _from_paths;
44         _Tt_string              _to_path;
45         bool_t                  _to_path_is_dir;
46 };
47
48 #endif /* _MOVER_H */