|
1 /* |
|
2 * Copyright (c) 2008-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: Request filter. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #include <glxlog.h> |
|
22 |
|
23 #include "glxcommandrequest.h" |
|
24 #include <glxtracer.h> |
|
25 |
|
26 // ---------------------------------------------------------------------------- |
|
27 // CGlxCommandRequest::NewL |
|
28 // ---------------------------------------------------------------------------- |
|
29 // |
|
30 CGlxCommandRequest* CGlxCommandRequest::NewL(const CMPXCommand& aCommand, |
|
31 const TUid aCollectionPluginUid, MGlxDataSourceUpdateObserver& aObserver) |
|
32 { |
|
33 TRACER("CGlxCommandRequest* CGlxCommandRequest::NewL()"); |
|
34 CGlxCommandRequest* obj = |
|
35 new(ELeave) CGlxCommandRequest(aCollectionPluginUid, aObserver); |
|
36 CleanupStack::PushL(obj); |
|
37 obj->ConstructL(aCommand); |
|
38 CleanupStack::Pop(obj); |
|
39 return obj; |
|
40 } |
|
41 |
|
42 // ---------------------------------------------------------------------------- |
|
43 // CGlxCommandRequest::~CGlxCommandRequest |
|
44 // ---------------------------------------------------------------------------- |
|
45 // |
|
46 CGlxCommandRequest::~CGlxCommandRequest() |
|
47 { |
|
48 TRACER("CGlxCommandRequest::~CGlxCommandRequest()"); |
|
49 delete iCommand; |
|
50 } |
|
51 |
|
52 // ---------------------------------------------------------------------------- |
|
53 // CGlxCommandRequest::CGlxCommandRequest |
|
54 // ---------------------------------------------------------------------------- |
|
55 // |
|
56 CGlxCommandRequest::CGlxCommandRequest(TUid aCollectionPluginUid, |
|
57 MGlxDataSourceUpdateObserver& aObserver) |
|
58 : CGlxRequest(aCollectionPluginUid), iDataSourceUpdateObserver(aObserver) |
|
59 { |
|
60 TRACER("CGlxCommandRequest::CGlxCommandRequest()"); |
|
61 } |
|
62 |
|
63 // ---------------------------------------------------------------------------- |
|
64 // CGlxCommandRequest::ConstructL |
|
65 // ---------------------------------------------------------------------------- |
|
66 // |
|
67 void CGlxCommandRequest::ConstructL(const CMPXCommand& aCommand) |
|
68 { |
|
69 TRACER("void CGlxCommandRequest::ConstructL()"); |
|
70 iCommand = CMPXCommand::NewL(aCommand); |
|
71 } |