calendarui/globaldata/inc/calencontext.h
changeset 45 b6db4fd4947b
parent 18 c198609911f9
child 83 5aadd1120515
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    52 
    52 
    53     // Setters
    53     // Setters
    54         /**
    54         /**
    55          * Sets the date and time currently focused.
    55          * Sets the date and time currently focused.
    56          * @param aFocusTime The new focus date and time.
    56          * @param aFocusTime The new focus date and time.
    57          * @param aViewId The view id of the currently active view.
       
    58          */
    57          */
    59         virtual void setFocusDateAndTimeL( const QDateTime& focusDateTime,
    58         virtual void setFocusDateAndTime( const QDateTime& focusDateTime) = 0;
    60                                         const int& viewId ) = 0;
       
    61 
    59 
    62         /**
    60         /**
    63          * Sets the date currently focused. When retrieving the focus
    61          * Sets the date currently focused. When retrieving the focus
    64          * date and time after calling this function, the time component
    62          * date and time after calling this function, the time component
    65          * will be set to the default of view. When retrieving the focus
    63          * will be set to the default of view. When retrieving the focus
    66          * time only, it will be set to -1.
    64          * time only, it will be set to -1.
    67          * @param aFocusDate The new focus date and time.
    65          * @param aFocusDate The new focus date and time.
    68          * @param aViewId The view id of the currently active view.
       
    69          */
    66          */
    70         virtual void setFocusDateL( const QDateTime& focusDateTime,
    67         virtual void setFocusDate( const QDateTime& focusDateTime) = 0;
    71                                     const int& viewId ) = 0;
       
    72 
    68 
    73         /**
    69         /**
    74          * Sets the id of the instance currently focused.
    70          * Sets the id of the instance currently focused.
    75          * @param aInstanceId the id of the focused instance.
    71          * @param aInstanceId the id of the focused instance.
    76          * @param aViewId The view id of the currently active view.
       
    77          */
    72          */
    78         virtual void setInstanceIdL( const TCalenInstanceId& instanceId,
    73         virtual void setInstanceId( const TCalenInstanceId& instanceId ) = 0;
    79                                      const int& viewId ) = 0;
       
    80 
    74 
    81         /**
    75         /**
    82          * Sets the time and instance currently focused.
    76          * Sets the time and instance currently focused.
    83          * @param aFocusTime The new focus time. If no time is focused, set
    77          * @param aFocusTime The new focus time. If no time is focused, set
    84          * the Utc time of this object to be Time::NullTTime.
    78          * the Utc time of this object to be Time::NullTTime.
    85          * @param aInstanceId the id of the focused instance.
    79          * @param aInstanceId the id of the focused instance.
    86          * @param aViewId The view id of the currently active view.
       
    87          */
    80          */
    88         virtual void setFocusDateAndTimeAndInstanceL( const QDateTime& focusDateTime,
    81         virtual void setFocusDateAndTimeAndInstance( const QDateTime& focusDateTime,
    89                                                       const TCalenInstanceId& aInstanceId,
    82                                                       const TCalenInstanceId& aInstanceId ) = 0;
    90                                                       const int& viewId ) = 0;
       
    91 
    83 
    92     // Getters
    84     // Getters
    93         /**
    85         /**
    94          * Gets the date and time currently focused.
    86          * Gets the date and time currently focused.
    95          * @return The currently focused date and time. When no time is
    87          * @return The currently focused date and time. When no time is
    96          * focused, the default time on the current date will be returned.
    88          * focused, the default time on the current date will be returned.
    97          */
    89          */
    98         virtual QDateTime focusDateAndTimeL() const = 0;
    90         virtual QDateTime focusDateAndTime() const = 0;
       
    91 	
    99 
    92 
   100         /**
    93         /**
   101          * Gets the time currently focused.
    94          * Gets the time currently focused.
   102          * @return The currently focused time. When no time is
    95          * @return The currently focused time. When no time is
   103          * focused, -1 will be returned.
    96          * focused, -1 will be returned.
   109          * @return The instance id currently focused. When no instance is focused,
   102          * @return The instance id currently focused. When no instance is focused,
   110          * this will be TCalenInstanceId::NullInstanceIdL()
   103          * this will be TCalenInstanceId::NullInstanceIdL()
   111          */
   104          */
   112         virtual TCalenInstanceId instanceId() const = 0;
   105         virtual TCalenInstanceId instanceId() const = 0;
   113 
   106 
   114         /**
       
   115          * Gets the id of the currently active view.
       
   116          * @return The view id of the currently active view.
       
   117          */
       
   118         virtual int viewId() const = 0;
       
   119         
       
   120  
       
   121  public: // For Mutliple Context Support    
   107  public: // For Mutliple Context Support    
   122  
   108  
   123      /**
   109      /**
   124 	    * Set multiple context ids
   110 	    * Set multiple context ids
   125 	    *
   111 	    *
   152 	    *
   138 	    *
   153 	    * @return 
   139 	    * @return 
   154 	    */
   140 	    */
   155 		virtual int mutlipleContextIdsCount() = 0;
   141 		virtual int mutlipleContextIdsCount() = 0;
   156 		
   142 		
   157 		/**
       
   158 	    * Sets the user selected landmark
       
   159 	    * @param aLandMark	Landmark object
       
   160 	    */
       
   161 		//virtual void SetLandMark(CPosLandmark* aLandMark) = 0;
       
   162 		
       
   163 		/**
       
   164 	    * Returns the user selected landmark
       
   165 	    * @return Landmark object
       
   166 	    */
       
   167 		//virtual CPosLandmark* GetLandMark() = 0;
       
   168 		
       
   169 		/**
       
   170 	    * Resets the landmark
       
   171 	    */
       
   172 		//virtual void ResetLandMark() = 0;
       
   173 		
       
   174     };
   143     };
   175 
   144 
   176 #endif // CALENCONTEXT_H
   145 #endif // CALENCONTEXT_H
   177 
   146 
   178 // End of file
   147 // End of file