equal
deleted
inserted
replaced
|
1 #include <QtTest/QtTest> |
|
2 #include <centralrepository.h> |
|
3 #include "voicemailboxdomaincrkeys.h" |
|
4 #include "voicemailboxprivatecrkeys.h" |
|
5 |
|
6 _LIT(KStringValue, "123"); |
|
7 |
|
8 // TODO: Add a new class named Ut_Utility to config all CR key |
|
9 // to simulate 3 different images |
|
10 CRepository* CRepository::NewL(TUid /*aRepositoryUid*/) |
|
11 { |
|
12 CRepository *self = new (ELeave) CRepository(); |
|
13 return self; |
|
14 } |
|
15 |
|
16 CRepository::~CRepository() |
|
17 { |
|
18 |
|
19 } |
|
20 |
|
21 TInt CRepository::Get(TUint32 aKey, TInt& aValue) |
|
22 { |
|
23 if (KVideoMbxSupport == aKey){ |
|
24 aValue = 1; |
|
25 qDebug("KVideoMbxSupport 1"); |
|
26 } else if (KVmbxNoSimWriting == aKey){ |
|
27 aValue = 0; |
|
28 qDebug("KVmbxNoSimWriting 0"); |
|
29 } else if (KVmbxUiCaps == aKey){ |
|
30 aValue = 0; |
|
31 qDebug("KVmbxUiCaps 1"); |
|
32 } else { |
|
33 aValue = 0; |
|
34 qDebug("default 0"); |
|
35 } |
|
36 |
|
37 return KErrNone; |
|
38 } |
|
39 TInt CRepository::Set(TUint32 /*aKey*/, TInt /*aValue*/) |
|
40 { |
|
41 return KErrNone; |
|
42 } |
|
43 |
|
44 TInt CRepository::Get(TUint32 /*aKey*/, TDes16& aValue) |
|
45 { |
|
46 aValue.Append(KStringValue); |
|
47 return KErrNone; |
|
48 } |
|
49 |
|
50 TInt CRepository::Set(TUint32 /*aKey*/, const TDesC16& /*aValue*/) |
|
51 { |
|
52 return KErrNone; |
|
53 } |