1 commdb.inl |
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // 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 |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Comms Database and Table inline functions |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @deprecated since v9.1. Functionality is replaced with commsdat. |
|
23 */ |
|
24 |
|
25 #ifndef COMMDB_INL |
|
26 #define COMMDB_INL |
|
27 |
|
28 #include <commdb.h> |
|
29 #include <cdbpreftable.h> |
|
30 |
|
31 |
|
32 inline RDbNamedDatabase* CCommsDatabaseBase::Database() |
|
33 /** |
|
34 Returns the interface for creating and opening a database identified by name and format. |
|
35 |
|
36 @return A pointer to the interface for creating and opening a database identified by name and format. |
|
37 */ |
|
38 { |
|
39 return &iDatabase; |
|
40 } |
|
41 |
|
42 inline void CCommsDbTableView::GetTableName(TDes& aTableName) const |
|
43 /** |
|
44 Gets the name of the table associated with this view and copies it into the |
|
45 descriptor supplied by the caller. |
|
46 |
|
47 @param aTableName A reference to a descriptor passed by the caller. On return |
|
48 from this function it contains the name of the table. |
|
49 */ |
|
50 { |
|
51 aTableName=iTableName; |
|
52 } |
|
53 |
|
54 inline TDbColNo CCommsDbConnectionPrefTableView::ColNum(const TDesC& /*aColumn*/) const |
|
55 /** |
|
56 Returns the column number of the Column aColumn in the table |
|
57 |
|
58 Coloumn concept doesn't exist in CommsDat |
|
59 depNot supported from v9.1 |
|
60 |
|
61 @param aColumn A reference to a descriptor containing the name of a column in the current record. |
|
62 @return The ordinal number of the column else KDbNullColNo if no such column exists. |
|
63 */ |
|
64 { |
|
65 return KErrNone; |
|
66 } |
|
67 |
|
68 |
|
69 #endif |