Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 1 | /* -*- 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 CONTACTPANEL_H |
| 12 | #define CONTACTPANEL_H |
| 13 | |
| 14 | #include <QDialog> |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame^] | 15 | #include <QStringListModel> |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 16 | |
| 17 | namespace Ui { |
| 18 | class ContactPanel; |
| 19 | } |
| 20 | |
| 21 | class ContactPanel : public QDialog |
| 22 | { |
| 23 | Q_OBJECT |
| 24 | |
| 25 | public: |
| 26 | explicit ContactPanel(QWidget *parent = 0); |
| 27 | ~ContactPanel(); |
| 28 | |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame^] | 29 | private slots: |
| 30 | void |
| 31 | updateSelection(const QItemSelection &selected, |
| 32 | const QItemSelection &deselected); |
| 33 | |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 34 | private: |
| 35 | Ui::ContactPanel *ui; |
Yingdi Yu | 40eca75 | 2013-10-10 15:00:58 -0700 | [diff] [blame^] | 36 | QStringListModel* m_contactListModel; |
Yingdi Yu | 847aa86 | 2013-10-09 16:35:53 -0700 | [diff] [blame] | 37 | }; |
| 38 | |
| 39 | #endif // CONTACTPANEL_H |