Changeset View
Changeset View
Standalone View
Standalone View
src/core/KexiSearchableModel.cpp
Show All 13 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "KexiSearchableModel.h" | 20 | #include "KexiSearchableModel.h" | ||
21 | 21 | | |||
22 | KexiSearchableModel::KexiSearchableModel() | 22 | KexiSearchableModelDeleteNotifier::KexiSearchableModelDeleteNotifier() | ||
23 | { | ||||
24 | } | ||||
25 | | ||||
26 | KexiSearchableModelDeleteNotifier::~KexiSearchableModelDeleteNotifier() | ||||
27 | { | ||||
28 | } | ||||
29 | | ||||
30 | class Q_DECL_HIDDEN KexiSearchableModel::Private | ||||
31 | { | ||||
32 | public: | ||||
33 | Private() {} | ||||
34 | | ||||
35 | KexiSearchableModelDeleteNotifier deleteNotifier; | ||||
36 | }; | ||||
37 | | ||||
38 | KexiSearchableModel::KexiSearchableModel() : d(new Private) | ||||
23 | { | 39 | { | ||
24 | } | 40 | } | ||
25 | 41 | | |||
26 | KexiSearchableModel::~KexiSearchableModel() | 42 | KexiSearchableModel::~KexiSearchableModel() | ||
27 | { | 43 | { | ||
44 | emit d->deleteNotifier.aboutToDelete(this); | ||||
45 | } | ||||
46 | | ||||
47 | const KexiSearchableModelDeleteNotifier* KexiSearchableModel::deleteNotifier() const | ||||
48 | { | ||||
49 | return &d->deleteNotifier; | ||||
28 | } | 50 | } |