1 /* |
|
2 * Copyright (c) 2002-2007 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: Provides table creation for databases. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CRCSECREATETABLE_H |
|
21 #define CRCSECREATETABLE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <d32dbms.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 |
|
29 /** |
|
30 * Provides table creation for databases. |
|
31 * |
|
32 * @lib RCSE.lib |
|
33 * @since S60 3.0 |
|
34 */ |
|
35 class CRCSECreateTable: public CBase |
|
36 { |
|
37 public: // New functions |
|
38 |
|
39 /** |
|
40 * Creates Audio Codec table to Audio Codec database. |
|
41 * @since S60 3.0 |
|
42 */ |
|
43 static void CreateAudioCodecTableL(); |
|
44 |
|
45 /** |
|
46 * Creates SIP setting table to SIP database. |
|
47 * @since S60 3.0 |
|
48 */ |
|
49 static void CreateSIPSettingTableL(); |
|
50 |
|
51 /** |
|
52 * Creates Profile table to Profile database. |
|
53 * @since S60 3.0 |
|
54 */ |
|
55 static void CreateProfileTableL(); |
|
56 |
|
57 /** |
|
58 * Creates SCCP table to SCCP setting database. |
|
59 * @since S60 3.0 |
|
60 */ |
|
61 static void CreateSCCPSettingTableL(); |
|
62 |
|
63 private: |
|
64 |
|
65 /** |
|
66 * C++ default constructor. |
|
67 */ |
|
68 CRCSECreateTable(); |
|
69 |
|
70 /** |
|
71 * Destructor. |
|
72 */ |
|
73 virtual ~CRCSECreateTable(); |
|
74 |
|
75 /** |
|
76 * Adds column to table. |
|
77 * @since S60 3.0. |
|
78 * @param aTable Table, where the column is created. |
|
79 * @param aColumnName Name of the column |
|
80 * @param aColumnType Type of the column |
|
81 * @param aMaxLenghtOfColumn Columns maximum length. |
|
82 */ |
|
83 static void AddColumnToTableL( CDbColSet& aTable, const TDesC& aColumnName, |
|
84 TDbColType aColumnType, |
|
85 TInt aMaxLengthOfColumn = KDbDefaultTextColLength ); |
|
86 |
|
87 }; |
|
88 |
|
89 #endif // CRCSECREATETABLE_H |
|
90 |
|
91 // End of File |
|