blob: f5144fcec6280cd7951d52f29d9558c7c5e16b2d [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2013, Regents of the University of California
* Yingdi Yu
*
* BSD license, See the LICENSE file for more information
*
* Author: Yingdi Yu <yingdi@cs.ucla.edu>
*/
#ifndef INVITE_LIST_DIALOG_H
#define INVITE_LIST_DIALOG_H
#include <QDialog>
#include <QStringListModel>
#ifndef Q_MOC_RUN
#endif
namespace Ui {
class InviteListDialog;
}
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;
};
#endif // INVITE_LIST_DIALOG_H