calendarui/globaldata/inc/calencontextimpl.h
changeset 45 b6db4fd4947b
parent 18 c198609911f9
child 83 5aadd1120515
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    48          * "setters" on any context not from the global data will panic.
    48          * "setters" on any context not from the global data will panic.
    49          */
    49          */
    50         CALENCONTEXTIMPL_EXPORT CalenContextImpl( MCalenContextChangeObserver* observer );
    50         CALENCONTEXTIMPL_EXPORT CalenContextImpl( MCalenContextChangeObserver* observer );
    51         CALENCONTEXTIMPL_EXPORT CalenContextImpl();
    51         CALENCONTEXTIMPL_EXPORT CalenContextImpl();
    52         CALENCONTEXTIMPL_EXPORT CalenContextImpl( const CalenContextImpl& context );
    52         CALENCONTEXTIMPL_EXPORT CalenContextImpl( const CalenContextImpl& context );
    53         ~CalenContextImpl();
    53         CALENCONTEXTIMPL_EXPORT ~CalenContextImpl();
    54 
    54 
    55     public:  // from MCalenContext
    55     public:  // from MCalenContext
    56     // Utils
    56     // Utils
    57         /**
    57         /**
    58          * Returns the default time for views. (Normally 8am.) This would be
    58          * Returns the default time for views. (Normally 8am.) This would be
    70 
    70 
    71     // Setters
    71     // Setters
    72         /**
    72         /**
    73          * Sets the date and time currently focused.
    73          * Sets the date and time currently focused.
    74          * @param aFocusTime The new focus date and time.
    74          * @param aFocusTime The new focus date and time.
    75          * @param aViewId The view id of the currently active view.
       
    76          */
    75          */
    77         void setFocusDateAndTimeL( const QDateTime& focusDateTime,
    76         void setFocusDateAndTime( const QDateTime& focusDateTime);
    78                                             const int& viewId );
       
    79 
    77 
    80         /**
    78         /**
    81          * Sets the date currently focused. When retrieving the focus
    79          * Sets the date currently focused. When retrieving the focus
    82          * date and time after calling this function, the time component
    80          * date and time after calling this function, the time component
    83          * will be set to the default of view. When retrieving the focus
    81          * will be set to the default of view. When retrieving the focus
    84          * time only, it will be set to -1.
    82          * time only, it will be set to -1.
    85          * @param aFocusDate The new focus date and time.
    83          * @param aFocusDate The new focus date and time.
    86          * @param aViewId The view id of the currently active view.
       
    87          */
    84          */
    88         void setFocusDateL( const QDateTime& focusDateTime,
    85         void setFocusDate( const QDateTime& focusDateTime );
    89                                     const int& viewId );
       
    90 
    86 
    91         /**
    87         /**
    92          * Sets the id of the instance currently focused.
    88          * Sets the id of the instance currently focused.
    93          * @param aInstanceId the id of the focused instance.
    89          * @param aInstanceId the id of the focused instance.
    94          * @param aViewId The view id of the currently active view.
       
    95          */
    90          */
    96         void setInstanceIdL( const TCalenInstanceId& instanceId,
    91         void setInstanceId( const TCalenInstanceId& instanceId );
    97                                      const int& viewId );
       
    98 
    92 
    99         /**
    93         /**
   100          * Sets the time and instance currently focused.
    94          * Sets the time and instance currently focused.
   101          * @param aFocusTime The new focus time. If no time is focused, set
    95          * @param aFocusTime The new focus time. If no time is focused, set
   102          * the Utc time of this object to be Time::NullTTime.
    96          * the Utc time of this object to be Time::NullTTime.
   103          * @param aInstanceId the id of the focused instance.
    97          * @param aInstanceId the id of the focused instance.
   104          * @param aViewId The view id of the currently active view.
       
   105          */
    98          */
   106         void setFocusDateAndTimeAndInstanceL( const QDateTime& focusDateTime,
    99         void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime,
   107                                               const TCalenInstanceId& aInstanceId,
   100                                               const TCalenInstanceId& aInstanceId);
   108                                               const int& viewId );
       
   109 
   101 
   110     // Getters
   102     // Getters
   111         /**
   103         /**
   112          * Gets the date and time currently focused.
   104          * Gets the date and time currently focused.
   113          * @return The currently focused date and time. When no time is
   105          * @return The currently focused date and time. When no time is
   114          * focused, the default time on the current date will be returned.
   106          * focused, the default time on the current date will be returned.
   115          */
   107          */
   116         QDateTime focusDateAndTimeL() const;
   108         QDateTime focusDateAndTime() const;
   117 
   109 
   118         /**
   110         /**
   119          * Gets the time currently focused.
   111          * Gets the time currently focused.
   120          * @return The currently focused time. When no time is
   112          * @return The currently focused time. When no time is
   121          * focused, -1 will be returned.
   113          * focused, -1 will be returned.
   127          * @return The instance id currently focused. When no instance is focused,
   119          * @return The instance id currently focused. When no instance is focused,
   128          * this will be TCalenInstanceId::NullInstanceIdL()
   120          * this will be TCalenInstanceId::NullInstanceIdL()
   129          */
   121          */
   130         TCalenInstanceId instanceId() const;
   122         TCalenInstanceId instanceId() const;
   131 
   123 
   132         /**
       
   133          * Gets the id of the currently active view.
       
   134          * @return The view id of the currently active view.
       
   135          */
       
   136         int viewId() const;
       
   137         
       
   138         
   124         
   139 public:	// Multiple Context support
   125 public:	// Multiple Context support
   140 		
   126 		
   141 	   /**
   127 	   /**
   142 	    * Set multiple context ids
   128 	    * Set multiple context ids