messagingapp/msgsettings/settingsview/inc/smssettingsprivate.h
author hgs
Sun, 25 Jul 2010 18:59:19 +0530
changeset 48 4f501b74aeb1
parent 25 84d9eb65b26f
permissions -rw-r--r--
201029_02

/*
 * 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