DtkCore
DTK Core module
dobject.h
1
/*
2
* Copyright (C) 2015 ~ 2017 Deepin Technology Co., Ltd.
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef DOBJECT_H
19
#define DOBJECT_H
20
21
#include <QScopedPointer>
22
23
#include "dtkcore_global.h"
24
25
DCORE_BEGIN_NAMESPACE
26
27
#define D_DECLARE_PRIVATE(Class) Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_d_ptr),Class)
28
#define D_DECLARE_PUBLIC(Class) Q_DECLARE_PUBLIC(Class)
29
#define D_D(Class) Q_D(Class)
30
#define D_Q(Class) Q_Q(Class)
31
#define D_DC(Class) Q_D(const Class)
32
#define D_QC(Class) Q_Q(const Class)
33
#define D_PRIVATE_SLOT(Func) Q_PRIVATE_SLOT(d_func(), Func)
34
35
class
DObjectPrivate;
36
37
class
LIBDTKCORESHARED_EXPORT
DObject
38
{
39
protected
:
40
DObject
(
DObject
*parent =
nullptr
);
41
42
DObject
(
DObjectPrivate
&dd,
DObject
*parent =
nullptr
);
43
44
virtual
~DObject
();
45
46
QScopedPointer<DObjectPrivate> d_d_ptr;
47
48
Q_DISABLE_COPY(
DObject
)
49
D_DECLARE_PRIVATE(
DObject
)
50
};
51
52
DCORE_END_NAMESPACE
53
54
#endif
// DOBJECT_H
Dtk::Core::DObjectPrivate
Definition:
dobject_p.h:27
Dtk::Core::DObject
一些宏的定义.
Definition:
dobject.h:38
src
base
dobject.h
文档生成时间:2022-12-28-07:03 +00
Doxygen Version
1.9.4
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享