xref: /haiku/src/servers/keystore/KeyRequestWindow.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
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	bool						QuitRequested();
22 virtual	void						MessageReceived(BMessage* message);
23 
24 		status_t					RequestKey(const BString& keyringName,
25 										BMessage& keyMessage);
26 
27 private:
28 		KeyRequestView*				fRequestView;
29 		sem_id						fDoneSem;
30 		status_t					fResult;
31 };
32 
33 
34 #endif // _KEY_REQUEST_WINDOW_H
35