telephonyserverplugins/simtsy/inc/CSimPhone.h
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
   195 	TInt GetTestNumber(TInt& aTestNumber);	
   195 	TInt GetTestNumber(TInt& aTestNumber);	
   196 	TInt SetTestNumberInUse(TInt aTestNumber);	
   196 	TInt SetTestNumberInUse(TInt aTestNumber);	
   197 	inline RPhone::TMode Mode() const {return iMode; }
   197 	inline RPhone::TMode Mode() const {return iMode; }
   198 
   198 
   199 	RMobilePhone::TMobilePhoneNetworkMode NetworkMode();
   199 	RMobilePhone::TMobilePhoneNetworkMode NetworkMode();
   200 	void ResetTestNumber();
   200 	void SetTestNumberAndReadConfigurationFileL();
   201 
   201 
   202 	// Methods added to allow indicator object to retrieve information
   202 	// Methods added to allow indicator object to retrieve information
   203 	// from other objects owned by the phone
   203 	// from other objects owned by the phone
   204 	RMobilePhone::TMobilePhoneBatteryStatus BatteryStatus();
   204 	RMobilePhone::TMobilePhoneBatteryStatus BatteryStatus();
   205 	RMobilePhone::TMobilePhoneRegistrationStatus RegistrationStatus();
   205 	RMobilePhone::TMobilePhoneRegistrationStatus RegistrationStatus();
   214 	// data  structures deriving from TCallParams 
   214 	// data  structures deriving from TCallParams 
   215 	TInt CheckSimTsyVersion(RCall::TCallParams& aDataStruct);
   215 	TInt CheckSimTsyVersion(RCall::TCallParams& aDataStruct);
   216 	// data  structures deriving from CBase (usually one-off cases)
   216 	// data  structures deriving from CBase (usually one-off cases)
   217 	TInt CheckSimTsyVersion(RMobilePhone::CImsAuthorizationInfoV5& aDataStruct);
   217 	TInt CheckSimTsyVersion(RMobilePhone::CImsAuthorizationInfoV5& aDataStruct);
   218 	TInt CheckSimTsyVersion(RPacketContext::CTFTMediaAuthorizationV3& aDataStruct);
   218 	TInt CheckSimTsyVersion(RPacketContext::CTFTMediaAuthorizationV3& aDataStruct);
       
   219 	
       
   220 	// Callback function invoked by the observer object
       
   221 	void HandleTestNumberChangedL();
       
   222 	TInt CheckConfigFile();
   219 	
   223 	
   220 protected:
   224 protected:
   221 	void ConstructL();
   225 	void ConstructL();
   222 
   226 
   223 private:
   227 private:
   251 	void PopulateServiceTableV8L(const TDesC8& aLookup,RMobilePhone::TMobilePhoneServiceTableV8** aTableV8 );						
   255 	void PopulateServiceTableV8L(const TDesC8& aLookup,RMobilePhone::TMobilePhoneServiceTableV8** aTableV8 );						
   252 	TBool ServiceEnabled(RMobilePhone::TMobilePhoneServiceTableV1* aTable, TInt aOffset, TUint8 aModifier);
   256 	TBool ServiceEnabled(RMobilePhone::TMobilePhoneServiceTableV1* aTable, TInt aOffset, TUint8 aModifier);
   253 	TInt CopyServiceTable(RMobilePhone::TMobilePhoneServiceTableV1* aFrom, RMobilePhone::TMobilePhoneServiceTableV1* aTo);
   257 	TInt CopyServiceTable(RMobilePhone::TMobilePhoneServiceTableV1* aFrom, RMobilePhone::TMobilePhoneServiceTableV1* aTo);
   254 	TInt CopyServiceTableV8(RMobilePhone::TMobilePhoneServiceTableV8* aFrom, RMobilePhone::TMobilePhoneServiceTableV8* aTo);
   258 	TInt CopyServiceTableV8(RMobilePhone::TMobilePhoneServiceTableV8* aFrom, RMobilePhone::TMobilePhoneServiceTableV8* aTo);
   255 
   259 
       
   260 	void ReadConfigurationFileL();
   256 	TInt NotifyModeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkMode* aCaps);
   261 	TInt NotifyModeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkMode* aCaps);
   257 	TInt NotifyModeChangeCancel(const TTsyReqHandle aTsyReqHandle);
   262 	TInt NotifyModeChangeCancel(const TTsyReqHandle aTsyReqHandle);
   258 
   263 
   259 	void TimerCallBackNetworkMode();
   264 	void TimerCallBackNetworkMode();
   260 	TNotifyData iNotifyNetworkModeChange;
   265 	TNotifyData iNotifyNetworkModeChange;
   294 	CArrayFixFlat<CSimPhBkUSimStore*>*			iPhBkUSimStores;
   299 	CArrayFixFlat<CSimPhBkUSimStore*>*			iPhBkUSimStores;
   295 
   300 
   296 	CSimONStore*								iONStore;
   301 	CSimONStore*								iONStore;
   297 	
   302 	
   298 	CTestConfig*             					iConfigFile;        //< Pointer to the Configuration file reader
   303 	CTestConfig*             					iConfigFile;        //< Pointer to the Configuration file reader
       
   304 	CTestConfigSection*                         iConfigSection;     //< Pointer to the Configuration section for current test. 
   299 	TBuf8<KMaxName>          					iSectionName;
   305 	TBuf8<KMaxName>          					iSectionName;
   300 	CSimSat*                 					iSat;               //< Pointer to the Sat object
   306 	CSimSat*                 					iSat;               //< Pointer to the Sat object
   301 	CSimPacketService*       					iPacketService;     //< Pointer to the Packet object
   307 	CSimPacketService*       					iPacketService;     //< Pointer to the Packet object
   302 	CSimIndicator*           					iIndicator;         //< Pointer to the Indicator object
   308 	CSimIndicator*           					iIndicator;         //< Pointer to the Indicator object
   303 	CSimBatteryCharger*	     					iBatteryCharger;    //< Pointer to the Battery Charger object
   309 	CSimBatteryCharger*	     					iBatteryCharger;    //< Pointer to the Battery Charger object
   363 		void SetHandle(CSimPhone* aPhone, const TTsyReqHandle aHandle);
   369 		void SetHandle(CSimPhone* aPhone, const TTsyReqHandle aHandle);
   364 	private:
   370 	private:
   365 		CSimPhone *iPhone;
   371 		CSimPhone *iPhone;
   366 		TTsyReqHandle iHandle;
   372 		TTsyReqHandle iHandle;
   367 		};
   373 		};
   368 	CSetCallProcessingSuspendStateTimerCallBack iTimerCallBackSetCallProcessingSuspendState;
   374 	
       
   375 	// Observer class monitoring test number property
       
   376 	NONSHARABLE_CLASS(CSimTestNumberObserver) : public CActive
       
   377 	    {
       
   378 	public:
       
   379 	    static CSimTestNumberObserver* NewL(CSimPhone& aSimPhone);
       
   380 	    virtual ~CSimTestNumberObserver();
       
   381 	        
       
   382 	private:    // methods from CActive
       
   383 	    virtual void RunL();
       
   384 	    virtual void DoCancel();
       
   385 	        
       
   386 	private:
       
   387 	    CSimTestNumberObserver(CSimPhone& aSimPhone);
       
   388 	    void ConstructL();
       
   389 	    void Start();
       
   390 	    
       
   391 	private:
       
   392 	    CSimPhone& iSimPhone;   // Reference to sim phone object (owner object)
       
   393 	    RProperty iProperty;   // Property describing the event we require notification of
       
   394 	    };
       
   395 	
       
   396 private:
       
   397     CSetCallProcessingSuspendStateTimerCallBack iTimerCallBackSetCallProcessingSuspendState;
       
   398     CSimTestNumberObserver* iTestNumberObserver; 
   369 	};
   399 	};
   370 
   400 
   371 #endif
   401 #endif