vfs: check userland buffers before reading them.
[haiku.git] / src / apps / softwareupdater / WorkingLooper.h
blobbb27eb02ef6d4504af233df4c80c971de8ff0e9e
1 /*
2 * Copyright 2017, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Brian Hill <supernova@tycho.email>
7 */
8 #ifndef _WORKING_LOOPER_H
9 #define _WORKING_LOOPER_H
12 #include <Looper.h>
13 #include <Message.h>
15 #include "CheckAction.h"
16 #include "UpdateAction.h"
19 const uint32 kMsgStart = 'iSTA';
22 class WorkingLooper : public BLooper {
23 public:
24 WorkingLooper(update_type action, bool verbose);
25 ~WorkingLooper();
26 void MessageReceived(BMessage* message);
28 private:
29 UpdateAction* fUpdateAction;
30 CheckAction* fCheckAction;
31 update_type fActionRequested;
32 bool fVerbose;
37 #endif // _WORKING_LOOPER_H