systemsettings/GSAccessoryPlugin/inc/gsaccloopsetcontainer.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2005-2008 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:  Declaration of CGSAccLoopsetContainer class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSACCLOOPSETCONTAINER_H
       
    20 #define GSACCLOOPSETCONTAINER_H
       
    21 
       
    22 #include "gsaccbasecontainer.h"
       
    23 
       
    24 /**
       
    25 *  CGSAccLoopsetContainer container class
       
    26 *
       
    27 *  container class for Loopset view
       
    28 */
       
    29 class CGSAccLoopsetContainer : public CGSAccBaseContainer
       
    30     {
       
    31 
       
    32 public: // Constructors and destructor
       
    33 
       
    34     /**
       
    35     * First phase constructor.
       
    36     *
       
    37     * @param aModel Data model for reading and writing settings.
       
    38     */
       
    39     CGSAccLoopsetContainer( CGSAccessoryPluginModel& aModel );
       
    40 
       
    41     /**
       
    42     * Destructor.
       
    43     */
       
    44     virtual ~CGSAccLoopsetContainer();
       
    45 
       
    46 public: // From CGSAccBaseContainer
       
    47 
       
    48     /**
       
    49     * @see class CGSAccBaseContainer.
       
    50     */
       
    51     void UpdateListBoxL( TInt aFeatureId );
       
    52 
       
    53 private: // From CGSBaseContainer
       
    54 
       
    55     /**
       
    56     * @see class CGSBaseContainer.
       
    57     */
       
    58     void ConstructL( const TRect& aRect );
       
    59 
       
    60     /**
       
    61     * Constructs listbox and initializes its sub-folders
       
    62     *
       
    63     * @param aResLbxId Resource ID of the listbox item array
       
    64     */
       
    65     void ConstructListBoxL( TInt aResLbxId );
       
    66 
       
    67 private: // From CCoeControl
       
    68 
       
    69     /**
       
    70     * @see class CCoeControl.
       
    71     */
       
    72     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    73 
       
    74 private:
       
    75 
       
    76     /**
       
    77     * Read default profile from model and update it to the listbox item.
       
    78     */
       
    79     void RefreshDefaultProfileL();
       
    80 
       
    81     /**
       
    82     * Read automatic answer mode from model and update it to the listbox item.
       
    83     */
       
    84     void RefreshAutoAnswerL();
       
    85 
       
    86 private: // data
       
    87 
       
    88     /** Text strings to show in the automatic answer mode item text box. Own. */
       
    89     CDesCArrayFlat* iAutoAnswerItems;
       
    90 
       
    91     };
       
    92 
       
    93 #endif // GSACCLOOPSETCONTAINER_H