summaryrefslogtreecommitdiff
path: root/src/mover.h
blob: 03137fce9bdb159d49e8f9b22527a6c6a26c3cad (plain)
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 GGAZE_MOVER_H
#define GGAZE_MOVER_H

#include <gio/gio.h>
#include <glib.h>

G_BEGIN_DECLS

typedef struct {
   char *c_name;
   char *c_path;
} MoverDest;

typedef struct Mover Mover;

Mover *mover_new(void);
void   mover_delete(Mover *p_m);

void             mover_set_dests(Mover *p_m, const GPtrArray *p_dests);
const GPtrArray *mover_get_dests(Mover *p_m);

gboolean mover_move(Mover *p_m, GList *p_files, const MoverDest *p_dest,
                    GError **p_err);
gboolean mover_undo_last(Mover *p_m, GError **p_err);
gboolean mover_can_undo(Mover *p_m);

G_END_DECLS

#endif