williamr@2: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@2: // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: // which accompanies this distribution, and is available williamr@2: // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // Comms Database and Table inline functions williamr@2: // williamr@2: // williamr@2: williamr@2: williamr@2: williamr@2: /** williamr@2: @file williamr@2: @deprecated since v9.1. Functionality is replaced with commsdat. williamr@2: */ williamr@2: williamr@2: #ifndef COMMDB_INL williamr@2: #define COMMDB_INL williamr@2: williamr@2: #include williamr@2: #include williamr@2: williamr@2: williamr@2: inline RDbNamedDatabase* CCommsDatabaseBase::Database() williamr@2: /** williamr@2: Returns the interface for creating and opening a database identified by name and format. williamr@2: williamr@2: @return A pointer to the interface for creating and opening a database identified by name and format. williamr@2: */ williamr@2: { williamr@2: return &iDatabase; williamr@2: } williamr@2: williamr@2: inline void CCommsDbTableView::GetTableName(TDes& aTableName) const williamr@2: /** williamr@2: Gets the name of the table associated with this view and copies it into the williamr@2: descriptor supplied by the caller. williamr@2: williamr@2: @param aTableName A reference to a descriptor passed by the caller. On return williamr@2: from this function it contains the name of the table. williamr@2: */ williamr@2: { williamr@2: aTableName=iTableName; williamr@2: } williamr@2: williamr@2: inline TDbColNo CCommsDbConnectionPrefTableView::ColNum(const TDesC& /*aColumn*/) const williamr@2: /** williamr@2: Returns the column number of the Column aColumn in the table williamr@2: williamr@2: Coloumn concept doesn't exist in CommsDat williamr@2: depNot supported from v9.1 williamr@2: williamr@2: @param aColumn A reference to a descriptor containing the name of a column in the current record. williamr@2: @return The ordinal number of the column else KDbNullColNo if no such column exists. williamr@2: */ williamr@2: { williamr@2: return KErrNone; williamr@2: } williamr@2: williamr@2: williamr@2: #endif