#pragma once #include "ExplorerItem.g.h" namespace winrt::PowerRenameUILib::implementation { struct ExplorerItem : ExplorerItemT { enum class ExplorerItemType { Folder = 0, File = 1 }; ExplorerItem() = default; ExplorerItem(int32_t id, hstring const& original, hstring const& renamed, int32_t type, uint32_t depth, bool checked); int32_t Id(); hstring IdStr(); hstring Original(); void Original(hstring const& value); hstring Renamed(); void Renamed(hstring const& value); double Indentation(); hstring ImagePath(); int32_t Type(); void Type(int32_t value); bool Checked(); void Checked(bool value); Windows::Foundation::Collections::IObservableVector Children(); void Children(Windows::Foundation::Collections::IObservableVector const& value); winrt::event_token PropertyChanged(Windows::UI::Xaml::Data::PropertyChangedEventHandler const& handler); void PropertyChanged(winrt::event_token const& token) noexcept; private: int32_t m_id; hstring m_idStr; winrt::hstring m_original; winrt::hstring m_renamed; uint32_t m_depth; hstring m_imagePath; winrt::Windows::Foundation::Collections::IObservableVector m_children; int32_t m_type; bool m_checked; winrt::event m_propertyChanged; }; } namespace winrt::PowerRenameUILib::factory_implementation { struct ExplorerItem : ExplorerItemT { }; }