PCManFM-Qt
Main Page
Classes
Files
File List
All
Classes
libfm-qt
dnddest.h
1
/*
2
* <one line to give the program's name and a brief idea of what it does.>
3
* Copyright (C) 2014 <copyright holder> <email>
4
*
5
* This program 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 2 of the License, or
8
* (at your option) any later version.
9
*
10
* This program 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 along
16
* with this program; if not, write to the Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
*/
20
21
#ifndef FM_DNDDEST_H
22
#define FM_DNDDEST_H
23
24
#include <QMimeData>
25
#include "path.h"
26
27
namespace
Fm {
28
29
class
DndDest
{
30
public
:
31
DndDest
();
32
~
DndDest
();
33
34
void
setDestPath(FmPath* dest) {
35
destPath_ = dest;
36
}
37
38
const
Path
& destPath() {
39
return
destPath_;
40
}
41
42
bool
isSupported(
const
QMimeData* data);
43
bool
isSupported(QString mimeType);
44
45
bool
dropMimeData(
const
QMimeData* data, Qt::DropAction action);
46
47
private
:
48
Path
destPath_;
49
};
50
51
}
52
53
#endif // FM_DNDDEST_H
Fm::DndDest
Definition:
dnddest.h:29
Fm::Path
Definition:
path.h:30
Generated on Wed Jun 15 2016 13:19:23 for PCManFM-Qt by
1.8.5