63 { |
63 { |
64 //Open a new subsession with position server using default module |
64 //Open a new subsession with position server using default module |
65 User :: LeaveIfError((this->iPositioner).Open(aPositionServer)) ; |
65 User :: LeaveIfError((this->iPositioner).Open(aPositionServer)) ; |
66 } |
66 } |
67 |
67 |
68 CleanupClosePushL(iPositioner); |
68 //CleanupClosePushL(iPositioner); |
69 //Set the identity of this particular requestor |
69 //Set the identity of this particular requestor |
70 User::LeaveIfError( (this->iPositioner).SetRequestor( |
70 User::LeaveIfError( (this->iPositioner).SetRequestor( |
71 CRequestor::ERequestorService, |
71 CRequestor::ERequestorService, |
72 CRequestor::EFormatApplication, |
72 CRequestor::EFormatApplication, |
73 KIdentity ) ); |
73 KIdentity ) ); |
74 |
74 |
75 this->iPosInfoBase = &(this->iPositionInfo); |
75 this->iPosInfoBase = &(this->iPositionInfo); |
76 this->iRequestType = aRequestType; |
76 this->iRequestType = aRequestType; |
77 this->iGenericPosInfo = HPositionGenericInfo :: NewL(); |
77 this->iGenericPosInfo = HPositionGenericInfo :: NewL(); |
78 CleanupStack :: PushL(this->iGenericPosInfo); |
78 //CleanupStack :: PushL(this->iGenericPosInfo); |
79 |
79 |
80 if(aList) |
80 if(aList) |
81 { |
81 { |
82 User :: LeaveIfError((this->iGenericPosInfo)->SetRequestedFields(aList)); |
82 User :: LeaveIfError((this->iGenericPosInfo)->SetRequestedFields(aList)); |
83 } |
83 } |
84 |
84 |
85 CleanupStack ::Pop(this->iGenericPosInfo ); |
85 //CleanupStack ::Pop(this->iGenericPosInfo ); |
86 CleanupStack::Pop(&iPositioner); |
86 CleanupStack::Pop(&iPositioner); |
87 } |
87 } |
88 /** |
88 /** |
89 * Function name: NewL , |
89 * Function name: NewL , |
90 * Constructs a new core implementation object which will later |
90 * Constructs a new core implementation object which will later |