blob: bf62ec005d567ac30c70f28a9581983fd6765060 [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