Files
cdesktop/cde/lib/tt/bin/shell/mover.h
Jon Trulson 31fec7edb5 tt: Fixup tt build for new includes locations
Some files were trying to access the global includes directy in the
build area with things like #include <api/c/tt_c.h>, which is now
wrong.  Se we fix all of those up.  tt_c.h and tttk.h are now global,
so we no longer need to root around various build dirs to find them.

TT builds again.
2019-10-25 17:37:58 -06:00

71 lines
2.1 KiB
C++

/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
/*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
/*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
/*%% (c) Copyright 1993, 1994 Novell, Inc. */
/*%% $XConsortium: mover.h /main/3 1995/10/20 16:36:24 rswiston $ */
/*
* mover.h - Interface to mover, an LS/TT-aware mv(1).
*
* Copyright (c) 1990 by Sun Microsystems, Inc.
*
*/
#ifndef _MOVER_H
#define _MOVER_H
#include <Tt/tt_c.h>
#include <util/tt_string.h>
class mover : public _Tt_object {
public:
mover( char *arg0 );
virtual ~mover();
int do_mv();
Tt_status do_ttmv();
bool_t can_mv( _Tt_string from_path );
Tt_status open_tt();
Tt_status close_tt();
void parse_args( int argc, char **argv );
void usage( FILE *fs = stderr ) const;
bool_t should_mv() { return _should_mv; }
bool_t force() { return _force; }
bool_t tt_opened() { return _tt_opened; }
private:
_Tt_string _process_name;
_Tt_string _prog_name;
_Tt_string _process_id;
_Tt_string_list_ptr _args;
bool_t _should_mv;
bool_t _force;
bool_t _tt_opened;
_Tt_string_list_ptr _from_paths;
_Tt_string _to_path;
bool_t _to_path_is_dir;
};
#endif /* _MOVER_H */