|
1 /* |
|
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "T_RBusLogicalChannelData.h" |
|
19 |
|
20 /*@{*/ |
|
21 _LIT(KLogError, "Error=%d"); |
|
22 /*@}*/ |
|
23 |
|
24 ////////////////////////////////////////////////////////////////////// |
|
25 // Construction/Destruction |
|
26 ////////////////////////////////////////////////////////////////////// |
|
27 |
|
28 CT_RBusLogicalChannelData::CT_RBusLogicalChannelData() |
|
29 : CT_RHandleBaseData() |
|
30 { |
|
31 } |
|
32 |
|
33 CT_RBusLogicalChannelData::~CT_RBusLogicalChannelData() |
|
34 /** |
|
35 * Public destructor |
|
36 */ |
|
37 { |
|
38 } |
|
39 |
|
40 TBool CT_RBusLogicalChannelData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex) |
|
41 /** |
|
42 * Process a command read from the ini file |
|
43 * |
|
44 * @param aCommand The command to process |
|
45 * @param aSection The section in the ini containing data for the command |
|
46 * @param aAsyncErrorIndex Command index for async calls to return errors to |
|
47 * |
|
48 * @return ETrue if the command is processed |
|
49 * |
|
50 * @leave System wide error |
|
51 */ |
|
52 { |
|
53 TBool ret=ETrue; |
|
54 TInt err=KErrNone; |
|
55 |
|
56 ret=CT_RHandleBaseData::DoCommandL(aCommand, aSection, aAsyncErrorIndex); |
|
57 |
|
58 if ( err!=KErrNone ) |
|
59 { |
|
60 ERR_PRINTF2(KLogError, err); |
|
61 SetError(err); |
|
62 } |
|
63 |
|
64 return ret; |
|
65 } |