vmbx/vmbxcpplugin/inc/vmbxcpgroup.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:24:46 +0300
changeset 19 e44a8c097b15
parent 13 e32024264ebb
child 27 7eb70891911c
permissions -rw-r--r--
Revision: 201017 Kit: 201019

/*
 * Copyright (c) 2009 - 2010 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:  
 *
 */

#ifndef VMBXCPGROUP_H
#define VMBXCPGROUP_H

// System includes
#include <cpsettingformitemdata.h>
#include <voicemailboxdefs.h>


// Forward declarations
class VmbxUiEngine;
class CpItemDataHelper;
class HbDataFormModelItem;

// Class declaration
class VmbxCpGroup : public CpSettingFormItemData
{
    Q_OBJECT

public:
    
    /*!
        Constructor
    */
    VmbxCpGroup( 
        CpItemDataHelper &itemDataHelper);

    /*!
        Destructor
    */
    ~VmbxCpGroup();

private slots:

    /*!
        Notification slot for engine signal about 
        Voice Mailbox entries' changes
    */
    void voiceMailboxEngineEntriesUpdated();

    /*!
        Save default Mailbox
    */
    void saveDefaultMailbox(int aIndex);

    /*!
        Query cs voice number when user click line edit
    */
    void queryCsVoiceNumber();

    /*!
        Query cs video number when user click line edit
    */
    void queryCsVideoNumber();

    /*!
        Update number when vmbx number changed by OTA,OMA etc.
    */
    void vmbxNumberChanged(const TVmbxType vmbxType);

private:
    
    /*!
        Preparation before loading
    */
    void loadingPreparation(CpItemDataHelper &itemDataHelper);    
    
    /*!
        Update default mailbox
    */
    void updateDefaultMailboxToUi();

    /*!
       Update Cs voice primary 
    */
    void updateCsVoice1ToUi();

    /*!
       update Cs video primary
    */
    void updateCsVideo1ToUi();
    
    /*!
        Update all mailboxes
    */
    void updateAllMailboxesToUi();

private:
    
    // Own.
    VmbxUiEngine *mUiEngine;

    // Not own.
    CpSettingFormItemData *mDefaultMailboxEditor;    

    // Not own.
    HbDataFormModelItem *mCsVoice1Editor;

    // Not own.
    HbDataFormModelItem *mCsVideo1Editor;
};

#endif // VMBXCPGROUP_H