btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / servers / keystore / AppAccessRequestWindow.h
blob0d70c1ffd84c2d826959ada56800b80f92f88702
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
8 #include <Bitmap.h>
9 #include <Button.h>
10 #include <Message.h>
11 #include <Window.h>
13 #include "StripeView.h"
15 class AppAccessRequestView;
18 class AppAccessRequestWindow : public BWindow {
19 public:
20 AppAccessRequestWindow(
21 const char* keyringName,
22 const char* signature,
23 const char* path,
24 const char* accessString, bool appIsNew,
25 bool appWasUpdated);
26 virtual ~AppAccessRequestWindow();
28 virtual bool QuitRequested();
29 virtual void MessageReceived(BMessage* message);
31 status_t RequestAppAccess(bool& allowAlways);
32 BBitmap GetIcon(int32 iconSize);
33 private:
34 AppAccessRequestView* fRequestView;
35 sem_id fDoneSem;
36 uint32 fResult;
37 BButton* fDisallowButton;
38 BButton* fOnceButton;
39 BButton* fAlwaysButton;
40 StripeView* fStripeView;
45 #endif // _APP_ACCESS_REQUEST_WINDOW_H