1 /*
2  *  Copyright (C) 2018 Roman Chistokhodov <freeslave93@gmail.com>
3  *  This file is part of Phototonic Image Viewer.
4  *
5  *  Phototonic is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 3 of the License, or
8  *  (at your option) any later version.
9  *
10  *  Phototonic is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with Phototonic.  If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef TRASHCAN_H
20 #define TRASHCAN_H
21 
22 #include <QString>
23 
24 namespace Trash {
25     typedef enum
26     {
27         Success,
28         Error,
29         NeedsUserInput
30     } Result;
31 
32     typedef enum
33     {
34         NoOptions = 0,
35         ForceDeletionToHomeTrash = 1
36     } Options;
37 
38     Trash::Result moveToTrash(const QString &filePath, QString &error, Options trashOptions = NoOptions);
39 }
40 
41 #endif // TRASHCAN_H
42