know bugs fixed and added search box to do a search with a contact name
[vncallhistory] / elv1db.h
index d14466d..30dd304 100644 (file)
--- a/elv1db.h
+++ b/elv1db.h
@@ -24,6 +24,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>
 #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"
@@ -192,11 +193,13 @@ public:
     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();