/* * Copyright (c) 2007-2010, Haiku, Inc. * Distributed under the terms of the MIT license. * * Author: * Ɓukasz 'Sil2100' Zemczak */ #ifndef UNINSTALLVIEW_H #define UNINSTALLVIEW_H #include #include #include "InstalledPackageInfo.h" class BButton; class BListView; class BTextView; class BScrollView; class BFilePanel; class UninstallView : public BGroupView { public: UninstallView(); virtual ~UninstallView(); virtual void AttachedToWindow(); virtual void MessageReceived(BMessage* message); virtual void RefsReceived(BMessage* message); private: void _InitView(); status_t _ReloadAppList(); void _AddFile(const char* filename, const node_ref& ref); void _ClearAppList(); void _CachePathToPackages(); private: class InfoItem; BPath fToPackages; BListView* fAppList; BTextView* fDescription; BButton* fInstallButton; BFilePanel* fOpenPanel; BButton* fRemoveButton; BScrollView* fDescScroll; InstalledPackageInfo fCurrentSelection; bool fWatcherRunning; const char* fNoPackageSelectedString; }; #endif // UNINSTALLVIEW_H