bluetoothmgmt/btmgr/BTManServer/btmanserverburmgr.h
branchRCL_3
changeset 14 f8503e232b0c
parent 11 20fda83a6398
equal deleted inserted replaced
13:16aa830c86c8 14:f8503e232b0c
   155 	void DeleteFile(const TDesC& fileName);
   155 	void DeleteFile(const TDesC& fileName);
   156 	void DeleteBackupFile();
   156 	void DeleteBackupFile();
   157 	void DeleteRestoreFile();
   157 	void DeleteRestoreFile();
   158 
   158 
   159 	void RenameBackupFileForRestore();
   159 	void RenameBackupFileForRestore();
   160 	void UpdateLocalDeviceNameL();
       
   161 
   160 
   162 	// From CActive:
   161 	// From CActive:
   163 	void RunL();
   162 	void RunL();
   164 	TInt RunError(TInt aError);
   163 	TInt RunError(TInt aError);
   165 	void DoCancel();
   164 	void DoCancel();
   211 	{ 
   210 	{ 
   212 public:
   211 public:
   213 	static CBTRestoreHandler* NewL(CBTManServerBURMgr& aBURMgr, CBTManServer& aManServer);
   212 	static CBTRestoreHandler* NewL(CBTManServerBURMgr& aBURMgr, CBTManServer& aManServer);
   214 	~CBTRestoreHandler();
   213 	~CBTRestoreHandler();
   215 
   214 
   216 	void RestoreLocalDeviceNameL();
   215 	void RestoreRegistryL(TBTDevAddr& aLocalAddr);
   217 	void RestoreRemoteDeviceTableL(TBTDevAddr& aLocalAddr);
       
   218 
   216 
   219 private:
   217 private:
   220 	CBTRestoreHandler(CBTManServerBURMgr& aBURMgr, CBTManServer& aManServer);
   218 	CBTRestoreHandler(CBTManServerBURMgr& aBURMgr, CBTManServer& aManServer);
   221 	void ConstructL();
   219 	void ConstructL();
   222 
   220 
   223 	void LoadRestoreDataL();
   221 	void LoadRestoreDataL();
   224 
   222 
   225 	void NotifyLocalTableChange();
   223 	void NotifyLocalTableChange();
       
   224 	void NotifyLocalDeviceNameChange(const TDesC8& aLocalName);
       
   225 	void NotifyLocalDeviceNameChange(const TDesC16& aLocalName);
   226 	void NotifyRemoteTableChangeL(const TBTDevAddr& aAddress);
   226 	void NotifyRemoteTableChangeL(const TBTDevAddr& aAddress);
   227 
   227 
   228 private:
   228 private:
   229 	CBTManServerBURMgr& iBURMgr;
   229 	CBTManServerBURMgr& iBURMgr;
   230 	CBTManServer& iManServer;
   230 	CBTManServer& iManServer;
   248 	TBool WriteRemoteDeviceToRegistryL(CBTRegistry& aRegistry, TInt aDeviceIndex) const;
   248 	TBool WriteRemoteDeviceToRegistryL(CBTRegistry& aRegistry, TInt aDeviceIndex) const;
   249 
   249 
   250 	inline TBool HasRegistryData() const;
   250 	inline TBool HasRegistryData() const;
   251 
   251 
   252 	void GetRegistryVersionL(TUint32& aRegistryVersionMajor, TUint32& aRegistryVersionMinor) const;
   252 	void GetRegistryVersionL(TUint32& aRegistryVersionMajor, TUint32& aRegistryVersionMinor) const;
       
   253 	const TDesC8& GetLocalDeviceNameL() const;
   253 	TBool IsLocalAddressNonZeroL() const;
   254 	TBool IsLocalAddressNonZeroL() const;
   254 	TBool IsLocalAddressEqualL(TBTDevAddr& aAddr) const;
   255 	TBool IsLocalAddressEqualL(TBTDevAddr& aAddr) const;
   255 	TInt CountRemoteDevicesL() const;
   256 	TInt CountRemoteDevicesL() const;
   256 	const CBTDevice& GetRemoteDeviceL(TInt aDeviceIndex) const;
   257 	const CBTDevice& GetRemoteDeviceL(TInt aDeviceIndex) const;
   257 	TSecureId GetRemoteDeviceEntrySidL(TInt aDeviceIndex) const;
   258 	TSecureId GetRemoteDeviceEntrySidL(TInt aDeviceIndex) const;
   259 	void ClearRegistryData();
   260 	void ClearRegistryData();
   260 
   261 
   261 private:
   262 private:
   262 	CBTRegistryBURData();
   263 	CBTRegistryBURData();
   263 	void ConstructL();
   264 	void ConstructL();
   264 
       
   265 	const TDesC8& GetLocalDeviceNameL() const;
       
   266 
   265 
   267 private:
   266 private:
   268 	TBool iHasRegistryData;
   267 	TBool iHasRegistryData;
   269 
   268 
   270 	// Meta table:
   269 	// Meta table: