contextframework/cfwplugins/cenrepsourceplugin/inc/cenrepattributesmasked.h
author William Roberts <williamr@symbian.org>
Fri, 23 Apr 2010 14:41:19 +0100
changeset 23 84968b8b4111
parent 0 2e3d3ce01487
permissions -rw-r--r--
Add Symbian Foundation splash screen to Symbian^4 (Bug 2414)

/*
* Copyright (c) 2007-2007 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  CCenRepAttributesMasked class declaration.
*
*/



#ifndef C_CENREPATTRIBUTESMASKED_H
#define C_CENREPATTRIBUTESMASKED_H

#include "cenrepattributes.h"

/**
 *  Handles masked attributes
 *
 *  @lib CenRepSourcePlugIn.dll
 *  @since S60 5.0
 */

NONSHARABLE_CLASS( CCenRepAttributesMasked ) : public CCenRepAttributes
    {

public:

    /**
     * Two-phased constructors.
     *
     * @since S60 5.0
     * @param aCF Interface for contexts
     * @param aSettings Sensor source settings
     */
    static CCenRepAttributesMasked* NewL(
               MCFContextInterface& aCF,
               CCFContextSourceSettingArray& aSettings );

    static CCenRepAttributesMasked* NewLC(
               MCFContextInterface& aCF,
               CCFContextSourceSettingArray& aSettings );

    virtual ~CCenRepAttributesMasked();

// from base class CenRepAttributes

    /**
    * From CenRepAttributes
    * Search context values from parameter array and updates context
    *
    * @since S60 5.0
    * @param aKeyValue Parameter key value for context values to search
    * @return void
    */
    void UpdateContextL( const TInt aKeyValue );

protected:

private:

    CCenRepAttributesMasked( MCFContextInterface& aCF,
                             CCFContextSourceSettingArray& aSettings );
    void ConstructL();

    TUint32 DefinedMask();

public:    // Data

protected: // Data

private:   // Data

    };

#endif // C_CENREPATTRIBUTESMASKED_H