29#include "utility/event/event.hpp"
31namespace utility::event
56 std::shared_ptr<Event>
create(
void)
const override;
63 std::shared_ptr<FileDropEvent>
createTyped(
void)
const;
67 std::vector<std::string> _paths {};
91 const std::vector<std::string> &
getPaths(
void)
const noexcept;
97 std::size_t
getCount(
void)
const noexcept;
Abstract factory interface for creating events.
Base class for events in the event system.
Factory for creating FileDropEvent instances.
std::shared_ptr< FileDropEvent > createTyped(void) const
Create a strongly-typed FileDropEvent.
std::shared_ptr< Event > create(void) const override
Create a FileDropEvent as a base Event pointer.
~FileDropEvent(void) override
Default destructor.
std::size_t getCount(void) const noexcept
Get the number of dropped items.
FileDropEvent & setPaths(const std::vector< std::string > &paths)
Set the paths of dropped files/directories.
const std::vector< std::string > & getPaths(void) const noexcept
Get the paths of dropped files/directories.
FileDropEvent(void)
Default constructor.