1.1 --- a/epoc32/include/commdb.inl Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/commdb.inl Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,69 @@
1.4 -commdb.inl
1.5 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// 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
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +// Comms Database and Table inline functions
1.19 +//
1.20 +//
1.21 +
1.22 +
1.23 +
1.24 +/**
1.25 + @file
1.26 + @deprecated since v9.1. Functionality is replaced with commsdat.
1.27 +*/
1.28 +
1.29 +#ifndef COMMDB_INL
1.30 +#define COMMDB_INL
1.31 +
1.32 +#include <commdb.h>
1.33 +#include <cdbpreftable.h>
1.34 +
1.35 +
1.36 +inline RDbNamedDatabase* CCommsDatabaseBase::Database()
1.37 +/**
1.38 +Returns the interface for creating and opening a database identified by name and format.
1.39 +
1.40 +@return A pointer to the interface for creating and opening a database identified by name and format.
1.41 +*/
1.42 + {
1.43 + return &iDatabase;
1.44 + }
1.45 +
1.46 +inline void CCommsDbTableView::GetTableName(TDes& aTableName) const
1.47 +/**
1.48 +Gets the name of the table associated with this view and copies it into the
1.49 +descriptor supplied by the caller.
1.50 +
1.51 +@param aTableName A reference to a descriptor passed by the caller. On return
1.52 +from this function it contains the name of the table.
1.53 +*/
1.54 + {
1.55 + aTableName=iTableName;
1.56 + }
1.57 +
1.58 +inline TDbColNo CCommsDbConnectionPrefTableView::ColNum(const TDesC& /*aColumn*/) const
1.59 +/**
1.60 +Returns the column number of the Column aColumn in the table
1.61 +
1.62 +Coloumn concept doesn't exist in CommsDat
1.63 +depNot supported from v9.1
1.64 +
1.65 +@param aColumn A reference to a descriptor containing the name of a column in the current record.
1.66 +@return The ordinal number of the column else KDbNullColNo if no such column exists.
1.67 +*/
1.68 + {
1.69 + return KErrNone;
1.70 + }
1.71 +
1.72 +
1.73 +#endif