telutils/dialpad/tsrc/unit/shared/mock_cenrep.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:45:17 +0300
branchRCL_3
changeset 19 7d48bed6ce0c
permissions -rw-r--r--
Revision: 201033 Kit: 201035

#include <QtTest/QtTest>
#include <mock_centralrepository.h>

// TODO: Add a new class named Ut_Utility to config all CR key
// to simulate 3 different images
CRepository* CRepository::NewL(TUid /*aRepositoryUid*/)
{
    CRepository *self = new (ELeave) CRepository();
    return self;
}

CRepository::~CRepository()
{    
}

TInt CRepository::Get(TUint32 aKey, TInt& aValue)
{
    aValue = mValue;
    return KErrNone;
}
TInt CRepository::Set(TUint32 /*aKey*/, TInt aValue)
{
    mValue = aValue;
    return KErrNone;
}

TInt CRepository::Get(TUint32 /*aKey*/, TDes16& aValue)
{
    return KErrNone;
}

TInt CRepository::Set(TUint32 /*aKey*/, const TDesC16& /*aValue*/)
{
    return KErrNone;
}