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 9 #include <Message.h> 10 #include <Window.h> 11 12 13 class AppAccessRequestView; 14 15 16 class AppAccessRequestWindow : public BWindow { 17 public: 18 AppAccessRequestWindow( 19 const char* keyringName, 20 const char* signature, 21 const char* path, 22 const char* accessString, bool appIsNew, 23 bool appWasUpdated); 24 virtual ~AppAccessRequestWindow(); 25 26 virtual void DispatchMessage(BMessage* message, 27 BHandler* handler); 28 virtual void MessageReceived(BMessage* message); 29 30 status_t RequestAppAccess(bool& allowAlways); 31 32 private: 33 AppAccessRequestView* fRequestView; 34 sem_id fDoneSem; 35 uint32 fResult; 36 }; 37 38 39 #endif // _APP_ACCESS_REQUEST_WINDOW_H 40