-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathinvite-list-dialog.hpp
63 lines (47 loc) · 1.13 KB
/
invite-list-dialog.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2020, Regents of the University of California
* Yingdi Yu
*
* BSD license, See the LICENSE file for more information
*
* Author: Yingdi Yu <[email protected]>
*/
#ifndef CHRONOCHAT_INVITE_LIST_DIALOG_HPP
#define CHRONOCHAT_INVITE_LIST_DIALOG_HPP
#include <QDialog>
#include <QStringListModel>
namespace Ui {
class InviteListDialog;
} // namespace Ui
namespace chronochat {
class InviteListDialog : public QDialog
{
Q_OBJECT
public:
explicit
InviteListDialog(QWidget* parent = 0);
~InviteListDialog();
void
setInviteLabel(std::string label);
signals:
void
sendInvitation(const QString&);
public slots:
void
onContactAliasListReady(const QStringList& aliasList);
void
onContactIdListReady(const QStringList& idList);
private slots:
void
onInviteClicked();
void
onCancelClicked();
private:
Ui::InviteListDialog* ui;
QStringListModel* m_contactListModel;
QStringList m_contactAliasList;
QStringList m_contactIdList;
};
} // namespace chronochat
#endif // CHRONOCHAT_INVITE_LIST_DIALOG_HPP