summaryrefslogtreecommitdiffstats
path: root/pbap/pbap.h
diff options
context:
space:
mode:
authorMatt Porter <mporter@konsulko.com>2018-06-26 11:51:51 -0400
committerMatt Porter <mporter@konsulko.com>2018-06-26 12:05:20 -0400
commitbc9d7b82208767b92cb975e4a2c3dc43983fb6f9 (patch)
treea5b3c39f1e0a8a9b633a339b1f5c67cc9fac464e /pbap/pbap.h
parent5506cf50dba098399bbacb73533603d186d8a91e (diff)
pbap: sort and trim contact list
Sort the contacts list alphabetically and trim out bogus entries. Bug-AGL: SPEC-1436 Change-Id: I71e4311bb7638750732ba27fbeaa76c063113c46 Signed-off-by: Matt Porter <mporter@konsulko.com>
Diffstat (limited to 'pbap/pbap.h')
-rw-r--r--pbap/pbap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbap/pbap.h b/pbap/pbap.h
index 2a5fb61..4b1bd43 100644
--- a/pbap/pbap.h
+++ b/pbap/pbap.h
@@ -69,6 +69,7 @@ class Contact : public QObject
explicit Contact(QString name, QList<QObject *>numbers);
virtual ~Contact();
+ bool operator<(Contact& c) {return ((this->m_name < c.m_name));};
QString name() {return m_name;};
QList<QObject *>numbers() {return m_numbers;};