systemsettings/GSAccessoryPlugin/inc/gsaccmusicstandcontainer.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 CGSAccMusicStandContainer class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GSACCMUSICSTANDCONTAINER_H
       
    20 #define GSACCMUSICSTANDCONTAINER_H
       
    21 
       
    22 #include "gsaccbasecontainer.h"
       
    23 
       
    24 /**
       
    25 *  CGSAccMusicStandContainer container class
       
    26 *
       
    27 *  container class for Music Stand view
       
    28 */
       
    29 class CGSAccMusicStandContainer : 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     CGSAccMusicStandContainer( CGSAccessoryPluginModel& aModel );
       
    40 
       
    41     /**
       
    42     * Destructor.
       
    43     */
       
    44     virtual ~CGSAccMusicStandContainer();
       
    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     * @see class CGSBaseContainer.
       
    62     */
       
    63     void ConstructListBoxL( TInt aResLbxId );
       
    64 
       
    65 private: // From CCoeControl
       
    66 
       
    67     /**
       
    68     * @see class CCoeControl.
       
    69     */
       
    70     void GetHelpContext( TCoeHelpContext& aContext ) const;
       
    71 
       
    72 private:
       
    73 
       
    74     /**
       
    75     * Read default profile from model and update it to the listbox item.
       
    76     */
       
    77     void RefreshDefaultProfileL();
       
    78 
       
    79     /**
       
    80     * Read automatic answer mode from model and update it to the listbox item.
       
    81     */
       
    82     void RefreshAutoAnswerL();
       
    83 
       
    84     /**
       
    85     * Read light setting from model and update it to the listbox item.
       
    86     */
       
    87     void RefreshLightModeL();
       
    88 
       
    89 private: // data
       
    90 
       
    91     /** Text strings to show in the automatic answer mode item text box. Own. */
       
    92     CDesCArrayFlat* iAutoAnswerItems;
       
    93 
       
    94     /** Text strings to show in the lights mode item text box. Own. */
       
    95     CDesCArrayFlat* iLightModeItems;
       
    96 
       
    97     };
       
    98 
       
    99 #endif // GSACCMUSICSTANDCONTAINER_H