phonebookui/cnthistorymodel/tsrc/mt_cnthistorymodel/stub_classes.cpp
changeset 31 2a11b5b00470
parent 27 de1630741fbe
--- a/phonebookui/cnthistorymodel/tsrc/mt_cnthistorymodel/stub_classes.cpp	Mon May 03 12:24:20 2010 +0300
+++ b/phonebookui/cnthistorymodel/tsrc/mt_cnthistorymodel/stub_classes.cpp	Fri May 14 15:42:23 2010 +0300
@@ -15,22 +15,11 @@
 *
 */
 
+#include "cnthistorymodel_p.h"
 #include "stub_classes.h"
 
 Q_DECLARE_METATYPE(LogsEvent *)
 
-namespace {
-    void addModelData(HistoryItem &t, int i)
-    {
-        t.timeStamp = constDateTime.addSecs(5*i);
-        t.message = QString(cc_msg).arg(i);
-        t.direction = i%2 == 0 ? Incoming : Outgoing;
-        t.seenStatus = i%2 == 0 ? Unseen : Seen;
-        t.iconPath = QString(icon_path).arg(i);
-        t.title = QString(cc_msg).arg(i);
-    };
-}
-
 QVariant LogsModel::data(const QModelIndex& index, int role) const
 {
     if (index.row() < 0 && index.row() >= rowCount())
@@ -104,3 +93,12 @@
     beginInsertRows(QModelIndex(), 0, m_events.count());
     endInsertRows();
 }
+
+bool MsgHistory::getMessages(int cntId){}
+
+bool MsgHistory::subscribe(int cntId){}
+
+bool MsgHistory::markRead(int cntId){
+    return true;
+}
+