blob: bf62ec005d567ac30c70f28a9581983fd6765060 [file] [log] [blame]
Yingdi Yu348f5ea2014-03-01 14:47:25 -08001/* -*- 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 INVITE_LIST_DIALOG_H
12#define INVITE_LIST_DIALOG_H
13
14#include <QDialog>
15#include <QStringListModel>
16
17#ifndef Q_MOC_RUN
18#endif
19
20namespace Ui {
21class InviteListDialog;
22}
23
24class InviteListDialog : public QDialog
25{
26 Q_OBJECT
27
28public:
29 explicit
30 InviteListDialog(QWidget *parent = 0);
Yingdi Yufa0b6a02014-04-30 14:26:42 -070031
Yingdi Yu348f5ea2014-03-01 14:47:25 -080032 ~InviteListDialog();
33
34 void
35 setInviteLabel(std::string label);
Yingdi Yufa0b6a02014-04-30 14:26:42 -070036
Yingdi Yu348f5ea2014-03-01 14:47:25 -080037signals:
38 void
39 sendInvitation(const QString&);
40
41public slots:
42 void
43 onContactAliasListReady(const QStringList& aliasList);
44
45 void
46 onContactIdListReady(const QStringList& idList);
47
48private slots:
Yingdi Yufa0b6a02014-04-30 14:26:42 -070049 void
Yingdi Yu348f5ea2014-03-01 14:47:25 -080050 onInviteClicked();
51
52 void
53 onCancelClicked();
54
55private:
56 Ui::InviteListDialog *ui;
57 QStringListModel* m_contactListModel;
58 QStringList m_contactAliasList;
59 QStringList m_contactIdList;
60};
61
62#endif // INVITE_LIST_DIALOG_H