|
1 /* |
|
2 * Copyright (c) 2005 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. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "TMCETestUIEngineCmdDeleteEvent.h" |
|
21 #include "CMCETestUIEngineEvent.h" |
|
22 #include "CMCETestUIEngineRefer.h" |
|
23 |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // TMCETestUIEngineCmdDeleteEvent::TMCETestUIEngineCmdDeleteEvent |
|
27 // ----------------------------------------------------------------------------- |
|
28 // |
|
29 TMCETestUIEngineCmdDeleteEvent::TMCETestUIEngineCmdDeleteEvent( |
|
30 CMCETestUIEngine& aEngine, |
|
31 CMCETestUIEngineEvent& aEvent ) |
|
32 : TMCETestUIEngineCmdBase( aEngine ), |
|
33 iEvent( aEvent ) |
|
34 { |
|
35 } |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // TMCETestUIEngineCmdDeleteEvent::ExecuteL |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 EXPORT_C void TMCETestUIEngineCmdDeleteEvent::ExecuteL() |
|
42 { |
|
43 iEngine.DeleteEvent( iEvent ); |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // TMCETestUIEngineCmdDeleteEvent::Caption |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 EXPORT_C const TDesC& TMCETestUIEngineCmdDeleteEvent::Caption() const |
|
51 { |
|
52 return KCommandCaptionDeleteEvent; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // TMCETestUIEngineCmdDeleteRefer::TMCETestUIEngineCmdDeleteRefer |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 TMCETestUIEngineCmdDeleteRefer::TMCETestUIEngineCmdDeleteRefer( |
|
60 CMCETestUIEngine& aEngine, |
|
61 CMCETestUIEngineRefer& aRefer ) |
|
62 : TMCETestUIEngineCmdBase( aEngine ), |
|
63 iRefer( aRefer ) |
|
64 { |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // TMCETestUIEngineCmdDeleteRefer::ExecuteL |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C void TMCETestUIEngineCmdDeleteRefer::ExecuteL() |
|
72 { |
|
73 iEngine.DeleteRefer( iRefer ); |
|
74 } |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // TMCETestUIEngineCmdDeleteRefer::Caption |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 EXPORT_C const TDesC& TMCETestUIEngineCmdDeleteRefer::Caption() const |
|
81 { |
|
82 return KCommandCaptionDeleteRefer; |
|
83 } |
|
84 |
|
85 |
|
86 // End of File |