blob: c6756a8ef0846fb544cbcfca7a3dae99ed330060 [file] [log] [blame]
Pierre Ossman5156d5e2011-03-09 09:42:34 +00001/* Copyright 2011 Pierre Ossman <ossman@cendio.se> for Cendio AB
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 */
18
19#ifndef __USERDIALOG_H__
20#define __USERDIALOG_H__
21
22#include <rfb/UserPasswdGetter.h>
23#include <rfb/UserMsgBox.h>
24
25class UserDialog : public rfb::UserPasswdGetter,
26 public rfb::UserMsgBox
27{
28public:
29 UserDialog();
30 ~UserDialog();
31
32 // UserPasswdGetter callbacks
33
34 void getUserPasswd(char** user, char** password);
35
36 // UserMsgBox callbacks
37
38 bool showMsgBox(int flags, const char* title, const char* text);
39};
40
41#endif