summaryrefslogtreecommitdiffstats
path: root/core/connectionlistmodel.h
blob: d6ffe831c6d350f5d9c3780ffd8725c493fecf73 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CONNECTIONLISTMODEL_H
#define CONNECTIONLISTMODEL_H

#include <QAbstractListModel>

class ConnectionListModel : public QAbstractListModel {
	Q_OBJECT
public:
	ConnectionListModel(QObject *parent = 0);
	QVariant data(const QModelIndex &index, int role) const;
	int rowCount(const QModelIndex &parent = QModelIndex()) const;
	void addAddress(const QString address);
	void removeAllAddresses();
	int indexOf(QString address);
private:
	QStringList m_addresses;
};

#endif