xref: /haiku/src/servers/keystore/AppAccessRequestWindow.h (revision 97dfeb96704e5dbc5bec32ad7b21379d0125e031)
1 /*
2  * Copyright 2012, Michael Lotz, mmlr@mlotz.ch. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _APP_ACCESS_REQUEST_WINDOW_H
6 #define _APP_ACCESS_REQUEST_WINDOW_H
7 
8 
9 #include <Message.h>
10 #include <Window.h>
11 
12 
13 class AppAccessRequestView;
14 
15 
16 class AppAccessRequestWindow : public BWindow {
17 public:
18 									AppAccessRequestWindow(
19 										const char* keyringName,
20 										const char* signature,
21 										const char* path,
22 										const char* accessString, bool appIsNew,
23 										bool appWasUpdated);
24 virtual								~AppAccessRequestWindow();
25 
26 virtual	bool						QuitRequested();
27 virtual	void						MessageReceived(BMessage* message);
28 
29 		status_t					RequestAppAccess(bool& allowAlways);
30 
31 private:
32 		AppAccessRequestView*		fRequestView;
33 		sem_id						fDoneSem;
34 		uint32						fResult;
35 };
36 
37 
38 #endif // _APP_ACCESS_REQUEST_WINDOW_H
39