meetingrequest/mrmbutilsextension/inc/cmrmbutilssettings.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2008 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: MBUtils settings definition
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_MRMBUTILSSETTINGS_H
       
    19 #define C_MRMBUTILSSETTINGS_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <mmrmbutilssettings.h>
       
    23 
       
    24 class CFSMailClient;
       
    25 class MMRMailboxUtilsObserver;
       
    26 
       
    27 /**
       
    28  * CMRMBUtilsSettings is class accessing CMAIL specific
       
    29  * mailboxutils settins.
       
    30  * 
       
    31  * Settings include:
       
    32  *   - key to S60 MR Enabler framework settings
       
    33  *   - CMAIL mailbox plug-in UID
       
    34  *   - CMAIL mailbox ID
       
    35  *   
       
    36  *   @see MMRMBUtilsSettings
       
    37  */
       
    38 NONSHARABLE_CLASS( CMRMBUtilsSettings ) : 
       
    39         public CBase,
       
    40         public MMRMBUtilsSettings
       
    41     {
       
    42 public: // Constructors and destructors
       
    43 
       
    44     /**
       
    45     * Symbian two-phased constructor.
       
    46     * @param aMailClient Reference to mail client object
       
    47     * @return instantiated object
       
    48     */
       
    49     static CMRMBUtilsSettings* NewL(
       
    50             CFSMailClient& aMailClient );        
       
    51 
       
    52     /**
       
    53     * Destructor.
       
    54     */
       
    55     ~CMRMBUtilsSettings();
       
    56 
       
    57 public: // From MMRMBUtilsSettings
       
    58     void SetDefaultMailboxSettingL( 
       
    59             TInt aId );
       
    60     void GetDefaultMailboxSettingsL( TInt& aId );
       
    61     
       
    62 public: // New functions
       
    63 
       
    64     /**
       
    65     * Gets the default CMAIL information from central repository.
       
    66     * @param aDefaultMailbox Link to S60 MR framework setting
       
    67     * @param aMailboxPluginUID CMAIL Mailbox plugin ID
       
    68     * @param aMailboxId CMAIL mailbox ID  
       
    69     */
       
    70     TInt GetDefaultCMailMRMailBoxL( 
       
    71             TInt& aDefaultBox,
       
    72             TUid& aMailboxPluginUID,
       
    73             TInt& aMailboxId );
       
    74 
       
    75     /**
       
    76     * Sets the default CMAIL information into central repository.
       
    77     * @param aDefaultMailbox Link to S60 MR framework setting
       
    78     * @param aMailboxPluginUID CMAIL Mailbox plugin ID
       
    79     * @param aMailboxId CMAIL mailbox ID  
       
    80     */       
       
    81     TInt SetDefaultCMailMRMailBoxL( 
       
    82             TInt aDefaultBox,
       
    83             TUid aMailboxPluginUID,
       
    84             TInt aMailboxId );
       
    85     
       
    86 private: // Constructors and destructors
       
    87     CMRMBUtilsSettings(
       
    88             CFSMailClient& aMailClient );
       
    89     void ConstructL();
       
    90     
       
    91 private:
       
    92     /// Ref: Reference to mail client object
       
    93     CFSMailClient& iMailClient;
       
    94     };
       
    95 
       
    96 #endif // C_MRMBUTILSSETTINGS_H
       
    97 
       
    98 // EOF