2 * Copyright (C) 2015-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
9 #include "GUIViewStateEventLog.h"
12 #include "FileItemList.h"
13 #include "guilib/WindowIDs.h"
14 #include "view/ViewState.h"
15 #include "windowing/GraphicContext.h"
17 CGUIViewStateEventLog::CGUIViewStateEventLog(const CFileItemList
& items
) : CGUIViewState(items
)
19 AddSortMethod(SortByDate
, 552, LABEL_MASKS("%L", "%d", "%L", "%d")); // Label, Date | Label, Date
21 SetSortMethod(SortByDate
);
22 SetViewAsControl(DEFAULT_VIEW_AUTO
);
24 SetSortOrder(SortOrderDescending
);
25 LoadViewState(items
.GetPath(), WINDOW_EVENT_LOG
);
28 void CGUIViewStateEventLog::SaveViewState()
30 SaveViewToDb(m_items
.GetPath(), WINDOW_EVENT_LOG
);
33 std::string
CGUIViewStateEventLog::GetExtensions()