Debian Codegraph @

src/private/dfiledragserver_p.h

raw
1 // SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-or-later
4
5 #ifndef DFILEDRAGSERVER_P_H
6 #define DFILEDRAGSERVER_P_H
7
8 #include "dfiledragserver.h"
9
10 #include <DObjectPrivate>
11
12 #include <QMap>
13 #include <QUuid>
14
15 DGUI_BEGIN_NAMESPACE
16
17 class DDndSourceInterface;
18 class DFileDragServer;
19
20 class DFileDragServerPrivate : public DCORE_NAMESPACE::DObjectPrivate
21 {
22 QMap<QString, QVariant> data;
23 QUuid uuid;
24
25 DFileDragServerPrivate(DFileDragServer *q);
26 ~DFileDragServerPrivate();
27
28 void writeMimeData(QMimeData *dest);
29
30 static DDndSourceInterface *dbusif;
31 static int refcnt;
32 static QHash<QString, DFileDragServer*> servermap;
33
34 D_DECLARE_PUBLIC(DFileDragServer)
35 friend class DDndSourceInterface;
36 friend class DFileDrag;
37 };
38 DGUI_END_NAMESPACE
39
40 #endif // DFILEDRAGSERVER_P_H