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