forked from SmartisanTech/Wrench
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontactmodel.h
More file actions
39 lines (30 loc) · 780 Bytes
/
Copy pathcontactmodel.h
File metadata and controls
39 lines (30 loc) · 780 Bytes
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
#ifndef CONTACTMODEL_H
#define CONTACTMODEL_H
#include <QAbstractTableModel>
#include <QAbstractListModel>
#include <QMap>
#include <QPixmap>
#include <QSharedPointer>
#include <lua.hpp>
#include <QSettings>
#include "selectoutput.h"
#include "vcard.h"
#include "filteringmodel.h"
class ContactModel : public FilteringModel
{
Q_OBJECT
public:
explicit ContactModel(QObject *parent = 0);
void filterSelectedItems(const QStringList& split);
QString getHistoryName();
void setMail(bool isMail) {mIsMail = isMail; setFilter("\t");};
void maybeAddTextIntoHistory(const QString& text);
private:
bool mIsMail;
QStringList mInputTextHistory;
QPixmap mDefaultAvatar;
QList<VCard> mVcards;
signals:
public slots:
};
#endif // CONTACTMODEL_H