summaryrefslogtreecommitdiff
path: root/trunk/daemon/trashlib/trashdir.h
blob: 5612f9ba7f6a659352337774c35e76ef7285b656 (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
30
31
32
33
34
35
36
/*
 * Copyright © 2008 Ryan Lortie
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of version 3 of the GNU General Public License as
 * published by the Free Software Foundation.   
 */

#ifndef _trashdir_h_
#define _trashdir_h_

#include <gio/gio.h>

#include "trashitem.h"

typedef struct          OPAQUE_TYPE__TrashDir    TrashDir;

typedef void (*trash_dir_ui_hook) (TrashDir *dir,
                                   GFile    *directory);

TrashDir               *trash_dir_new           (TrashRoot  *root,
                                                 gboolean    watching,
                                                 gboolean    is_homedir,
                                                 const char *mount_point,
                                                 const char *format,
                                                 ...);

void                    trash_dir_free          (TrashDir   *dir);

void                    trash_dir_watch         (TrashDir   *dir);
void                    trash_dir_unwatch       (TrashDir   *dir);
void                    trash_dir_rescan        (TrashDir   *dir);

void                    trash_dir_set_ui_hook   (trash_dir_ui_hook ui_hook);

#endif /* _trashdir_h_ */