messagingapp/msgsettings/settingsview/inc/smssettingsprivate.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 18 Aug 2010 09:45:25 +0300
changeset 52 12db4185673b
parent 25 84d9eb65b26f
permissions -rw-r--r--
Revision: 201031 Kit: 201033

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:  This provides the messaging mw interface for sms
 *
 */

#ifndef SMSSETTINS_H
#define SMSSETTINS_H

#include <e32base.h>

/**
 * SMS setting class implements the SMSC settings
 * The settings will be stored in the central repository.
 */
class SmsSettingsPrivate : public CBase
{
public:

    //2phase constructor
    static SmsSettingsPrivate* NewL();

    /*
     * Destructor
     */
    ~SmsSettingsPrivate();

    /**
     * set the character encoding
     * @param status true or false
     */
    void setCharacterEncodingL(TBool status);

    /**
     * get the status of deliver report and
     * character encoding
     * @param statusEncoding charcter encoding
     */
    void settingsCharEncodingL(TBool& statusEncoding);

    /**
     * get all the sms service names and 
     * the default selected index
     * @param accessPoints array of access names
     * @param defaultIndex, default set index
     */
    void getAllSMSMessageCenterL(RPointerArray<HBufC>& accessPoints,
                                int &defaultIndex);

    /**
     * set the default index
     * @param index default index
     */
    void setSMSMessageCenterL(int index);

    /**
     * edit the sms service address
     * @param address sms address number
     * @param name sms service name
     * @param index value to modify
     */
    void editSMSServiceCentreL(HBufC* address, HBufC* name, TInt index);

    /**
     * add a new sms service address
     * @param address service address number
     * @param name service name
     */
    void addSmsMessageCenterL(HBufC* address, HBufC* name);
    
    /**
     * delete sms service address
     * @param aDeleteIndex refers to the index to delete
     */
    void deleteSmsMessageCenterL(TInt aDeleteIndex);
    

    /**
     * get the service name and number by the index value
     * @param index for the service need
     * @param centerNumber address of the service
     * @param centerName name of the service
     */
    void smsCenterNameAndNumberL(int index, HBufC** centerNumber,
                                HBufC** centerName);

private:

    /*
     * 1st phase Constructor 
     */
    SmsSettingsPrivate();

    /**
     * 2nd phase constructor
     */
    void ConstructL();

};

#endif // SMSSETTINS_H