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 #include <Bitmap.h> 9 #include <Button.h> 10 #include <Message.h> 11 #include <Window.h> 12 13 #include "StripeView.h" 14 15 class AppAccessRequestView; 16 17 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(); 27 28 virtual bool QuitRequested(); 29 virtual void MessageReceived(BMessage* message); 30 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 BStripeView* fStripeView; 41 42 }; 43 44 45 #endif // _APP_ACCESS_REQUEST_WINDOW_H 46