vfs: check userland buffers before reading them.
[haiku.git] / src / apps / haikudepot / ui / FeaturedPackagesView.h
blob6658f3e1f9da10bab890dcaf0550930fda7ad30b
1 /*
2 * Copyright 2014, Stephan Aßmus <superstippi@gmx.de>.
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5 #ifndef FEATURED_PACKAGES_VIEW_H
6 #define FEATURED_PACKAGES_VIEW_H
9 #include <View.h>
11 #include "PackageInfo.h"
12 #include "PackageInfoListener.h"
15 class BGroupLayout;
16 class ScrollableGroupView;
19 class FeaturedPackagesView : public BView {
20 public:
21 FeaturedPackagesView();
22 virtual ~FeaturedPackagesView();
24 void AddPackage(const PackageInfoRef& package);
25 void RemovePackage(const PackageInfoRef& package);
26 void Clear();
28 void SelectPackage(const PackageInfoRef& package,
29 bool scrollToEntry = false);
31 static void CleanupIcons();
33 private:
34 BGroupLayout* fPackageListLayout;
35 ScrollableGroupView* fContainerView;
39 #endif // FEATURED_PACKAGES_VIEW_H