Akonadi Contacts

freebusyeditwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <QWidget>
12 
13 namespace KContacts
14 {
15 class Addressee;
16 }
17 
18 class KUrlRequester;
19 
20 class FreeBusyEditWidget : public QWidget
21 {
22  Q_OBJECT
23 
24 public:
25  explicit FreeBusyEditWidget(QWidget *parent = nullptr);
26  ~FreeBusyEditWidget() override;
27 
28  void loadContact(const KContacts::Addressee &contact);
29  void storeContact(KContacts::Addressee &contact) const;
30 
31  void setReadOnly(bool readOnly);
32 
33 private:
34  KUrlRequester *mURL = nullptr;
35  bool mReadOnly = false;
36 };
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.