contextframework/cfw/inc/cfcontextsourcesettingsmanager/cfcontextsourcesettingarrayimpl.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:  CFContextSourceSettingArrayImpl class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_CFCONTEXTSOURCESETTINGARRAYIMPL_H
       
    21 #define C_CFCONTEXTSOURCESETTINGARRAYIMPL_H
       
    22 
       
    23 
       
    24 #include "cfcontextsourcesettingarray.h"
       
    25 
       
    26 /**
       
    27 *  Context source setting array implementation.
       
    28 *
       
    29 *  @see CCFContextSourceSettingsManager
       
    30 *
       
    31 *  @lib CCFContextSourceSettingsManager.lib
       
    32 *  @since S60 5.0
       
    33 */
       
    34 NONSHARABLE_CLASS( CCFContextSourceSettingArrayImpl ): public CCFContextSourceSettingArray
       
    35     {
       
    36     public:
       
    37     
       
    38         // Two phased constructors
       
    39         static CCFContextSourceSettingArrayImpl* NewL();
       
    40         static CCFContextSourceSettingArrayImpl* NewLC();
       
    41         
       
    42         // Destructor
       
    43         ~CCFContextSourceSettingArrayImpl();
       
    44     
       
    45     public: // From base classes
       
    46 
       
    47         // @see CCFContextSourceSettingArray
       
    48         TInt Count() const;
       
    49 
       
    50         // @see CCFContextSourceSettingArray
       
    51         const CCFContextSourceSetting& Item( TInt aIndex ) const;
       
    52         
       
    53         // @see CCFContextSourceSettingArray
       
    54         void AppendItemL( CCFContextSourceSetting* aItem );
       
    55         
       
    56     private:
       
    57     
       
    58         CCFContextSourceSettingArrayImpl();
       
    59         void ConstructL();
       
    60         
       
    61     private: // Data
       
    62     
       
    63         /** Pointer array of setting items */
       
    64         RPointerArray<CCFContextSourceSetting> iItems;
       
    65     };
       
    66 
       
    67 #endif