#include <QDateTime>
#define H_TOTAL_GROUP_BY "select remote_name, count(*) from Events E, Remotes R where R.remote_uid=E.remote_uid and E.local_uid=R.local_uid %1 %2 group by remote_name order by start_time desc"
+#define H_TOTAL_GROUP_BY_AND_SEARCH "select remote_name, count(*) from Events E, Remotes R where R.remote_uid=E.remote_uid and E.local_uid=R.local_uid %1 %2 %3 group by remote_name order by start_time desc"
#define H_DEFAULT_SEARCH "select event_type_id, start_time, end_time, is_read, E.local_uid, E.remote_uid, free_text, outgoing, remote_name from Events E, Remotes R where R.remote_uid=E.remote_uid and E.local_uid=R.local_uid %1 order by start_time desc limit %2"
#define P_TYPE_GSM_NETWORK "ring/tel/ring"
QList<elv1rec*> m_records;
QList<elv1Detailrec*> m_detail_records;
- bool m_type_query;
+ uint m_type_query;
bool m_all_call;
CallType m_call_type;
+ QString *m_search_val;
+
signals:
void start_indicator();
void group_by_finished();