calendarui/views/dayview/tsrc/unittests/unittest_calendayview/calenservices.h
changeset 75 7ac58b2aae6f
parent 45 b6db4fd4947b
equal deleted inserted replaced
72:27feeedec790 75:7ac58b2aae6f
     7 
     7 
     8 #ifndef CALENSERVICES_H_
     8 #ifndef CALENSERVICES_H_
     9 #define CALENSERVICES_H_
     9 #define CALENSERVICES_H_
    10 
    10 
    11 #include "calencontext.h"
    11 #include "calencontext.h"
       
    12 #include "calennotificationhandler.h"
       
    13 #include "hb_calencommands.hrh"
    12 
    14 
    13 /*!
    15 /*!
    14  Mocked class MCalenServices
    16  Mocked class MCalenServices
    15  */
    17  */
    16 class AgendaUtil;
    18 class AgendaUtil;
    25     MCalenContext& Context(){
    27     MCalenContext& Context(){
    26 			return mContext;
    28 			return mContext;
    27     	}
    29     	}
    28     
    30     
    29     int getFirstView(){ return 0;}
    31     int getFirstView(){ return 0;}
    30     TBool IssueCommandL( TInt aCommand  ){ Q_UNUSED(aCommand); return EFalse;}
    32     bool IssueCommandL( quint32 aCommand  ){ mLastCommand  = aCommand; return true;}
    31     AgendaUtil* agendaInterface() {return 0;}
    33     AgendaUtil* agendaInterface() {return 0;}
       
    34     
       
    35     void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
       
    36                                     TCalenNotification aNotification ) {}
       
    37     
       
    38     virtual void RegisterForNotificationsL( MCalenNotificationHandler* aHandler,
       
    39                                             RArray<TCalenNotification>& aNotifications )
       
    40     {}
       
    41     
       
    42     void IssueNotificationL( quint32 aNotification ) { mLastCommand  = aNotification; }
       
    43     
       
    44     QString* InfobarTextL() {return 0;}
       
    45     
       
    46     quint32 lastCommand() {return mLastCommand;}
       
    47     
       
    48     quint32 mLastCommand;
       
    49     MCalenContext mContext;
    32     
    50     
    33     ~MCalenServices() {
    51     ~MCalenServices() {
    34         
    52         
    35     }
    53     }
    36     
       
    37     MCalenContext mContext;
       
    38 };
    54 };
    39 #endif /* CALENSERVICES_H_ */
    55 #endif /* CALENSERVICES_H_ */