63
|
1 |
/*
|
|
2 |
* Copyright (c) 2009-2009 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: Implementation of MyCard plugin factory
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// INCLUDES
|
|
19 |
#include "ccappmycardpluginfactory.h"
|
|
20 |
#include "ccappmycardplugin.h"
|
|
21 |
|
|
22 |
// ======== MEMBER FUNCTIONS ========
|
|
23 |
|
|
24 |
// ---------------------------------------------------------------------------
|
|
25 |
// CCCAppMycardPluginFactory::NewL
|
|
26 |
// ---------------------------------------------------------------------------
|
|
27 |
//
|
|
28 |
MCcaPluginFactory* CCCAppMycardPluginFactory::NewL()
|
|
29 |
{
|
|
30 |
return new(ELeave) CCCAppMycardPluginFactory;
|
|
31 |
}
|
|
32 |
|
|
33 |
// ---------------------------------------------------------------------------
|
|
34 |
// CCCAppMycardPluginFactory::CCCAppMycardPluginFactory
|
|
35 |
// ---------------------------------------------------------------------------
|
|
36 |
//
|
|
37 |
CCCAppMycardPluginFactory::CCCAppMycardPluginFactory()
|
|
38 |
{
|
|
39 |
}
|
|
40 |
|
|
41 |
// ---------------------------------------------------------------------------
|
|
42 |
// CCCAppMycardPluginFactory::~CCCAppMycardPluginFactory
|
|
43 |
// ---------------------------------------------------------------------------
|
|
44 |
//
|
|
45 |
CCCAppMycardPluginFactory::~CCCAppMycardPluginFactory()
|
|
46 |
{
|
|
47 |
}
|
|
48 |
|
|
49 |
// ---------------------------------------------------------------------------
|
|
50 |
// CCCAppMycardPluginFactory::TabViewCount
|
|
51 |
// ---------------------------------------------------------------------------
|
|
52 |
//
|
|
53 |
TInt CCCAppMycardPluginFactory::TabViewCount()
|
|
54 |
{
|
|
55 |
return 1;
|
|
56 |
}
|
|
57 |
|
|
58 |
// ---------------------------------------------------------------------------
|
|
59 |
// CCCAppMycardPluginFactory::CreateTabViewL
|
|
60 |
// ---------------------------------------------------------------------------
|
|
61 |
//
|
|
62 |
CCCAppViewPluginBase* CCCAppMycardPluginFactory::CreateTabViewL( TInt aIndex )
|
|
63 |
{
|
|
64 |
switch( aIndex )
|
|
65 |
{
|
|
66 |
case 0:
|
|
67 |
{
|
|
68 |
return CCCAppMyCardPlugin::NewL();
|
|
69 |
}
|
|
70 |
}
|
|
71 |
return NULL;
|
|
72 |
}
|
|
73 |
|
|
74 |
|