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 7 8 9 #include <View.h> 10 11 #include "PackageInfo.h" 12 #include "PackageInfoListener.h" 13 14 15 class BGroupLayout; 16 17 18 class FeaturedPackagesView : public BView { 19 public: 20 FeaturedPackagesView(); 21 virtual ~FeaturedPackagesView(); 22 23 void AddPackage(const PackageInfoRef& package); 24 void RemovePackage(const PackageInfoRef& package); 25 void Clear(); 26 27 void SelectPackage(const PackageInfoRef& package); 28 29 static void CleanupIcons(); 30 31 private: 32 BGroupLayout* fPackageListLayout; 33 }; 34 35 36 #endif // FEATURED_PACKAGES_VIEW_H 37