3 * Copyright (C) 2005-2013 Team XBMC
6 * This Program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
11 * This Program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with XBMC; see the file COPYING. If not, see
18 * <http://www.gnu.org/licenses/>.
22 #include "utils/SortUtils.h"
24 #define DEFAULT_VIEW_AUTO (VIEW_TYPE_AUTO << 16)
25 #define DEFAULT_VIEW_LIST (VIEW_TYPE_LIST << 16)
26 #define DEFAULT_VIEW_ICONS (VIEW_TYPE_ICON << 16)
27 #define DEFAULT_VIEW_BIG_ICONS (VIEW_TYPE_BIG_ICON << 16)
28 #define DEFAULT_VIEW_INFO (VIEW_TYPE_INFO << 16)
29 #define DEFAULT_VIEW_BIG_INFO (VIEW_TYPE_BIG_INFO << 16)
30 #define DEFAULT_VIEW_MAX (((VIEW_TYPE_MAX - 1) << 16) | 60)
35 CViewState(int viewMode, SORT_METHOD sortMethod, SortOrder sortOrder)
37 m_viewMode = viewMode;
38 m_sortMethod = sortMethod;
39 m_sortOrder = sortOrder;
44 m_sortMethod = SORT_METHOD_LABEL;
45 m_sortOrder = SortOrderAscending;
49 SORT_METHOD m_sortMethod;
50 SortOrder m_sortOrder;