File indexing completed on 2024-12-22 05:15:17
0001 /* 0002 SPDX-FileCopyrightText: 2014-2015 Eike Hein <hein@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "abstractentry.h" 0008 0009 #include <QDebug> 0010 0011 AbstractEntry::AbstractEntry(AbstractModel *owner) 0012 : m_owner(owner) 0013 { 0014 } 0015 0016 AbstractEntry::~AbstractEntry() 0017 { 0018 } 0019 0020 AbstractModel *AbstractEntry::owner() const 0021 { 0022 return m_owner; 0023 } 0024 0025 bool AbstractEntry::isValid() const 0026 { 0027 return true; 0028 } 0029 0030 QString AbstractEntry::icon() const 0031 { 0032 return QString(); 0033 } 0034 0035 QString AbstractEntry::name() const 0036 { 0037 return QString(); 0038 } 0039 0040 QString AbstractEntry::group() const 0041 { 0042 return QString(); 0043 } 0044 0045 QString AbstractEntry::description() const 0046 { 0047 return QString(); 0048 } 0049 0050 QString AbstractEntry::id() const 0051 { 0052 return QString(); 0053 } 0054 0055 QUrl AbstractEntry::url() const 0056 { 0057 return QUrl(); 0058 } 0059 0060 bool AbstractEntry::hasChildren() const 0061 { 0062 return false; 0063 } 0064 0065 AbstractModel *AbstractEntry::childModel() const 0066 { 0067 return nullptr; 0068 } 0069 0070 bool AbstractEntry::hasActions() const 0071 { 0072 return false; 0073 } 0074 0075 QVariantList AbstractEntry::actions() const 0076 { 0077 return QVariantList(); 0078 } 0079 0080 bool AbstractEntry::run(const QString &actionId, const QVariant &argument) 0081 { 0082 Q_UNUSED(actionId) 0083 Q_UNUSED(argument) 0084 0085 return false; 0086 } 0087 0088 AbstractGroupEntry::AbstractGroupEntry(AbstractModel *owner) 0089 : AbstractEntry(owner) 0090 { 0091 } 0092 0093 SeparatorEntry::SeparatorEntry(AbstractModel *owner) 0094 : AbstractEntry(owner) 0095 { 0096 }