blob: 83e1b50047dc6982c1b7753fe87fe046f5c94447 [file] [log] [blame]
Yingdi Yu42f66462013-10-31 17:38:22 -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 INVITELISTDIALOG_H
12#define INVITELISTDIALOG_H
13
14#include <QDialog>
15#include <QStringListModel>
16
17#ifndef Q_MOC_RUN
18#include "contact-manager.h"
19#endif
20
21namespace Ui {
22class InviteListDialog;
23}
24
25class InviteListDialog : public QDialog
26{
27 Q_OBJECT
28
29public:
Yingdi Yua1a688f2014-02-06 18:09:22 -080030 explicit InviteListDialog(ndn::shared_ptr<chronos::ContactManager> contactManager,
Yingdi Yu42f66462013-10-31 17:38:22 -070031 QWidget *parent = 0);
32 ~InviteListDialog();
33
34 void
35 setInviteLabel(std::string label);
36
37signals:
38 void
39 invitionDetermined(QString, bool);
40
41private slots:
42 void
43 refreshContactList();
44
45 void
46 inviteWrapper();
47
48 void
49 onCancelClicked();
50
51private:
52 Ui::InviteListDialog *ui;
Yingdi Yua1a688f2014-02-06 18:09:22 -080053 ndn::shared_ptr<chronos::ContactManager> m_contactManager;
Yingdi Yu42f66462013-10-31 17:38:22 -070054 QStringListModel* m_contactListModel;
Yingdi Yua1a688f2014-02-06 18:09:22 -080055 std::vector<ndn::shared_ptr<chronos::ContactItem> > m_contactList;
Yingdi Yu42f66462013-10-31 17:38:22 -070056 std::vector<std::string> m_invitedContacts;
57};
58
59#endif // INVITELISTDIALOG_H