meetingrequest/mrdb/inc/cesmrcaldbmgr.h
branchRCL_3
changeset 19 b13141f05c3d
parent 16 4ce476e64c59
equal deleted inserted replaced
17:8592a65ad3fb 19:b13141f05c3d
    67      * Returns a valid pointer if status is EAvailable or
    67      * Returns a valid pointer if status is EAvailable or
    68      * EAvailableWithoutTombs, otherwise NULL.
    68      * EAvailableWithoutTombs, otherwise NULL.
    69      * @return instance view pointer, ownership not transferred
    69      * @return instance view pointer, ownership not transferred
    70      */
    70      */
    71     virtual CCalInstanceView* NormalDbInstanceView() = 0;
    71     virtual CCalInstanceView* NormalDbInstanceView() = 0;
    72     
    72 
    73     /**
    73     /**
    74      * Accessor for Agenda Model CCalInstanceView owned by this utility.
    74      * Accessor for Agenda Model CCalInstanceView owned by this utility.
    75      * Returns a valid array of pointer if status is EAvailable or
    75      * Returns a valid array of pointer if status is EAvailable or
    76      * EAvailableWithoutTombs, otherwise NULL.
    76      * EAvailableWithoutTombs, otherwise NULL.
    77      * @return instance view pointer, ownership not transferred
    77      * @return instance view pointer, ownership not transferred
   233     /**
   233     /**
   234      * Get calendar's color by calendar name
   234      * Get calendar's color by calendar name
   235      * @param aCalendarName Reference to calendar name
   235      * @param aCalendarName Reference to calendar name
   236      * @return calendar's color rgb value
   236      * @return calendar's color rgb value
   237      */
   237      */
   238     virtual TRgb GetCalendarColorByNameL( TDesC& aCalendarName ) = 0;
   238     virtual TRgb GetCalendarColorByNameL( const TDesC& aCalendarName ) = 0;
   239 
   239 
   240     /*
   240     /**
   241      * Set current calendar by pass calendar index to it
   241      * Set current calendar by pass calendar index to it
   242      * @param aIndex current calendar index
   242      * @param aIndex current calendar index
   243      */
   243      */
   244     virtual void SetCurCalendarByIndex( TInt aIndex ) = 0;
   244     virtual void SetCurCalendarByIndex( TInt aIndex ) = 0;
   245 
   245 
   246     /*
   246     /**
   247      * Set current calendar by pass calendar name to it
   247      * Set current calendar by pass calendar name to it
   248      * @param aCalendarName current calendar name
   248      * @param aCalendarName current calendar name
   249      */
   249      */
   250     virtual void SetCurCalendarByNameL( TDesC& aCalendarName ) = 0;
   250     virtual void SetCurCalendarByNameL( const TDesC& aCalendarName ) = 0;
   251 
   251 
   252     /*
   252     /**
   253      * Set current calendar by pass entry
   253      * Set current calendar by pass entry
   254      * @param aColId current calendar collectionID
   254      * @param aColId current calendar collectionID
   255      */
   255      */
   256     virtual void SetCurCalendarByColIdL( TInt aColId ) = 0;
   256     virtual void SetCurCalendarByColIdL( TInt aColId ) = 0;
   257     
   257 
   258     /*
   258     /**
   259      * Set current calendar by pass entry
   259      * Set current calendar by pass entry
   260      * @param aEntry entry which belongs current calendar
   260      * @param aEntry entry which belongs current calendar
   261      */
   261      */
   262     virtual void SetCurCalendarByEntryL( MESMRCalEntry& aEntry ) = 0;
   262     virtual void SetCurCalendarByEntryL( MESMRCalEntry& aEntry ) = 0;
       
   263 
       
   264     /**
       
   265      * Sets current calendar by calendar database file id.
       
   266      * @param aDbId calendar database file id to use
       
   267      */
       
   268     virtual void SetCurCalendarByDbIdL( TCalFileId aDbId ) = 0;
   263 
   269 
   264     /*
   270     /*
   265      * Get color of current calendar
   271      * Get color of current calendar
   266      * @return current calendar's color(rgb value)
   272      * @return current calendar's color(rgb value)
   267      */
   273      */
   270     /*
   276     /*
   271      * Get colId of current calendar
   277      * Get colId of current calendar
   272      * @return current calendar's colId
   278      * @return current calendar's colId
   273      */
   279      */
   274     virtual TInt GetCurCalendarColIdL() = 0;
   280     virtual TInt GetCurCalendarColIdL() = 0;
   275     
   281 
   276     /*
   282     /*
   277      * Get index of current calendar
   283      * Get index of current calendar
   278      * @return current calendar's index
   284      * @return current calendar's index
   279      */
   285      */
   280     virtual TInt GetCurCalendarIndex() = 0;
   286     virtual TInt GetCurCalendarIndex() = 0;
   290      * Get instanceview by CCalEntry
   296      * Get instanceview by CCalEntry
   291      * @param aCalEntry use to get calendar which aCalEntry belongs
   297      * @param aCalEntry use to get calendar which aCalEntry belongs
   292      * @return a CCalInstanceView that aCalEntry belongs
   298      * @return a CCalInstanceView that aCalEntry belongs
   293      */
   299      */
   294     virtual CCalInstanceView* InstanceViewL(const CCalEntry& aCalEntry ) = 0;
   300     virtual CCalInstanceView* InstanceViewL(const CCalEntry& aCalEntry ) = 0;
   295     
   301 
   296     /*
   302     /*
   297      * Get current entryview
   303      * Get current entryview
   298      * @return current entryView
   304      * @return current entryView
   299      */
   305      */
   300     virtual CCalEntryView* EntryView() = 0;
   306     virtual CCalEntryView* EntryView() = 0;
   385     void GetMultiCalendarNameListL(
   391     void GetMultiCalendarNameListL(
   386             RArray<TPtrC>& aCalendarNameList);
   392             RArray<TPtrC>& aCalendarNameList);
   387     TPtrC GetCalendarNameByEntryL(
   393     TPtrC GetCalendarNameByEntryL(
   388             MESMRCalEntry& aEntry);
   394             MESMRCalEntry& aEntry);
   389     TRgb GetCalendarColorByNameL(
   395     TRgb GetCalendarColorByNameL(
   390             TDesC& aCalendarName);
   396             const TDesC& aCalendarName);
   391     void SetCurCalendarByNameL(
   397     void SetCurCalendarByNameL(
   392             TDesC& aCalendarName );
   398             const TDesC& aCalendarName );
   393     void SetCurCalendarByIndex(
   399     void SetCurCalendarByIndex(
   394             TInt aIndex );
   400             TInt aIndex );
   395     void SetCurCalendarByColIdL(
   401     void SetCurCalendarByColIdL(
   396             TInt aColId );
   402             TInt aColId );
   397     void SetCurCalendarByEntryL(
   403     void SetCurCalendarByEntryL(
   398             MESMRCalEntry& aEntry );
   404             MESMRCalEntry& aEntry );
       
   405     void SetCurCalendarByDbIdL( TCalFileId aDbId );
   399     TRgb GetCurCalendarColor();
   406     TRgb GetCurCalendarColor();
   400     TInt GetCurCalendarColIdL();
   407     TInt GetCurCalendarColIdL();
   401     TInt GetCurCalendarIndex();
   408     TInt GetCurCalendarIndex();
   402     CCalEntryView* EntryViewL(const CCalEntry& aCalEntry );
   409     CCalEntryView* EntryViewL(const CCalEntry& aCalEntry );
   403     CCalInstanceView* InstanceViewL(const CCalEntry& aCalEntry );
   410     CCalInstanceView* InstanceViewL(const CCalEntry& aCalEntry );