blob: f317ec6cf6a97591ef689b885502e9554211d852 [file] [log] [blame]
Yingdi Yu100267f2013-10-21 15:01:40 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
2/*
3 * Copyright (c) 2013, Regents of the University of California
4 * Yingdi Yu
5 *
6 * BSD license, See the LICENSE file for more information
7 *
8 * Author: Yingdi Yu <yingdi@cs.ucla.edu>
9 */
10
11#ifndef STARTCHATDIALOG_H
12#define STARTCHATDIALOG_H
13
14#include <QDialog>
15
16#ifndef Q_MOC_RUN
17#include <string>
18#endif
19
20namespace Ui {
21class StartChatDialog;
22}
23
24class StartChatDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit StartChatDialog(QWidget *parent = 0);
30 ~StartChatDialog();
31
32 void
33 setInvitee(const std::string& invitee, const std::string& chatroom);
34
35signals:
36 void
37 chatroomConfirmed(const QString& chatroomName, const QString& invitee, bool isIntroducer);
38
39private slots:
40 void
41 onOkClicked();
42
43 void
44 onCancelClicked();
45
46private:
47 Ui::StartChatDialog *ui;
48 std::string m_invitee;
49};
50
51#endif // STARTCHATDIALOG_H