44
|
1 |
// TestTelephonyPhoneStoreSharedData.cpp
|
|
2 |
// Copyright (c) Symbian Software Ltd 2008. All rights reserved.
|
|
3 |
//
|
|
4 |
// Implementation of the Class CTestTelephonyPhoneStoreSharedData
|
|
5 |
|
|
6 |
// CTSY include
|
|
7 |
|
|
8 |
// user include
|
|
9 |
#include "TestLtsyPhoneStoreSharedData.h"
|
|
10 |
|
|
11 |
/**
|
|
12 |
* Constructor
|
|
13 |
*
|
|
14 |
*/
|
|
15 |
CTestLtsyPhoneStoreSharedData::CTestLtsyPhoneStoreSharedData()
|
|
16 |
{
|
|
17 |
}
|
|
18 |
|
|
19 |
/**
|
|
20 |
* Factory function to create a new CTestTelephonySmsSharedData object
|
|
21 |
*
|
|
22 |
*/
|
|
23 |
CTestLtsyPhoneStoreSharedData*CTestLtsyPhoneStoreSharedData::NewL()
|
|
24 |
{
|
|
25 |
CTestLtsyPhoneStoreSharedData* self = new (ELeave) CTestLtsyPhoneStoreSharedData();
|
|
26 |
CleanupStack::PushL(self);
|
|
27 |
self->ConstructL();
|
|
28 |
CleanupStack::Pop();
|
|
29 |
return self;
|
|
30 |
}
|
|
31 |
|
|
32 |
/**
|
|
33 |
* Destructor
|
|
34 |
*
|
|
35 |
*/
|
|
36 |
CTestLtsyPhoneStoreSharedData::~CTestLtsyPhoneStoreSharedData()
|
|
37 |
{
|
|
38 |
Reset();
|
|
39 |
}
|
|
40 |
|
|
41 |
/**
|
|
42 |
* ConstructL
|
|
43 |
*
|
|
44 |
*/
|
|
45 |
void CTestLtsyPhoneStoreSharedData::ConstructL()
|
|
46 |
{
|
|
47 |
}
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Delete all store objects
|
|
51 |
*
|
|
52 |
*/
|
|
53 |
void CTestLtsyPhoneStoreSharedData::Reset()
|
|
54 |
{
|
|
55 |
iENStore.Close();
|
|
56 |
iONStore.Close();
|
|
57 |
iPhBkStore.Close();
|
|
58 |
}
|
|
59 |
|
|
60 |
/**
|
|
61 |
* return ENStore
|
|
62 |
*
|
|
63 |
*/
|
|
64 |
RMobileENStore& CTestLtsyPhoneStoreSharedData::PhoneENStore()
|
|
65 |
{
|
|
66 |
return iENStore;
|
|
67 |
}
|
|
68 |
|
|
69 |
|
|
70 |
/**
|
|
71 |
* return ONStore
|
|
72 |
*
|
|
73 |
*/
|
|
74 |
RMobileONStore& CTestLtsyPhoneStoreSharedData::PhoneONStore()
|
|
75 |
{
|
|
76 |
return iONStore;
|
|
77 |
}
|
|
78 |
|
|
79 |
/**
|
|
80 |
* return PhoneBookStore
|
|
81 |
*
|
|
82 |
*/
|
|
83 |
RMobilePhoneBookStore& CTestLtsyPhoneStoreSharedData::PhoneBookStore()
|
|
84 |
{
|
|
85 |
return iPhBkStore;
|
|
86 |
}
|
|
87 |
// end of file
|