messagingapp/msgsettings/settingsview/inc/smssettingsprivate.h
changeset 25 84d9eb65b26f
child 48 4f501b74aeb1
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 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 status of service messages
       
    41      * @param serviceMessages status true or false
       
    42      */
       
    43     void setReceiveSerivceMessages(TBool serviceMessages);
       
    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 settingsServiceMessagesAndCharEncoding(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      * delete sms service address
       
    92      * @param aDeleteIndex refers to the index to delete
       
    93      */
       
    94     void deleteSmsMessageCenter(TInt aDeleteIndex);
       
    95     
       
    96 
       
    97     /**
       
    98      * get the service name and number by the index value
       
    99      * @param index for the service need
       
   100      * @param centerNumber address of the service
       
   101      * @param centerName name of the service
       
   102      */
       
   103     void smsCenterNameAndNumber(int index, HBufC** centerNumber,
       
   104                                 HBufC** centerName);
       
   105 
       
   106 private:
       
   107 
       
   108     /*
       
   109      * 1st phase Constructor 
       
   110      */
       
   111     SmsSettingsPrivate();
       
   112 
       
   113     /**
       
   114      * 2nd phase constructor
       
   115      */
       
   116     void ConstructL();
       
   117 
       
   118 };
       
   119 
       
   120 #endif // SMSSETTINS_H
       
   121