phonebookengines/simutility/inc/simutility.h
changeset 31 2a11b5b00470
parent 27 de1630741fbe
--- a/phonebookengines/simutility/inc/simutility.h	Mon May 03 12:24:20 2010 +0300
+++ b/phonebookengines/simutility/inc/simutility.h	Fri May 14 15:42:23 2010 +0300
@@ -20,6 +20,7 @@
 #include <qglobal.h>
 #include <QObject>
 #include <etelmm.h>
+#include <rmmcustomapi.h>
 #include <secuisecuritysettings.h> 
 #include <secui.h>
 
@@ -38,7 +39,8 @@
     enum ActiveRequest {
          ENoActiveRequest = 0,
          EGetInfo,
-         EGetAvailableStores
+         EGetAvailableStores,
+         EGetCacheStatus
     };
     
 public:
@@ -81,17 +83,24 @@
     };
     
     struct AvailableStores {
+        bool SimPresent;
         bool AdnStorePresent;
         bool SdnStorePresent;
         bool FdnStorePresent;
         
         AvailableStores() {
+            SimPresent = false;
             AdnStorePresent = false;
             SdnStorePresent = false;
             FdnStorePresent = false;
         };
     };
     
+    enum CacheStatus {
+        ECacheReady,
+        ECacheFailed
+    };
+    
 public:
 	SimUtility(StoreType type, int& error, QObject *parent = 0);
 	~SimUtility();
@@ -106,6 +115,7 @@
 	//async request
 	bool startGetSimInfo();
 	bool startGetAvailableStores();
+	bool notifyAdnCacheStatus();
 	
 public:
     void RequestCompleted(int error);
@@ -113,6 +123,7 @@
 signals:
     void simInfoReady(SimUtility::SimInfo& simInfo, int error);
     void availableStoresReady(SimUtility::AvailableStores& availableStores, int error);
+    void adnCacheStatusReady(SimUtility::CacheStatus& cacheStatus, int error);
 	
 private: 
     void ParseServiceTable(AvailableStores* availableStores) const;
@@ -127,6 +138,8 @@
     RMobilePhone::TMobilePhoneServiceTableV1 m_serviceTable;
     RMobilePhone::TMobilePhoneServiceTableV1Pckg m_serviceTablePckg;
     RMobilePhone::TMobilePhoneServiceTable m_serviceTableType;
+    RMmCustomAPI m_customPhone;
+    TName m_etelStoreNameCached;
 
     AsyncWorker* m_asyncWorker;
     int m_activeRequest;