calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calenservices.h
changeset 80 fa7c359294fa
parent 50 579cc610882e
--- a/calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calenservices.h	Fri Sep 17 08:29:05 2010 +0300
+++ b/calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calenservices.h	Mon Oct 04 00:15:49 2010 +0300
@@ -9,6 +9,8 @@
 #define CALENSERVICES_H_
 
 #include "calencontext.h"
+#include "calennotificationhandler.h"
+#include "hb_calencommands.hrh"
 
 /*!
  Mocked class MCalenServices
@@ -27,13 +29,27 @@
     	}
     
     int getFirstView(){ return 0;}
-    TBool IssueCommandL( TInt aCommand  ){ Q_UNUSED(aCommand); return EFalse;}
+    bool IssueCommandL( quint32 aCommand  ){ mLastCommand  = aCommand; return true;}
     AgendaUtil* agendaInterface() {return 0;}
     
+    void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
+                                    TCalenNotification aNotification ) {}
+    
+    virtual void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
+                                            RArray<TCalenNotification>& aNotifications )
+    {}
+    
+    void IssueNotificationL( quint32 aNotification ) { mLastCommand  = aNotification; }
+    
+    QString* InfobarTextL() {return 0;}
+    
+    quint32 lastCommand() {return mLastCommand;}
+    
+    quint32 mLastCommand;
+    MCalenContext mContext;
+    
     ~MCalenServices() {
         
     }
-    
-    MCalenContext mContext;
 };
 #endif /* CALENSERVICES_H_ */