File indexing completed on 2024-04-28 11:43:33
0001 /* 0002 SPDX-FileCopyrightText: 2020 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "entrywrapper.h" 0008 0009 namespace KNSCore 0010 { 0011 class EntryWrapperPrivate 0012 { 0013 public: 0014 EntryWrapperPrivate(const EntryInternal &entry) 0015 : entry(entry) 0016 { 0017 } 0018 const EntryInternal entry; 0019 }; 0020 } 0021 0022 KNSCore::EntryWrapper::EntryWrapper(const KNSCore::EntryInternal &entry, QObject *parent) 0023 : QObject(parent) 0024 , d(new EntryWrapperPrivate(entry)) 0025 { 0026 } 0027 0028 KNSCore::EntryWrapper::~EntryWrapper() = default; 0029 0030 KNSCore::EntryInternal KNSCore::EntryWrapper::entry() const 0031 { 0032 return d->entry; 0033 } 0034 0035 #include "moc_entrywrapper.cpp"