messagingapp/msgsettings/msgsettingsmw/inc/msgsettingsutil.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
child 79 2981cb3aa489
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
     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:  This provides some utility functions to msgsettings m/w
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef MSGSETTINGS_UTIL_H
       
    19 #define MSGSETTINGS_UTIL_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class MsgSettingsUtil
       
    24 {
       
    25     
       
    26 public:
       
    27     
       
    28     /**
       
    29      * Function to read email settings from CRE file
       
    30      * @param aSmsC - sms center number
       
    31      * @param aDestinationAddress - gateway address
       
    32      * @return int error status
       
    33      */
       
    34    static TInt ReadEmailOverSmsSettingsL(
       
    35                           TDes& aSmsc, 
       
    36                           TDes& aDestinationAddress); 
       
    37    
       
    38    /**
       
    39     * function writing gateway address into CRE file
       
    40     * @param aDestinationAddress - gateway address
       
    41     * @param aModifiable - writing status
       
    42     */
       
    43    static void WriteEmailGatewayOverSmsSettingsL(
       
    44                              const TDes& aDestinationAddress,
       
    45                              const TBool& aModifiable);
       
    46    
       
    47    /**
       
    48     * function writing email service number
       
    49     * @param aSmsc - service center number
       
    50     * @param aModifiable - writing status
       
    51     */
       
    52    static void WriteEmailServiceNumberOverSmsSettingsL(
       
    53                              const TDes& aSmsc,
       
    54                              const TBool& aModifiable);   
       
    55 };
       
    56 
       
    57 #endif   //MSGSETTINGS_UTIL_H