phoneapp/phoneuiutils/inc/cphonestorage.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:16:48 +0300
changeset 77 2be0b271d017
parent 0 5f000ab63145
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/*
* Copyright (c) 2008 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:  Storage of data
*
*/


#ifndef CPHONESTORAGE_H
#define CPHONESTORAGE_H

#include "mphonestorage.h"
#include <e32base.h>


// CLASS DECLARATION

/**
 *  Data storage.
 *
 *  @lib PhoneUIUtils.lib
 *  @since S60 v5.0
 */
class CPhoneStorage : 
    public CBase, public MPhoneStorage
    {
public:

    IMPORT_C static CPhoneStorage* NewL();

    IMPORT_C virtual ~CPhoneStorage();
        
    /**
     * SetNeedToEnableKeylock.
     */
    IMPORT_C void SetNeedToEnableKeylock( TBool aNeedToEnableKeylock );

    /**
     * NeedToEnableKeylock.
     */
    IMPORT_C TBool NeedToEnableKeylock();
    
private:

    CPhoneStorage();
    
    void ConstructL();
    
private: // data
    
     // ETrue, if keylock must enable when call ends
     TBool iNeedToEnableKeylock;
    };
#endif // CPHONESTORAGE_H