telephonyprotocols/csdagt/src/ND_DBACC.H
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 /**
       
     2 * Copyright (c) 2003-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 * NetDial Database Access Class Header.
       
    16 * 
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 
       
    22 /**
       
    23  @file Nd_dbacc.h
       
    24  @internalComponent
       
    25 */
       
    26 
       
    27 #ifndef __ND_DBACC_H__
       
    28 #define __ND_DBACC_H__
       
    29 
       
    30 #include <etelmm.h>
       
    31 
       
    32 #include <comms-infras/connectionsettings.h>
       
    33 #include <comms-infras/dbaccess.h>
       
    34 
       
    35 class CCommsDbNetDialAccess : public CBase
       
    36 /**
       
    37 CCommsDbNetDialAccess, one of these per state machine object.
       
    38 */
       
    39 	{
       
    40 public:
       
    41 	static CCommsDbNetDialAccess* NewL(CCommsDbAccess* aDbAccess);
       
    42 	~CCommsDbNetDialAccess();
       
    43 	void Close();
       
    44 
       
    45 // modem information
       
    46 	void GetTsyNameL(TDes& aTsyName);
       
    47 	void SetCommPortL(const RCall::TCommPort& aCommPort);
       
    48 	void GetCommPortForDirectConnectL(RCall::TCommPort& aCommPort);
       
    49 	void GetCommConfigForDirectConnectL(TCommConfig& aCommConfig);
       
    50 	void GetCommPortRoleL(TCommRole& aRole);
       
    51 	void GetCallParamsL(RCall::TCallParams& aParams);
       
    52 	TInt GetRedialAttempts(TUint32& aAttempts);
       
    53 	void GetBcaStackL(TDes& aBcaStack);
       
    54 	TInt GetIapId();
       
    55 	
       
    56 // service information
       
    57 	void GetRemoteParty(TDes& aRemoteParty);
       
    58 	void IsDefaultTelNumL(TBool& aIsTelNum);
       
    59 	void GetUsePctL(TBool& aUsePct);
       
    60 	void GetScriptDetailsL(TBool& aUseScript,TInt& aLength);
       
    61 	HBufC* GetScriptLC();	
       
    62 	void GetLoginParamsL(TBool& aPromptForLogin,TDes& aLoginName,TDes& aLoginPass,TDes& aIPAddress);
       
    63 	TInt GetCallbackTimeout(TUint32& aTimeout);
       
    64 
       
    65 	void GetMmHscsdParametersL(RMobileCall::TMobileHscsdCallParamsV1& aMmHscsdParams);
       
    66 	TBool GetMmCallParams(RMobileCall::TMobileDataCallParamsV1& aMmParams);
       
    67 
       
    68 	TBool HscsdSettingsAvailableL();
       
    69 	void CopyIspInitStringToModemL();
       
    70 
       
    71 // dialling resolution
       
    72 	void DoDiallingResolutionL(TDialString& aTelNum, TParseMode aMode = EForDialing);
       
    73 
       
    74 private:
       
    75 	CCommsDbNetDialAccess(CCommsDbAccess* aDbAccess);
       
    76 	void OpenModemAndLocationTablesL();
       
    77 	TInt AssertDialOutTable() const;
       
    78 	void SetUnresolvedDialStringL(TDialString& aTelNum,const TDialString& aFullNum, TParseMode aMode = EForDialing);
       
    79 	void PopulateModemCommSettingsL(TCommConfigV01& aCfg);
       
    80 	CDefaultRecordAccess* ConvertFieldNameL(TDes& aName);
       
    81 
       
    82 	void GetDefaultSettingL(CDefaultRecordAccess& aSetting, TConnectionSettings& aSettings);
       
    83 	void OpenDefaultRecordAndSetL(CDefaultRecordAccess& aDefault, TUint32 aId, TBool aIAP);
       
    84 	void GetDefaultL(const TDesC& aName,TUint32& aVal,TBool& aOverridden);
       
    85 private:
       
    86 	CCommsDbAccess* iDbAccess;
       
    87 	};
       
    88 	
       
    89 #endif