xref: /haiku/src/apps/text_search/GrepApp.h (revision 97dfeb96704e5dbc5bec32ad7b21379d0125e031)
1 /*
2  * Copyright (c) 1998-2007 Matthijs Hollemans
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #include <Application.h>
6 #include <MessageRunner.h>
7 
8 #ifndef GREP_APP_H
9 #define GREP_APP_H
10 
11 class GrepApp : public BApplication {
12 public:
13 								GrepApp();
14 	virtual						~GrepApp();
15 
16 	virtual	void				ArgvReceived(int32 argc, char** argv);
17 	virtual	void				RefsReceived(BMessage* message);
18 	virtual	void				MessageReceived(BMessage* message);
19 	virtual	void				ReadyToRun();
20 
21 private:
22 			void				_TryQuit();
23 			void				_NewUnfocusedGrepWindow();
24 
25 			bool				fGotArgvOnStartup;
26 			bool				fGotRefsOnStartup;
27 
28 			BMessageRunner*		fQuitter;
29 };
30 
31 #endif	// GREP_APP_H
32