summaryrefslogtreecommitdiffstats
path: root/xbmc/addons/GUIWindowAddonBrowser.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/addons/GUIWindowAddonBrowser.h')
-rw-r--r--xbmc/addons/GUIWindowAddonBrowser.h79
1 files changed, 0 insertions, 79 deletions
diff --git a/xbmc/addons/GUIWindowAddonBrowser.h b/xbmc/addons/GUIWindowAddonBrowser.h
deleted file mode 100644
index d7c0ee0..0000000
--- a/xbmc/addons/GUIWindowAddonBrowser.h
+++ /dev/null
@@ -1,79 +0,0 @@
1#pragma once
2
3/*
4 * Copyright (C) 2005-2013 Team XBMC
5 * http://xbmc.org
6 *
7 * This Program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2, or (at your option)
10 * any later version.
11 *
12 * This Program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with XBMC; see the file COPYING. If not, see
19 * <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#include "addons/Addon.h"
24#include "windows/GUIMediaWindow.h"
25#include "ThumbLoader.h"
26
27class CFileItem;
28class CFileItemList;
29
30class CGUIWindowAddonBrowser : public CGUIMediaWindow
31{
32public:
33 CGUIWindowAddonBrowser(void);
34 virtual ~CGUIWindowAddonBrowser(void);
35 virtual bool OnMessage(CGUIMessage& message);
36
37 /*! \brief Popup a selection dialog with a list of addons of the given type
38 \param type the type of addon wanted
39 \param addonID [out] the addon ID of the selected item
40 \param showNone whether there should be a "None" item in the list (defaults to false)
41 \param showDetails whether to show details of the addons or not
42 \param showInstalled whether installed addons should be in the list
43 \param showInstallable whether installable addons should be in the list
44 \param showMore whether to show the "Get More" button (only makes sense if showInstalled is true and showInstallable is false)
45 \return 1 if an addon was selected, 2 if "Get More" was chosen, or 0 if an error occurred or if the selection process was cancelled
46 */
47 static int SelectAddonID(ADDON::TYPE type, std::string &addonID, bool showNone = false, bool showDetails = true, bool showInstalled = true, bool showInstallable = false, bool showMore = true);
48 static int SelectAddonID(const std::vector<ADDON::TYPE> &types, std::string &addonID, bool showNone = false, bool showDetails = true, bool showInstalled = true, bool showInstallable = false, bool showMore = true);
49 /*! \brief Popup a selection dialog with a list of addons of the given type
50 \param type the type of addon wanted
51 \param addonIDs [out] array of selected addon IDs
52 \param showNone whether there should be a "None" item in the list (defaults to false)
53 \param showDetails whether to show details of the addons or not
54 \param multipleSelection allow selection of multiple addons, if set to true showNone will automaticly switch to false
55 \param showInstalled whether installed addons should be in the list
56 \param showInstallable whether installable addons should be in the list
57 \param showMore whether to show the "Get More" button (only makes sense if showInstalled is true and showInstallable is false)
58 \return 1 if an addon was selected or multiple selection was specified, 2 if "Get More" was chosen, or 0 if an error occurred or if the selection process was cancelled
59 */
60 static int SelectAddonID(ADDON::TYPE type, std::vector<std::string> &addonIDs, bool showNone = false, bool showDetails = true, bool multipleSelection = true, bool showInstalled = true, bool showInstallable = false, bool showMore = true);
61 static int SelectAddonID(const std::vector<ADDON::TYPE> &types, std::vector<std::string> &addonIDs, bool showNone = false, bool showDetails = true, bool multipleSelection = true, bool showInstalled = true, bool showInstallable = false, bool showMore = true);
62
63protected:
64 /* \brief set label2 of an item based on the Addon.Status property
65 \param item the item to update
66 */
67 void SetItemLabel2(CFileItemPtr item);
68
69 virtual void GetContextButtons(int itemNumber, CContextButtons &buttons);
70 virtual bool OnContextButton(int itemNumber, CONTEXT_BUTTON button);
71 virtual bool OnClick(int iItem);
72 virtual void UpdateButtons();
73 virtual bool GetDirectory(const std::string &strDirectory, CFileItemList &items);
74 virtual bool Update(const std::string &strDirectory, bool updateFilterPath = true);
75 virtual std::string GetStartFolder(const std::string &dir);
76private:
77 CProgramThumbLoader m_thumbLoader;
78};
79