NAP
calendarevent.h
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2  * License, v. 2.0. If a copy of the MPL was not distributed with this
3  * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4 
5 #pragma once
6 
7 // Local includes
8 #include "calendaritem.h"
9 
10 // External includes
11 #include <nap/event.h>
12 
13 namespace nap
14 {
18  class NAPAPI CalendarEvent : public Event
19  {
20  RTTI_ENABLE(Event)
21  public:
26  mItem(&item) { }
27 
31  const nap::CalendarItem& getItem() const { return *mItem; }
32 
33  private:
34  const nap::CalendarItem* mItem = nullptr;
35  };
36 }
nap::CalendarEvent::getItem
const nap::CalendarItem & getItem() const
Definition: calendarevent.h:31
nap::CalendarEvent
Definition: calendarevent.h:18
nap::Event
Definition: event.h:17
nap::CalendarEvent::CalendarEvent
CalendarEvent(const nap::CalendarItem &item)
Definition: calendarevent.h:25
nap::CalendarItem
Definition: calendaritem.h:22
nap
Definition: templateapp.h:17