InviteDialogue.h 693 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright 2021, Jaidyn Levesque <jadedctrl@teknik.io>
  3. * All rights reserved. Distributed under the terms of the MIT license.
  4. */
  5. #ifndef INVITE_DIALOGUE_H
  6. #define INVITE_DIALOGUE_H
  7. #include <Alert.h>
  8. #include <Messenger.h>
  9. class BBitmap;
  10. // BAlert for quickly sending yes/no messages directly to a protocol looper
  11. class InviteDialogue : public BAlert {
  12. public:
  13. InviteDialogue(BMessenger target, const char* title, const char* body,
  14. BMessage* acceptMsg, BMessage* rejectMsg,
  15. BBitmap* icon = NULL);
  16. void MessageReceived(BMessage* msg);
  17. status_t Go();
  18. private:
  19. BMessenger fMessenger;
  20. BMessage* fAcceptMsg;
  21. BMessage* fRejectMsg;
  22. };
  23. #endif // INVITE_DIALOGUE_H