equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "AsyncErrorKicker.h" |
|
17 // NB. With a little interface factoring, the dependency on rfcommsap.h could |
|
18 // be reduced to a dependency on some M class interface definition... |
|
19 #include "rfcommsap.h" |
|
20 |
|
21 CAsyncErrorKicker::CAsyncErrorKicker(CRfcommSAP& aSAP, TInt aPriority) |
|
22 : CAsyncOneShot(aPriority), |
|
23 iSAP(aSAP) |
|
24 { |
|
25 } |
|
26 |
|
27 void CAsyncErrorKicker::SetError(TInt aErrorCode, TInt aErrorType) |
|
28 { |
|
29 iErrorCode=aErrorCode; |
|
30 iErrorType=aErrorType; |
|
31 } |
|
32 |
|
33 void CAsyncErrorKicker::RunL() |
|
34 { |
|
35 iSAP.Error(iErrorCode, STATIC_CAST(CRfcommSAP::TErrorTypes,iErrorType)); |
|
36 } |
|
37 |