calendarui/inc/calencommandhandler.h
changeset 45 b6db4fd4947b
parent 18 c198609911f9
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    37 
    37 
    38     private:
    38     private:
    39         int iCommand;
    39         int iCommand;
    40         QDateTime iFocusDateAndTime;
    40         QDateTime iFocusDateAndTime;
    41         TCalenInstanceId iInstanceId;
    41         TCalenInstanceId iInstanceId;
    42         int iViewId;
       
    43     };
    42     };
    44 
    43 
    45 inline TCalenCommand::TCalenCommand()
    44 inline TCalenCommand::TCalenCommand()
    46     {
    45     {
    47     }
    46     }
    48 
    47 
    49 inline void TCalenCommand::SetCommandAndContextL( int aCommand,
    48 inline void TCalenCommand::SetCommandAndContextL( int aCommand,
    50                                                              MCalenContext& aContext)
    49                                                              MCalenContext& aContext)
    51     {
    50     {
    52     iCommand = aCommand;
    51     iCommand = aCommand;
    53     iFocusDateAndTime = aContext.focusDateAndTimeL();
    52     iFocusDateAndTime = aContext.focusDateAndTime();
    54     iInstanceId = aContext.instanceId();
    53     iInstanceId = aContext.instanceId();
    55     iViewId = aContext.viewId();
       
    56     }
    54     }
    57 
    55 
    58 inline TInt TCalenCommand::Command() const
    56 inline TInt TCalenCommand::Command() const
    59     {
    57     {
    60     return iCommand;
    58     return iCommand;
    61     }
    59     }
    62 
    60 
    63 inline void TCalenCommand::GetContextL( MCalenContext& aContext ) const
    61 inline void TCalenCommand::GetContextL( MCalenContext& aContext ) const
    64     {
    62     {
    65     aContext.setFocusDateAndTimeAndInstanceL( iFocusDateAndTime,
    63     aContext.setFocusDateAndTimeAndInstance( iFocusDateAndTime,
    66                                               iInstanceId,
    64                                               iInstanceId );
    67                                               iViewId );
       
    68     }
    65     }
    69 
    66 
    70 
    67 
    71 
    68 
    72 /**
    69 /**