gssettingsuis/Gs/GSCallBarringPlugin/Inc/GSInternetBarringContainer.h
branchRCL_3
changeset 25 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
24:8ee96d21d9bf 25:7e0eff37aedb
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Container for Int. Barrings sub-menu in General Settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __GSSETTLISTINTERNETBARRINGCONTAINER_H__
       
    20 #define __GSSETTLISTINTERNETBARRINGCONTAINER_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include "gsbasecontainer.h"
       
    24 #include "GSPhoneSettingConstants.h"
       
    25 #include "CallBarringPlugin.hrh"
       
    26 #include <centralrepository.h>
       
    27 // CLASS DECLARATION
       
    28 class CGSListBoxItemTextArray;
       
    29 
       
    30 /**
       
    31 * CGSSettListInternetBarringContainer container class
       
    32 * @since 3.0
       
    33 */
       
    34 class CGSSettListInternetBarringContainer : public CGSBaseContainer
       
    35     {
       
    36     public: // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * Symbian OS default constructor. 
       
    40         *
       
    41         * @param aRect gives the correct TRect for construction.
       
    42         */
       
    43         void ConstructL( const TRect& aRect );
       
    44 
       
    45         /* Destructor */
       
    46         ~CGSSettListInternetBarringContainer();
       
    47 
       
    48     public:  //from CGSBaseContainer
       
    49 
       
    50         /* 
       
    51         * Creates list box object.
       
    52         * @param aResLbxId resource list id to create list box.
       
    53         */
       
    54         void ConstructListBoxL( TInt aResLbxId );
       
    55         
       
    56         void UpdateListBoxL();
       
    57     
       
    58     public: // New
       
    59     
       
    60     		/** 
       
    61         * Returns one of the VoIP call related values from Cent. Repository
       
    62         * @param aVoipSettingId name of the Cent. Repository key to fetch
       
    63         * @param aVoipId value of Cent. Repository key
       
    64         * @return KErrNone if successful
       
    65         */
       
    66         TInt GetVoIPCallSettingValue( 
       
    67             const TGSVoIPSetting aVoipSettingId, 
       
    68             TInt& aVoipId );        
       
    69                 
       
    70         /** 
       
    71         * Sets one of the VoIP call related values from Cent. Repository
       
    72         * @param aVoipSettingId name of the Cent. Repository key to set
       
    73         * @param aVoipId value of Cent. Repository key
       
    74         * @return KErrNone if successful
       
    75         */
       
    76         TInt SetVoIPCallSettingValue( 
       
    77             const TGSVoIPSetting aVoipSettingId, 
       
    78             TInt aVoipId ); 
       
    79             
       
    80         /**
       
    81         * Gets SCCP status from Central Repository
       
    82         * @param aStatus value of Cent. Repository key
       
    83         * @return KErrNone if successful
       
    84         */    
       
    85         TInt GetSCCPStatus( TInt& aStatus );
       
    86 
       
    87     private: //new
       
    88 
       
    89         /*
       
    90         * Creates items for the list box.
       
    91         */
       
    92         void CreateListBoxItemsL();
       
    93 
       
    94         /**
       
    95         * Required for help.
       
    96         */
       
    97         void GetHelpContext(TCoeHelpContext& aContext) const;
       
    98         
       
    99         /*
       
   100         * Creates anonymous item.
       
   101         */
       
   102         void MakeAnonymousItemL();
       
   103         
       
   104         /*
       
   105         * Converting value
       
   106         */
       
   107         void SwitchValue( TInt& aValue );
       
   108 
       
   109 
       
   110     private: // member variables
       
   111     
       
   112         //Resource texts for setting items
       
   113         CDesCArrayFlat*          iItems;
       
   114         // Listbox item array.
       
   115         CGSListBoxItemTextArray* iListboxItemArray;
       
   116         //CenRep handle
       
   117         CRepository* iRichCallRepository;
       
   118         CRepository* iTelephonyRepository;
       
   119     };
       
   120 
       
   121 #endif //GSINTERNETBARRINGCONTAINER_H
       
   122 
       
   123 // End of File