1 /* |
|
2 * Copyright (c) 2002-2006 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: WPWAPItemFactory creates WAP settings items. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "WPWAPItemFactory.h" |
|
22 #include "CWPWAPMMSItem.h" |
|
23 #include "CWPWAPBrowserItem.h" |
|
24 #include "CWPWAPBookmarkItem.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // WPWAPItemFactory::CreateMMSL |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 MWPWAPItemBase* WPWAPItemFactory::CreateMMSLC( const TDesC& aTitle, |
|
33 const TDesC& aDefaultName, |
|
34 CWPCharacteristic& aCharacteristic, |
|
35 CCommsDatabase*& aCommsDb, |
|
36 RCmManagerExt*& aCmManager ) |
|
37 { |
|
38 CWPWAPMMSItem* item = CWPWAPMMSItem::NewL( aTitle, aDefaultName, |
|
39 aCharacteristic, aCommsDb, aCmManager ); |
|
40 CleanupStack::PushL( item ); |
|
41 return item; |
|
42 } |
|
43 |
|
44 // ----------------------------------------------------------------------------- |
|
45 // WPWAPItemFactory::CreateBrowserL |
|
46 // ----------------------------------------------------------------------------- |
|
47 // |
|
48 MWPWAPItemBase* WPWAPItemFactory::CreateBrowserLC( TBool aFirst, |
|
49 const TDesC& aTitle, |
|
50 const TDesC& aBookmarkTitle, |
|
51 const TDesC& aDefaultName, |
|
52 const TDesC& aDefaultBookmarkName, |
|
53 CWPCharacteristic& aCharacteristic, |
|
54 CCommsDatabase*& aCommsDb, |
|
55 RCmManagerExt*& aCmManager, |
|
56 RFavouritesDb aBookmarkDb ) |
|
57 { |
|
58 CWPWAPBrowserItem* item = CWPWAPBrowserItem::NewL( aFirst, aTitle, aBookmarkTitle, |
|
59 aDefaultName, aDefaultBookmarkName, aCharacteristic, aCommsDb, aCmManager, aBookmarkDb ); |
|
60 CleanupStack::PushL( item ); |
|
61 return item; |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // WPWAPItemFactory::CreateMMSL |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 MWPWAPItemBase* WPWAPItemFactory::CreateBookmarkLC( const TDesC& aTitle, |
|
69 const TDesC& aDefaultName, |
|
70 CWPCharacteristic& aResource, |
|
71 CWPCharacteristic*& aLink, |
|
72 RFavouritesDb aDb) |
|
73 { |
|
74 CWPWAPBookmarkItem* item = CWPWAPBookmarkItem::NewL( aTitle, |
|
75 aDefaultName, aResource, aLink, aDb ); |
|
76 CleanupStack::PushL( item ); |
|
77 return item; |
|
78 } |
|
79 |
|
80 // End of File |
|