31 #ifndef TBX_FILERACTION_H_
32 #define TBX_FILERACTION_H_
69 FilerAction(
const std::string &dir_name,
const std::string &objects);
81 void directory(
const std::string &dir_name);
83 void set_object(
const std::string &object_name);
99 void copy(
const std::string &target_dir,
int options = NONE);
100 void rename(
const std::string &target_dir,
int options = NONE);
101 void remove(
int options = NONE);
102 void set_access(
int set,
int leave,
int options = NONE);
104 void count(
int options = NONE);
105 void move(
const std::string &target_dir,
int options = NONE);
106 void copy_local(
const std::string &leaf_name,
int options = NONE);
107 void stamp(
int options = NONE);
108 void find(
const std::string &find_object,
int options = NONE);
void set_access(int set, int leave, int options=NONE)
Set access for object(s)
Definition: fileraction.cc:227
void add_finished_listener(FilerActionFinishedListener *listener)
Add a listener for when the filer action has finished.
Definition: fileraction.cc:397
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
int task_handle() const
Return the handle of the filer action task.
Definition: fileraction.h:79
Listener for filer action finished.
Definition: fileraction.h:43
void rename(const std::string &target_dir, int options=NONE)
Move object(s) to the target directory by renaming.
Definition: fileraction.cc:187
void set_object(const std::string &object_name)
Set the filer action to operate on a single file system object e.g.
Definition: fileraction.cc:152
Options
Options for file operations.
Definition: fileraction.h:90
void copy(const std::string &target_dir, int options=NONE)
Copy object(s) to the target directory.
Definition: fileraction.cc:167
void directory(const std::string &dir_name)
Set the directory containing the object to operate on.
Definition: fileraction.cc:120
void set_file_type(int type, int options=NONE)
Set file type for object(s)
Definition: fileraction.cc:247
void find(const std::string &find_object, int options=NONE)
Find an object and display its location.
Definition: fileraction.cc:345
void move(const std::string &target_dir, int options=NONE)
Move object(s) to the target directory by copying first then deleting.
Definition: fileraction.cc:286
void stamp(int options=NONE)
Stamp the object(s) with the current time and date.
Definition: fileraction.cc:325
void verbose(bool on)
Turn on or off verbose window while filer action is running.
Definition: fileraction.cc:379
void count(int options=NONE)
Show a count of the selected object(s)
Definition: fileraction.cc:266
Class to use the RISC OS desktop filer to perform multi-tasking file operations.
Definition: fileraction.h:64
void copy_local(const std::string &leaf_name, int options=NONE)
Copy file within the source directory.
Definition: fileraction.cc:305
Base class for all toolbox event listeners.
Definition: listener.h:34
void add_objects(const std::string &objects)
Set the objects to operate upon.
Definition: fileraction.cc:137
void remove(int options=NONE)
Remove (delete) object(s)
Definition: fileraction.cc:206
FilerAction()
Constructor with no parameters.
Definition: fileraction.cc:78
virtual void fileraction_finished()=0
Called when the filer action has finished.