File indexing completed on 2024-11-24 04:39:29
0001 /* 0002 This file is part of Contact Editor. 0003 0004 SPDX-FileCopyrightText: 2009 Tobias Koenig <tokoe@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #pragma once 0010 0011 #include <QWidget> 0012 0013 namespace KContacts 0014 { 0015 class Addressee; 0016 } 0017 0018 class KUrlRequester; 0019 namespace Akonadi 0020 { 0021 class FreeBusyEditWidget : public QWidget 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 explicit FreeBusyEditWidget(QWidget *parent = nullptr); 0027 ~FreeBusyEditWidget() override; 0028 0029 void loadContact(const KContacts::Addressee &contact); 0030 void storeContact(KContacts::Addressee &contact) const; 0031 0032 void setReadOnly(bool readOnly); 0033 0034 private: 0035 KUrlRequester *mURL = nullptr; 0036 }; 0037 }