blob: 1f6dd6654f8493d2b09f7b762a2155be662ad2ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* Copyright (C) 2015-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#include "GUIViewStateEventLog.h"
#include "FileItem.h"
#include "guilib/WindowIDs.h"
#include "view/ViewState.h"
#include "windowing/GraphicContext.h"
CGUIViewStateEventLog::CGUIViewStateEventLog(const CFileItemList& items) : CGUIViewState(items)
{
AddSortMethod(SortByDate, 552, LABEL_MASKS("%L", "%d", "%L", "%d")); // Label, Date | Label, Date
SetSortMethod(SortByDate);
SetViewAsControl(DEFAULT_VIEW_AUTO);
SetSortOrder(SortOrderDescending);
LoadViewState(items.GetPath(), WINDOW_EVENT_LOG);
}
void CGUIViewStateEventLog::SaveViewState()
{
SaveViewToDb(m_items.GetPath(), WINDOW_EVENT_LOG);
}
std::string CGUIViewStateEventLog::GetExtensions()
{
return "";
}
|