77 void TestUnit0009L(); |
77 void TestUnit0009L(); |
78 void TestUnit0010L(); |
78 void TestUnit0010L(); |
79 void TestUnit0011L(); |
79 void TestUnit0011L(); |
80 void TestUnit0012L(); |
80 void TestUnit0012L(); |
81 |
81 |
|
82 protected: |
|
83 virtual void OpenNonCachingPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
|
84 virtual void OpenCachingPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
|
85 virtual void DoCleanup(); |
|
86 |
82 private: |
87 private: |
83 |
88 |
84 void CreateTlvFromEntryL(const CPhoneBookEntry& aPhoneBookEntry, RBuf8& aBuf); |
89 void CreateTlvFromEntryL(const CPhoneBookEntry& aPhoneBookEntry, RBuf8& aBuf); |
85 void CreateTlvFromPhonebookL(const RPointerArray<CPhoneBookEntry>& aPhonebook, RBuf8& aBuf); |
90 void CreateTlvFromPhonebookL(const RPointerArray<CPhoneBookEntry>& aPhonebook, RBuf8& aBuf); |
86 |
91 |
90 |
95 |
91 void CreateEntriesAndStoreDataL(); |
96 void CreateEntriesAndStoreDataL(); |
92 |
97 |
93 void OpenPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, RMmCustomAPI& aCustomApi); |
98 void OpenPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, RMmCustomAPI& aCustomApi); |
94 void OpenPhoneBookWithInitialisationL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
99 void OpenPhoneBookWithInitialisationL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
95 void OpenCachingPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
|
96 void CompleteCacheL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aError, TBool aIsRefresh); |
100 void CompleteCacheL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aError, TBool aIsRefresh); |
97 void OpenNonCachingPhoneBookL(DispatcherPhonebook::TPhonebook aPhonebook, RMobilePhoneBookStore& aPhoneBookStore, TInt aError); |
|
98 TBool InitialisationRequired(DispatcherPhonebook::TPhonebook aPhonebook) const; |
101 TBool InitialisationRequired(DispatcherPhonebook::TPhonebook aPhonebook) const; |
99 TBool CachingPhonebook(DispatcherPhonebook::TPhonebook aPhonebook) const; |
102 TBool CachingPhonebook(DispatcherPhonebook::TPhonebook aPhonebook) const; |
100 |
103 |
101 void ReadL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aError); |
104 void ReadL(DispatcherPhonebook::TPhonebook aPhonebook, TInt aError); |
102 void ReadL(DispatcherPhonebook::TPhonebook aPhonebook, const RMobilePhoneBookStore& aPhonebookStore, TInt aError); |
105 void ReadL(DispatcherPhonebook::TPhonebook aPhonebook, const RMobilePhoneBookStore& aPhonebookStore, TInt aError); |
125 TName PhonebookName(DispatcherPhonebook::TPhonebook aPhonebook) const; |
128 TName PhonebookName(DispatcherPhonebook::TPhonebook aPhonebook) const; |
126 |
129 |
127 static void PhoneBookEntryArrayCleanup(TAny* aArray); |
130 static void PhoneBookEntryArrayCleanup(TAny* aArray); |
128 |
131 |
129 void OpenSmsStoreL(RMobileSmsMessaging& aSmsMessaging, RMobileSmsStore& aSmsStore, const TDesC& aSmsStoreName); |
132 void OpenSmsStoreL(RMobileSmsMessaging& aSmsMessaging, RMobileSmsStore& aSmsStore, const TDesC& aSmsStoreName); |
130 |
|
131 virtual void DoCleanup(); |
|
132 |
133 |
133 private: |
134 private: |
134 |
135 |
135 DispatcherPhonebook::TPhonebookStoreInfoV1 iPhonebookStoreData; |
136 DispatcherPhonebook::TPhonebookStoreInfoV1 iPhonebookStoreData; |
136 |
137 |