xref: /haiku/src/apps/softwareupdater/WorkingLooper.h (revision 6aff37d1c79e20748c683ae224bd629f88a5b0be)
1 /*
2  * Copyright 2017, Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Brian Hill <supernova@tycho.email>
7  */
8 #ifndef _WORKING_LOOPER_H
9 #define _WORKING_LOOPER_H
10 
11 
12 #include <Looper.h>
13 #include <Message.h>
14 
15 #include "CheckAction.h"
16 #include "UpdateAction.h"
17 
18 
19 const uint32 kMsgStart = 'iSTA';
20 
21 
22 class WorkingLooper : public BLooper {
23 public:
24 							WorkingLooper(update_type action, bool verbose);
25 							~WorkingLooper();
26 			void			MessageReceived(BMessage* message);
27 
28 private:
29 			UpdateAction*	fUpdateAction;
30 			CheckAction*	fCheckAction;
31 			update_type		fActionRequested;
32 			bool			fVerbose;
33 
34 };
35 
36 
37 #endif // _WORKING_LOOPER_H
38