phoneapp/phoneuiutils/src/cphonestorage.cpp
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) 2009 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
*
*/


#include <eikappui.h>
#include <eikenv.h>
#include "cphonestorage.h"
#include "phonelogger.h"

// ======== MEMBER FUNCTIONS ========

// ---------------------------------------------------------------------------
// Constructor
// ---------------------------------------------------------------------------
//
CPhoneStorage::CPhoneStorage()
    : iNeedToEnableKeylock( EFalse )
    {
    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneStorage::CPhoneStorage()");
    }

// ---------------------------------------------------------------------------
// Second phase constructor
// ---------------------------------------------------------------------------
//
void CPhoneStorage::ConstructL()
    {
    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneStorage::ConstructL()");
    }

// ---------------------------------------------------------------------------
// Static constructor
// ---------------------------------------------------------------------------
//
EXPORT_C CPhoneStorage* CPhoneStorage::NewL()
    {
    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneStorage::NewL()");
    CPhoneStorage* self = 
        new (ELeave) CPhoneStorage();
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );
    return self;
    }

// ---------------------------------------------------------------------------
// Destructor
// ---------------------------------------------------------------------------
//
EXPORT_C CPhoneStorage::~CPhoneStorage()
    {
    __LOGMETHODSTARTEND(EPhoneUIUtils, "CPhoneStorage::~CPhoneStorage()");
    }

// -----------------------------------------------------------
// CPhoneStorage::NeedToEnableKeylock
// -----------------------------------------------------------
//
EXPORT_C TBool CPhoneStorage::NeedToEnableKeylock()
    {
    return iNeedToEnableKeylock;
    }

// -----------------------------------------------------------
// CPhoneStorage::NeedToEnableKeylock
// -----------------------------------------------------------
//
EXPORT_C void CPhoneStorage::SetNeedToEnableKeylock( TBool aNeedToEnableKeylock )
    {
    iNeedToEnableKeylock = aNeedToEnableKeylock;
    }

// END