messagingapp/msgsettings/msgsettingsmw/inc/smssettingsprivate.h
changeset 23 238255e8b033
equal deleted inserted replaced
5:4697dfb2d7ad 23:238255e8b033
       
     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      * sets the delivery report
       
    41      * @param report status true or false
       
    42      */
       
    43     void setDeliveryReport(TBool report);
       
    44 
       
    45     /**
       
    46      * set the character encoding
       
    47      * @param status true or false
       
    48      */
       
    49     void setCharacterEncoding(TBool status);
       
    50 
       
    51     /**
       
    52      * get the status of deliver report and
       
    53      * character encoding
       
    54      * @param report status of delivery report
       
    55      * @param statusEncoding charcter encoding
       
    56      */
       
    57     void settingsDeliverReportAndCharEncoding(TBool& report,
       
    58                                               TBool& statusEncoding);
       
    59 
       
    60     /**
       
    61      * get all the sms service names and 
       
    62      * the default selected index
       
    63      * @param accessPoints array of access names
       
    64      * @param defaultIndex, default set index
       
    65      */
       
    66     void getAllSMSMessageCenter(RPointerArray<HBufC>& accessPoints,
       
    67                                 int &defaultIndex);
       
    68 
       
    69     /**
       
    70      * set the default index
       
    71      * @param index default index
       
    72      */
       
    73     void setSMSMessageCenter(int index);
       
    74 
       
    75     /**
       
    76      * edit the sms service address
       
    77      * @param address sms address number
       
    78      * @param name sms service name
       
    79      * @param index value to modify
       
    80      */
       
    81     void editSMSServiceCentre(HBufC* address, HBufC* name, TInt index);
       
    82 
       
    83     /**
       
    84      * add a new sms service address
       
    85      * @param address service address number
       
    86      * @param name service name
       
    87      */
       
    88     void addSmsMessageCenter(HBufC* address, HBufC* name);
       
    89 
       
    90     /**
       
    91      * get the service name and number by the index value
       
    92      * @param index for the service need
       
    93      * @param centerNumber address of the service
       
    94      * @param centerName name of the service
       
    95      */
       
    96     void smsCenterNameAndNumber(int index, HBufC** centerNumber,
       
    97                                 HBufC** centerName);
       
    98 
       
    99     /**
       
   100      * set the sms email gateway address
       
   101      * @param emailGateway an address
       
   102      */
       
   103     void setEmailGateway(HBufC* emailGateway);
       
   104 
       
   105     /**
       
   106      * set the sms email gateway number
       
   107      * @param emailGateway an number
       
   108      */
       
   109     void setEmailSeriveCenterNumber(HBufC* emailNumber);
       
   110 
       
   111     /**
       
   112      * get the email gateway and service center number
       
   113      * @param emailGateway
       
   114      * @param serviceNumber
       
   115      */
       
   116     void emailEmailGatewayAndServiceCenterNumber(HBufC** emailGateway,
       
   117                                                  HBufC** serviceNumber);
       
   118     
       
   119 private:
       
   120 
       
   121     /*
       
   122      * 1st phase Constructor 
       
   123      */
       
   124     SmsSettingsPrivate();
       
   125 
       
   126     /**
       
   127      * 2nd phase constructor
       
   128      */
       
   129     void ConstructL();
       
   130 
       
   131     /*
       
   132      * Creates the repository first time
       
   133      */
       
   134     void createRepositoryL();
       
   135 };
       
   136 
       
   137 #endif // SMSSETTINS_H
       
   138