diff options
Diffstat (limited to 'xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h')
| -rw-r--r-- | xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h index 401a78d..bb1065d 100644 --- a/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h +++ b/xbmc/addons/kodi-addon-dev-kit/include/kodi/gui/dialogs/FileBrowser.h | |||
| @@ -1,24 +1,13 @@ | |||
| 1 | #pragma once | ||
| 2 | /* | 1 | /* |
| 3 | * Copyright (C) 2005-2017 Team KODI | 2 | * Copyright (C) 2005-2018 Team Kodi |
| 4 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 5 | * | ||
| 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) | ||
| 9 | * any later version. | ||
| 10 | * | ||
| 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. | ||
| 15 | * | ||
| 16 | * You should have received a copy of the GNU General Public License | ||
| 17 | * along with KODI; see the file COPYING. If not, see | ||
| 18 | * <http://www.gnu.org/licenses/>. | ||
| 19 | * | 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 20 | */ | 7 | */ |
| 21 | 8 | ||
| 9 | #pragma once | ||
| 10 | |||
| 22 | #include "../definitions.h" | 11 | #include "../definitions.h" |
| 23 | #include "../../AddonBase.h" | 12 | #include "../../AddonBase.h" |
| 24 | 13 | ||
| @@ -159,7 +148,7 @@ namespace dialogs | |||
| 159 | char* retString = nullptr; | 148 | char* retString = nullptr; |
| 160 | bool ret = CAddonBase::m_interface->toKodi->kodi_gui->dialogFileBrowser->show_and_get_file_from_dir(CAddonBase::m_interface->toKodi->kodiBase, | 149 | bool ret = CAddonBase::m_interface->toKodi->kodi_gui->dialogFileBrowser->show_and_get_file_from_dir(CAddonBase::m_interface->toKodi->kodiBase, |
| 161 | directory.c_str(), mask.c_str(), heading.c_str(), | 150 | directory.c_str(), mask.c_str(), heading.c_str(), |
| 162 | path.c_str(), &retString, useThumbs, | 151 | path.c_str(), &retString, useThumbs, |
| 163 | useFileDirectories, singleList); | 152 | useFileDirectories, singleList); |
| 164 | if (retString != nullptr) | 153 | if (retString != nullptr) |
| 165 | { | 154 | { |
| @@ -223,7 +212,7 @@ namespace dialogs | |||
| 223 | { | 212 | { |
| 224 | using namespace ::kodi::addon; | 213 | using namespace ::kodi::addon; |
| 225 | char* retString = nullptr; | 214 | char* retString = nullptr; |
| 226 | bool ret = CAddonBase::m_interface->toKodi->kodi_gui->dialogFileBrowser->show_and_get_source(CAddonBase::m_interface->toKodi->kodiBase, path.c_str(), &retString, | 215 | bool ret = CAddonBase::m_interface->toKodi->kodi_gui->dialogFileBrowser->show_and_get_source(CAddonBase::m_interface->toKodi->kodiBase, path.c_str(), &retString, |
| 227 | allowNetworkShares, additionalShare.c_str(), type.c_str()); | 216 | allowNetworkShares, additionalShare.c_str(), type.c_str()); |
| 228 | if (retString != nullptr) | 217 | if (retString != nullptr) |
| 229 | { | 218 | { |
