Incidenceeditor

resourcemanagement.h
1/*
2 * SPDX-FileCopyrightText: 2014 Sandro Knauß <knauss@kolabsys.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later WITH Qt-Commercial-exception-1.0
5 */
6
7#pragma once
8
9#include "incidenceeditor_export.h"
10
11#include <KLDAPCore/LdapClient>
12
13#include "resourceitem.h"
14#include <CalendarSupport/FreeBusyCalendar>
15
16#include <EventViews/ViewCalendar>
17
18#include <QDialog>
19
20class Ui_resourceManagement;
21
23
24namespace EventViews
25{
26class AgendaView;
27}
28
29namespace IncidenceEditorNG
30{
31/**
32 * @brief The ResourceManagement class
33 */
34class INCIDENCEEDITOR_EXPORT ResourceManagement : public QDialog
35{
36 Q_OBJECT
37public:
38 explicit ResourceManagement(QWidget *parent = nullptr);
39 ~ResourceManagement() override;
40
41 [[nodiscard]] ResourceItem::Ptr selectedItem() const;
42
43public Q_SLOTS:
44 void slotDateChanged(const QDate &start, const QDate &end);
45
46private:
47 /* Shows the details of a resource
48 *
49 */
50 INCIDENCEEDITOR_NO_EXPORT void showDetails(const KLDAPCore::LdapObject &, const KLDAPCore::LdapClient &client);
51
52 QItemSelectionModel *selectionModel = nullptr;
53
54 /* A new searchString is entered
55 *
56 */
57 INCIDENCEEDITOR_NO_EXPORT void slotStartSearch(const QString &);
58
59 /* A detail view is requested
60 *
61 */
62 INCIDENCEEDITOR_NO_EXPORT void slotShowDetails(const QModelIndex &current);
63
64 /**
65 * The Owner search is done
66 */
67 INCIDENCEEDITOR_NO_EXPORT void slotOwnerSearchFinished();
68
69 INCIDENCEEDITOR_NO_EXPORT void slotLayoutChanged();
70
71 INCIDENCEEDITOR_NO_EXPORT void readConfig();
72 INCIDENCEEDITOR_NO_EXPORT void writeConfig();
73 CalendarSupport::FreeBusyItemModel *mModel = nullptr;
74 CalendarSupport::FreeBusyCalendar mFreebusyCalendar;
75 ResourceItem::Ptr mOwnerItem;
76 ResourceItem::Ptr mSelectedItem;
77 EventViews::ViewCalendar::Ptr mFbCalendar;
78 Ui_resourceManagement *mUi = nullptr;
80 EventViews::AgendaView *mAgendaView = nullptr;
81};
82}
The ResourceManagement class.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.