messagingapp/msgsettings/settingsview/inc/smssettingsprivate.h
branchRCL_3
changeset 57 ebe688cedc25
equal deleted inserted replaced
54:fa1df4b99609 57:ebe688cedc25
       
     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 the messaging mw interface for sms
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef SMSSETTINS_H
       
    19 #define SMSSETTINS_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24  * SMS setting class implements the SMSC settings
       
    25  * The settings will be stored in the central repository.
       
    26  */
       
    27 class SmsSettingsPrivate : public CBase
       
    28 {
       
    29 public:
       
    30 
       
    31     //2phase constructor
       
    32     static SmsSettingsPrivate* NewL();
       
    33 
       
    34     /*
       
    35      * Destructor
       
    36      */
       
    37     ~SmsSettingsPrivate();
       
    38 
       
    39     /**
       
    40      * set the character encoding
       
    41      * @param status true or false
       
    42      */
       
    43     void setCharacterEncodingL(TBool status);
       
    44 
       
    45     /**
       
    46      * get the status of deliver report and
       
    47      * character encoding
       
    48      * @param statusEncoding charcter encoding
       
    49      */
       
    50     void settingsCharEncodingL(TBool& statusEncoding);
       
    51 
       
    52     /**
       
    53      * get all the sms service names and 
       
    54      * the default selected index
       
    55      * @param accessPoints array of access names
       
    56      * @param defaultIndex, default set index
       
    57      */
       
    58     void getAllSMSMessageCenterL(RPointerArray<HBufC>& accessPoints,
       
    59                                 int &defaultIndex);
       
    60 
       
    61     /**
       
    62      * set the default index
       
    63      * @param index default index
       
    64      */
       
    65     void setSMSMessageCenterL(int index);
       
    66 
       
    67     /**
       
    68      * edit the sms service address
       
    69      * @param address sms address number
       
    70      * @param name sms service name
       
    71      * @param index value to modify
       
    72      */
       
    73     void editSMSServiceCentreL(HBufC* address, HBufC* name, TInt index);
       
    74 
       
    75     /**
       
    76      * add a new sms service address
       
    77      * @param address service address number
       
    78      * @param name service name
       
    79      */
       
    80     void addSmsMessageCenterL(HBufC* address, HBufC* name);
       
    81     
       
    82     /**
       
    83      * delete sms service address
       
    84      * @param aDeleteIndex refers to the index to delete
       
    85      */
       
    86     void deleteSmsMessageCenterL(TInt aDeleteIndex);
       
    87     
       
    88 
       
    89     /**
       
    90      * get the service name and number by the index value
       
    91      * @param index for the service need
       
    92      * @param centerNumber address of the service
       
    93      * @param centerName name of the service
       
    94      */
       
    95     void smsCenterNameAndNumberL(int index, HBufC** centerNumber,
       
    96                                 HBufC** centerName);
       
    97 
       
    98 private:
       
    99 
       
   100     /*
       
   101      * 1st phase Constructor 
       
   102      */
       
   103     SmsSettingsPrivate();
       
   104 
       
   105     /**
       
   106      * 2nd phase constructor
       
   107      */
       
   108     void ConstructL();
       
   109 
       
   110 };
       
   111 
       
   112 #endif // SMSSETTINS_H
       
   113