summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/ISortable.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/utils/ISortable.h')
-rw-r--r--xbmc/utils/ISortable.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/xbmc/utils/ISortable.h b/xbmc/utils/ISortable.h
new file mode 100644
index 0000000..ea4a0d3
--- /dev/null
+++ b/xbmc/utils/ISortable.h
@@ -0,0 +1,23 @@
1/*
2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#pragma once
10
11#include "SortUtils.h"
12
13#include <map>
14
15class ISortable
16{
17protected:
18 /* make sure nobody deletes a pointer to this class */
19 ~ISortable() = default;
20
21public:
22 virtual void ToSortable(SortItem& sortable, Field field) const = 0;
23};