contextframework/cfw/inc/cfcontextsourcesettingsmanager/cfcontextsourcesettingimpl.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-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:  CFContextSourceSettingImpl class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CFCONTEXTSOURCESETTINGIMPL_H
       
    21 #define C_CFCONTEXTSOURCESETTINGIMPL_H
       
    22 
       
    23 #include "cfcontextsourcesetting.h"
       
    24 
       
    25 #include <cfkeyvaluepair.h>
       
    26 
       
    27 /**
       
    28 *  Context source setting class implementation.
       
    29 *
       
    30 *  @lib -
       
    31 *  @since S60 4.0
       
    32 */
       
    33 NONSHARABLE_CLASS( CCFContextSourceSettingImpl ):
       
    34     public CCFContextSourceSetting
       
    35     {
       
    36     public:
       
    37 
       
    38         // Two phased constrcutors
       
    39         static CCFContextSourceSettingImpl* NewL();
       
    40         static CCFContextSourceSettingImpl* NewLC();
       
    41 
       
    42         // Destructor
       
    43         ~CCFContextSourceSettingImpl();
       
    44         
       
    45     public: // From base classes
       
    46 
       
    47         // @see CCFContextSourceSetting
       
    48         const TDesC& Name() const;
       
    49         
       
    50         // @see CCFContextSourceSetting
       
    51         const RKeyValueArray& Attributes() const;
       
    52         
       
    53         // @see CCFContextSourceSetting
       
    54         const RSettingParameterArray& Parameters() const;
       
    55         
       
    56         // @see CCFContextSourceSetting
       
    57         void SetNameL( const TDesC& aName );
       
    58         
       
    59         // @see CCFContextSourceSetting
       
    60         void AddAttributeL( CCFKeyValuePair* aAttribute );
       
    61 
       
    62         // @see CCFContextSourceSetting
       
    63         void AddParameterL( CCFContextSourceSettingParameter* aParameter );
       
    64 
       
    65     private:
       
    66     
       
    67         CCFContextSourceSettingImpl();
       
    68         void ConstructL();
       
    69         
       
    70     private: // Data
       
    71     
       
    72         // Own: Name tag
       
    73         HBufC* iName;
       
    74         
       
    75         // Own: Attributes
       
    76         RKeyValueArray iAttributes;
       
    77         
       
    78         // Own: Parameters
       
    79         RSettingParameterArray iParameters;
       
    80     };
       
    81 
       
    82 #endif