1 /* |
|
2 * Copyright (c) 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: Exemplary Action Handler Plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include "cpstestplugin.h" |
|
22 |
|
23 |
|
24 // ======== MEMBER FUNCTIONS ======== |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // Symbian 2nd phase constructor can leave. |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 void CCPSTestPlugin::ConstructL() |
|
31 { |
|
32 iInt = KErrNotFound; |
|
33 } |
|
34 |
|
35 // ---------------------------------------------------------------------------- |
|
36 // Two-phased constructor. |
|
37 // ---------------------------------------------------------------------------- |
|
38 // |
|
39 CCPSTestPlugin* CCPSTestPlugin::NewL() |
|
40 { |
|
41 CCPSTestPlugin* self = CCPSTestPlugin::NewLC(); |
|
42 CleanupStack::Pop( self ); |
|
43 return self; |
|
44 } |
|
45 |
|
46 // ---------------------------------------------------------------------------- |
|
47 // Two-phased constructor. |
|
48 // ---------------------------------------------------------------------------- |
|
49 // |
|
50 CCPSTestPlugin* CCPSTestPlugin::NewLC() |
|
51 { |
|
52 CCPSTestPlugin* self = new( ELeave ) CCPSTestPlugin; |
|
53 CleanupStack::PushL( self ); |
|
54 self->ConstructL(); |
|
55 return self; |
|
56 } |
|
57 |
|
58 |
|
59 // --------------------------------------------------------------------------- |
|
60 // destructor |
|
61 // --------------------------------------------------------------------------- |
|
62 CCPSTestPlugin::~CCPSTestPlugin() |
|
63 { |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // Executes provided action |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 void CCPSTestPlugin::UpdateL() |
|
71 { |
|
72 iInt = KErrNone; |
|
73 } |
|
74 |
|
75 |
|