1 /* 2 * Copyright (c) 1998-2007 Matthijs Hollemans 3 * All rights reserved. Distributed under the terms of the MIT License. 4 */ 5 #ifndef GREP_LIST_VIEW_H 6 #define GREP_LIST_VIEW_H 7 8 #include <Entry.h> 9 #include <ListItem.h> 10 #include <OutlineListView.h> 11 12 13 class ResultItem : public BStringItem { 14 public: 15 ResultItem(const entry_ref& ref); 16 17 entry_ref ref; 18 }; 19 20 21 class GrepListView : public BOutlineListView { 22 public: 23 GrepListView(); 24 25 ResultItem* FindItem(const entry_ref& ref, 26 int32* _index) const; 27 28 ResultItem* RemoveResults(const entry_ref& ref, 29 bool completeItem); 30 }; 31 32 #endif // GREP_LIST_VIEW_H 33