equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 // Active helper implementation. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include <bluetooth/logger.h> |
|
24 #include "activehelper.h" |
|
25 #include "session.h" |
|
26 |
|
27 #ifdef __FLOG_ACTIVE |
|
28 _LIT8(KLogComponent, LOG_COMPONENT_REMCON_SERVER); |
|
29 #endif |
|
30 |
|
31 CActiveHelper::CActiveHelper(CRemConSession &aSession) : |
|
32 CActive(CActive::EPriorityStandard), |
|
33 iSession(aSession) |
|
34 { |
|
35 LOG_FUNC |
|
36 CActiveScheduler::Add(this); |
|
37 } |
|
38 |
|
39 void CActiveHelper::RunL() |
|
40 { |
|
41 LOG_FUNC; |
|
42 iSession.ProcessPendingMsgL(); |
|
43 } |
|
44 |
|
45 void CActiveHelper::DoCancel() |
|
46 { |
|
47 LOG_FUNC; |
|
48 } |
|
49 |
|
50 CActiveHelper::~CActiveHelper() |
|
51 { |
|
52 LOG(KNullDesC8); |
|
53 LOG_FUNC; |
|
54 Cancel(); |
|
55 } |
|
56 |
|
57 void CActiveHelper::Complete() |
|
58 { |
|
59 LOG_FUNC; |
|
60 iStatus = KRequestPending; |
|
61 SetActive(); |
|
62 |
|
63 TRequestStatus *p = &iStatus; |
|
64 User::RequestComplete(p, KErrNone); |
|
65 } |