File indexing completed on 2024-06-23 05:49:20
0001 /* 0002 This file is part of the Kasten Framework, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef KASTEN_PERSON_P_HPP 0010 #define KASTEN_PERSON_P_HPP 0011 0012 #include "person.hpp" 0013 0014 // Qt 0015 #include <QString> 0016 #include <QIcon> 0017 0018 namespace Kasten { 0019 0020 class PersonPrivate : public QSharedData 0021 { 0022 public: 0023 PersonPrivate(const QString& name, const QIcon& faceIcon); 0024 0025 ~PersonPrivate(); 0026 0027 public: 0028 QString name() const; 0029 QIcon faceIcon() const; 0030 0031 private: 0032 QString mName; 0033 QIcon mFaceIcon; 0034 }; 0035 0036 inline PersonPrivate::PersonPrivate(const QString& name, const QIcon& faceIcon) 0037 : mName(name) 0038 , mFaceIcon(faceIcon) 0039 {} 0040 0041 inline PersonPrivate::~PersonPrivate() = default; 0042 0043 inline QString PersonPrivate::name() const { return mName; } 0044 inline QIcon PersonPrivate::faceIcon() const { return mFaceIcon; } 0045 0046 } 0047 0048 #endif