profilesapplication/Profiles/ProfilesGSTonesPlugin/src/CProfilesGSTonesViewSettings.h
branchRCL_3
changeset 19 cd54903d48da
parent 0 ca436256272f
equal deleted inserted replaced
18:b7fa36b488f8 19:cd54903d48da
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Data structure class for profile tones view settings.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CPROFILESGSTONESVIEWSETTINGS_H
       
    21 #define CPROFILESGSTONESVIEWSETTINGS_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CProfilesGSTonesViewFeatures;
       
    30 class CRepository;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  Data structure class for Profile GS Tones View settings. Contains only  the
       
    35 *  settings not found in Profiles Personalization view. However, Calendar
       
    36 *  and Clock alert tones are not handled by this class.
       
    37 *
       
    38 *  @lib ProfilesGSTonesPlugin.lib
       
    39 *  @since 3.1
       
    40 */
       
    41 NONSHARABLE_CLASS( CProfilesGSTonesViewSettings ) : public CBase
       
    42     {
       
    43     public:     // Constructors and destructor
       
    44 
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         static CProfilesGSTonesViewSettings* NewL(
       
    49                 CProfilesGSTonesViewFeatures& aFeatures );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CProfilesGSTonesViewSettings();
       
    55 
       
    56     public:     // New functions
       
    57 
       
    58         /**
       
    59         * Stores the value of the given setting to persistent memory if the
       
    60         * value has been changed (from that found from persistent storage).
       
    61         * @param aSettingId the ID of the setting (as defined in resources) to
       
    62         *        be checked.
       
    63         */
       
    64         void StoreIfChangedL( TInt aSettingId ) const;
       
    65 
       
    66     private:
       
    67         /**
       
    68         * C++ constructor.
       
    69         */
       
    70         CProfilesGSTonesViewSettings( CProfilesGSTonesViewFeatures& aFeatures )
       
    71             : iFeatures( aFeatures ) {};
       
    72 
       
    73         /**
       
    74         * Symbian constructor.
       
    75         */
       
    76         void ConstructL();
       
    77 
       
    78     public:     // Data
       
    79 
       
    80         // HAC setting
       
    81         TBool iHac;
       
    82 
       
    83         // HW Resource Manager central repository
       
    84         // Note, this is NULL if HAC is not supported:
       
    85         CRepository* iHwRmSession;
       
    86 
       
    87         // Reference to the variable features wrapper
       
    88         CProfilesGSTonesViewFeatures& iFeatures;
       
    89     };
       
    90 
       
    91 #endif // CPROFILESGSTONESVIEWSETTINGS_H
       
    92 
       
    93 // End of File