71 ReadReservedSlotsState |
71 ReadReservedSlotsState |
72 }; |
72 }; |
73 static CntSimStorePrivate* NewL(CntSymbianSimEngine &engine, CntSimStore &simStore, const QString &storeName); |
73 static CntSimStorePrivate* NewL(CntSymbianSimEngine &engine, CntSimStore &simStore, const QString &storeName); |
74 ~CntSimStorePrivate(); |
74 ~CntSimStorePrivate(); |
75 |
75 |
76 QString storeName() { return m_storeName; } |
76 SimStoreInfo storeInfo() { return m_storeInfo; } |
77 TSimStoreInfo storeInfo() { return m_storeInfo; } |
|
78 |
|
79 bool read(int index, int numSlots, QContactManager::Error *error); |
77 bool read(int index, int numSlots, QContactManager::Error *error); |
80 bool write(const QContact &contact, QContactManager::Error *error); |
78 bool write(const QContact &contact, QContactManager::Error *error); |
81 bool remove(int index, QContactManager::Error *error); |
79 bool remove(int index, QContactManager::Error *error); |
82 bool getReservedSlots(QContactManager::Error *error); |
80 bool getReservedSlots(QContactManager::Error *error); |
83 |
|
84 TInt lastAsyncError() { return m_asyncError; } |
81 TInt lastAsyncError() { return m_asyncError; } |
85 |
82 |
86 private: |
83 private: |
87 // from CActive |
84 // from CActive |
88 void RunL(); |
85 void RunL(); |
95 void convertStoreNameL(TDes &storeName); |
92 void convertStoreNameL(TDes &storeName); |
96 QList<QContact> decodeSimContactsL(TDes8& rawData) const; |
93 QList<QContact> decodeSimContactsL(TDes8& rawData) const; |
97 void encodeSimContactL(QContact* contact, TDes8& rawData) const; |
94 void encodeSimContactL(QContact* contact, TDes8& rawData) const; |
98 void putTagAndValueL(CPhoneBookBuffer* pbBuffer, TUint8 tag, QString data) const; |
95 void putTagAndValueL(CPhoneBookBuffer* pbBuffer, TUint8 tag, QString data) const; |
99 QList<int> decodeReservedSlotsL(TDes8& rawData) const; |
96 QList<int> decodeReservedSlotsL(TDes8& rawData) const; |
|
97 void writeL(QContact *contact); |
|
98 void removeL(int index); |
|
99 void updateStoreInfoL(); |
100 |
100 |
101 private: |
101 private: |
102 State m_state; |
102 State m_state; |
103 CntSymbianSimEngine &m_engine; |
103 CntSymbianSimEngine &m_engine; |
104 QString m_managerUri; |
104 QString m_managerUri; |
105 CntSimStore &m_simStore; |
105 CntSimStore &m_simStore; |
106 RTelServer m_etelServer; |
106 RTelServer m_etelServer; |
107 RMobilePhone m_etelPhone; |
107 RMobilePhone m_etelPhone; |
108 RMobilePhoneBookStore m_etelStore; |
108 RMobilePhoneBookStore m_etelStore; |
109 QString m_storeName; |
109 SimStoreInfo m_storeInfo; |
110 bool m_readOnlyAccess; |
|
111 TSimStoreInfo m_storeInfo; |
|
112 TSimStoreInfoPckg m_storeInfoPckg; |
|
113 RBuf8 m_buffer; |
110 RBuf8 m_buffer; |
114 QContact m_convertedContact; |
111 QContact m_convertedContact; |
115 int m_writeIndex; |
112 int m_writeIndex; |
116 CntSimStoreEventListener* m_listener; |
113 CntSimStoreEventListener* m_listener; |
117 TInt m_asyncError; |
114 TInt m_asyncError; |
|
115 bool m_extraDetailsChecked; |
118 }; |
116 }; |
119 |
117 |
120 #endif // CNTSIMSTOREPRIVATE_H_ |
118 #endif // CNTSIMSTOREPRIVATE_H_ |