calendarui/globaldata/inc/calencontextimpl.h
changeset 83 5aadd1120515
parent 45 b6db4fd4947b
child 89 b57382753122
equal deleted inserted replaced
82:dcd0ca396fa1 83:5aadd1120515
    96          * the Utc time of this object to be Time::NullTTime.
    96          * the Utc time of this object to be Time::NullTTime.
    97          * @param aInstanceId the id of the focused instance.
    97          * @param aInstanceId the id of the focused instance.
    98          */
    98          */
    99         void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime,
    99         void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime,
   100                                               const TCalenInstanceId& aInstanceId);
   100                                               const TCalenInstanceId& aInstanceId);
       
   101         
       
   102         /**
       
   103          * Sets start date and time that should be used for creating new instance.
       
   104          * 
       
   105          * @param startDateTime Start date and time for new instance
       
   106          */
       
   107         void setStartDateAndTimeForNewInstance(const QDateTime &startDateTime);
   101 
   108 
   102     // Getters
   109     // Getters
   103         /**
   110         /**
   104          * Gets the date and time currently focused.
   111          * Gets the date and time currently focused.
   105          * @return The currently focused date and time. When no time is
   112          * @return The currently focused date and time. When no time is
   118          * Gets the id of the instance currently focused.
   125          * Gets the id of the instance currently focused.
   119          * @return The instance id currently focused. When no instance is focused,
   126          * @return The instance id currently focused. When no instance is focused,
   120          * this will be TCalenInstanceId::NullInstanceIdL()
   127          * this will be TCalenInstanceId::NullInstanceIdL()
   121          */
   128          */
   122         TCalenInstanceId instanceId() const;
   129         TCalenInstanceId instanceId() const;
   123 
   130         
       
   131         /**
       
   132          * Returns start date and time that should be used for creating new instance.
       
   133          * Check isValid() to verify if returnd value is valid.
       
   134          * 
       
   135          * @return Start date and time for new instance
       
   136          */
       
   137         QDateTime startDateAndTimeForNewInstance() const;
   124         
   138         
   125 public:	// Multiple Context support
   139 public:	// Multiple Context support
   126 		
   140 		
   127 	   /**
   141 	   /**
   128 	    * Set multiple context ids
   142 	    * Set multiple context ids
   165         TCalenInstanceId mInstanceId;
   179         TCalenInstanceId mInstanceId;
   166         int mViewId;        
   180         int mViewId;        
   167         // Multiple context ids
   181         // Multiple context ids
   168         QList<TCalenInstanceId> mMutlipleContextIds;
   182         QList<TCalenInstanceId> mMutlipleContextIds;
   169         
   183         
       
   184         /**
       
   185          * Indicates if default time should be used for new instance creation.
       
   186          */
       
   187         QDateTime mDateTimeForNewInstance;
   170     };
   188     };
   171 
   189 
   172 #endif // CALENCONTEXTIMPL_H
   190 #endif // CALENCONTEXTIMPL_H
   173 
   191 
   174 // End of file
   192 // End of file