equal
deleted
inserted
replaced
51 #include <QObject> |
51 #include <QObject> |
52 #include <qcontactmanager.h> |
52 #include <qcontactmanager.h> |
53 |
53 |
54 QTM_USE_NAMESPACE |
54 QTM_USE_NAMESPACE |
55 |
55 |
56 #ifdef SYMBIANSIM_BACKEND_PHONEBOOKINFOV1 |
56 struct SimStoreInfo{ |
57 typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV1 TSimStoreInfo; |
57 QString m_storeName; |
58 typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV1Pckg TSimStoreInfoPckg; |
58 int m_totalEntries; |
59 #else |
59 int m_usedEntries; |
60 typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV5 TSimStoreInfo; |
60 bool m_readOnlyAccess; |
61 typedef RMobilePhoneBookStore::TMobilePhoneBookInfoV5Pckg TSimStoreInfoPckg; |
61 bool m_numberSupported; |
62 #endif |
62 bool m_nameSupported; |
|
63 bool m_secondNameSupported; |
|
64 bool m_additionalNumberSupported; |
|
65 bool m_emailSupported; |
|
66 }; |
63 |
67 |
64 class CntSimStorePrivate; |
68 class CntSimStorePrivate; |
65 class CntSymbianSimEngine; |
69 class CntSymbianSimEngine; |
66 |
70 |
67 class CntSimStore : public QObject |
71 class CntSimStore : public QObject |
69 Q_OBJECT |
73 Q_OBJECT |
70 public: |
74 public: |
71 CntSimStore(CntSymbianSimEngine* engine, QString storeName, QContactManager::Error* error); |
75 CntSimStore(CntSymbianSimEngine* engine, QString storeName, QContactManager::Error* error); |
72 ~CntSimStore(); |
76 ~CntSimStore(); |
73 |
77 |
74 QString storeName(); |
78 SimStoreInfo storeInfo(); |
75 TSimStoreInfo storeInfo(); |
|
76 |
|
77 bool read(int index, int numSlots, QContactManager::Error* error); |
79 bool read(int index, int numSlots, QContactManager::Error* error); |
78 bool write(const QContact &contact, QContactManager::Error* error); |
80 bool write(const QContact &contact, QContactManager::Error* error); |
79 bool remove(int index, QContactManager::Error* error); |
81 bool remove(int index, QContactManager::Error* error); |
80 bool getReservedSlots(QContactManager::Error* error); |
82 bool getReservedSlots(QContactManager::Error* error); |
81 |
|
82 void cancel(); |
83 void cancel(); |
83 bool isBusy(); |
84 bool isBusy(); |
84 |
|
85 TInt lastAsyncError(); |
85 TInt lastAsyncError(); |
86 |
86 |
87 signals: |
87 signals: |
88 // NOTE: Use Qt::QueuedConnection as connection type to make signals asynchronous. |
88 // NOTE: Use Qt::QueuedConnection as connection type to make signals asynchronous. |
89 // CntSimStorePrivate emitting these signals is an active object and emitting |
89 // CntSimStorePrivate emitting these signals is an active object and emitting |