Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
18 #include "T_RSessionBaseData.h"
21 _LIT(KCmdShareAuto, "ShareAuto");
22 _LIT(KCmdShareProtected, "ShareProtected");
24 _LIT(KLogError, "Error=%d");
27 //////////////////////////////////////////////////////////////////////
28 // Construction/Destruction
29 //////////////////////////////////////////////////////////////////////
31 CT_RSessionBaseData::CT_RSessionBaseData()
32 : CT_RHandleBaseData()
36 CT_RSessionBaseData::~CT_RSessionBaseData()
43 TBool CT_RSessionBaseData::DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex)
45 * Process a command read from the ini file
47 * @param aCommand The command to process
48 * @param aSection The section in the ini containing data for the command
49 * @param aAsyncErrorIndex Command index for async calls to return errors to
51 * @return ETrue if the command is processed
53 * @leave System wide error
59 if ( aCommand==KCmdShareAuto )
63 else if ( aCommand==KCmdShareProtected )
65 err=DoCmdShareProtected();
69 ret=CT_RHandleBaseData::DoCommandL(aCommand, aSection, aAsyncErrorIndex);
74 ERR_PRINTF2(KLogError, err);
81 TInt CT_RSessionBaseData::DoCmdShareAuto()
83 return GetSessionBase()->ShareAuto();
86 TInt CT_RSessionBaseData::DoCmdShareProtected()
88 return GetSessionBase()->ShareProtected();