xref: /haiku/src/servers/keystore/KeyRequestWindow.h (revision f5821a1aee77d3b9a979b42c68a79e50b5ebaefe)
1 /*
2  * Copyright 2012, Michael Lotz, mmlr@mlotz.ch. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _KEY_REQUEST_WINDOW_H
6 #define _KEY_REQUEST_WINDOW_H
7 
8 
9 #include <Message.h>
10 #include <Window.h>
11 
12 
13 class KeyRequestView;
14 
15 
16 class KeyRequestWindow : public BWindow {
17 public:
18 									KeyRequestWindow();
19 virtual								~KeyRequestWindow();
20 
21 virtual	void						DispatchMessage(BMessage* message,
22 										BHandler* handler);
23 virtual	void						MessageReceived(BMessage* message);
24 
25 		status_t					RequestKey(const BString& keyringName,
26 										BMessage& keyMessage);
27 
28 private:
29 		KeyRequestView*				fRequestView;
30 		sem_id						fDoneSem;
31 		status_t					fResult;
32 };
33 
34 
35 #endif // _KEY_REQUEST_WINDOW_H
36