equal
deleted
inserted
replaced
64 } |
64 } |
65 |
65 |
66 void CCchServiceImplAsynchroniser::Disable( TCCHSubserviceType aType ) |
66 void CCchServiceImplAsynchroniser::Disable( TCCHSubserviceType aType ) |
67 { |
67 { |
68 CCHLOGSTRING( "CCchServiceImplAsynchroniser::Disable IN" ); |
68 CCHLOGSTRING( "CCchServiceImplAsynchroniser::Disable IN" ); |
69 if (iState == EIdle) |
69 if (iState != EIdle) |
70 { |
70 { |
|
71 Cancel(); |
|
72 } |
71 iState = EDisabling; |
73 iState = EDisabling; |
72 TRequestStatus status = KErrNone; |
74 TRequestStatus status = KErrNone; |
73 TServiceSelection selection( iServiceId, aType ); |
75 TServiceSelection selection( iServiceId, aType ); |
74 SetActive(); |
76 SetActive(); |
75 iCch.CchClient().DisableService( selection, iStatus ); |
77 iCch.CchClient().DisableService( selection, iStatus ); |
76 } |
78 |
77 else |
|
78 { |
|
79 CCHLOGSTRING( "CCchServiceImplAsynchroniser already active" ); |
|
80 } |
|
81 CCHLOGSTRING( "CCchServiceImplAsynchroniser::Disable OUT" ); |
79 CCHLOGSTRING( "CCchServiceImplAsynchroniser::Disable OUT" ); |
82 } |
80 } |
83 |
81 |
84 |
82 |
85 void CCchServiceImplAsynchroniser::ConstructL() |
83 void CCchServiceImplAsynchroniser::ConstructL() |
93 // Delete instance variables if any |
91 // Delete instance variables if any |
94 } |
92 } |
95 |
93 |
96 void CCchServiceImplAsynchroniser::DoCancel() |
94 void CCchServiceImplAsynchroniser::DoCancel() |
97 { |
95 { |
98 |
96 if ( EEnabling == iState ) |
|
97 { |
|
98 iCch.CchClient().EnableServiceCancel(); |
|
99 } |
|
100 else if ( EDisabling == iState ) |
|
101 { |
|
102 iCch.CchClient().DisableServiceCancel(); |
|
103 } |
99 } |
104 } |
100 |
105 |
101 void CCchServiceImplAsynchroniser::RunL() |
106 void CCchServiceImplAsynchroniser::RunL() |
102 { |
107 { |
103 CCHLOGSTRING( "CCchServiceImplAsynchroniser::RunL IN" ); |
108 CCHLOGSTRING( "CCchServiceImplAsynchroniser::RunL IN" ); |