emailservices/emailframework/commonlib/inc/cmrcalendarinfo.h
changeset 0 8466d47a6819
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Meeting Request calendar info mailbox extension
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRCALENDARINFO_H
       
    19 #define CMRCALENDARINFO_H
       
    20 
       
    21 #include <calcommon.h>    // TCalFileId
       
    22 #include "cemailextensionbase.h"
       
    23 
       
    24 // interface UID value passed to CFSMailBox::ExtensionL
       
    25 const TUid KMailboxExtMrCalInfo        = { 0x1020696a };
       
    26 
       
    27 /**
       
    28  * Calendar info extension for CFSMailBox
       
    29  * 
       
    30  * @code
       
    31  * CEmailExtension* extension = mailbox->ExtensionL( KMailboxExtMrCalInfo );
       
    32  * CMRCalendarInfo* calInfo = reinterpret_cast<CMRCalendarInfo*>( extension );
       
    33  * TCalFileId id;
       
    34  * calInfo->GetCalendarDatabaseIdL( id );
       
    35  * @endcode
       
    36  * 
       
    37  */
       
    38 class CMRCalendarInfo : public CEmailExtension
       
    39 {
       
    40 public:
       
    41     
       
    42     /**
       
    43     * Return id of calendar database used with sync.
       
    44     * @param aId database id is returned in this argument
       
    45     */
       
    46     virtual void GetCalendarDatabaseIdL( TCalFileId& aId ) const = 0;
       
    47 
       
    48     /**
       
    49     * Sets calendar database id.
       
    50     * @param aId database id
       
    51     */    
       
    52     virtual void SetCalendarDatabaseIdL( const TCalFileId& aId ) = 0;
       
    53 
       
    54 protected:    
       
    55     CMRCalendarInfo( const TUid& aUid );
       
    56 };
       
    57 
       
    58 #endif // CMRCALENDARINFO_H