You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserMsgBox.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
  2. * Copyright (C) 2010 TigerVNC Team
  3. *
  4. * This is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This software is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this software; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
  17. * USA.
  18. */
  19. #ifndef __RFB_USERMSGBOX_H__
  20. #define __RFB_USERMSGBOX_H__
  21. namespace rfb {
  22. class UserMsgBox {
  23. public:
  24. enum MsgBoxFlags{
  25. M_OK = 0,
  26. M_OKCANCEL = 1,
  27. M_YESNO = 4,
  28. M_ICONERROR = 0x10,
  29. M_ICONQUESTION = 0x20,
  30. M_ICONWARNING = 0x30,
  31. M_ICONINFORMATION = 0x40,
  32. M_DEFBUTTON1 = 0,
  33. M_DEFBUTTON2 = 0x100
  34. };
  35. /* TODO Implement as function with variable arguments */
  36. virtual bool showMsgBox(int flags,const char* title, const char* text)=0;
  37. };
  38. }
  39. #endif