blob: dc91c7ae01dffe24b4e8a02849f186802f1cfdf4 [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 Yu64206112013-12-24 11:16:32 +080030 explicit InviteListDialog(ndn::ptr_lib::shared_ptr<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 Yu64206112013-12-24 11:16:32 +080053 ndn::ptr_lib::shared_ptr<ContactManager> m_contactManager;
Yingdi Yu42f66462013-10-31 17:38:22 -070054 QStringListModel* m_contactListModel;
Yingdi Yu64206112013-12-24 11:16:32 +080055 std::vector<ndn::ptr_lib::shared_ptr<ContactItem> > m_contactList;
Yingdi Yu42f66462013-10-31 17:38:22 -070056 std::vector<std::string> m_invitedContacts;
57};
58
59#endif // INVITELISTDIALOG_H