equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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 CCatalogsShutdownOperation |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "catalogsshutdownoperation.h" |
|
20 |
|
21 #include "catalogsdebug.h" |
|
22 |
|
23 CCatalogsShutdownOperation::CCatalogsShutdownOperation( |
|
24 const TUid& aFamilyUid ) : |
|
25 iFamilyUid( aFamilyUid ) |
|
26 { |
|
27 } |
|
28 |
|
29 |
|
30 CCatalogsShutdownOperation::~CCatalogsShutdownOperation() |
|
31 { |
|
32 } |
|
33 |
|
34 |
|
35 void CCatalogsShutdownOperation::Execute() |
|
36 { |
|
37 DLTRACEIN(("")); |
|
38 Cancel(); |
|
39 TRAPD( err, DoExecuteL() ); |
|
40 if ( err != KErrNone ) |
|
41 { |
|
42 NotifyObserver( err ); |
|
43 } |
|
44 } |
|
45 |
|
46 |
|
47 void CCatalogsShutdownOperation::SetObserver( |
|
48 MCatalogsShutdownOperationObserver& aObserver ) |
|
49 { |
|
50 iObserver = &aObserver; |
|
51 } |
|
52 |
|
53 |
|
54 const TUid& CCatalogsShutdownOperation::FamilyUid() const |
|
55 { |
|
56 return iFamilyUid; |
|
57 } |
|
58 |
|
59 |
|
60 void CCatalogsShutdownOperation::Cancel() |
|
61 { |
|
62 DoCancel(); |
|
63 } |
|
64 |
|
65 |
|
66 void CCatalogsShutdownOperation::NotifyObserver( TInt aError ) |
|
67 { |
|
68 DASSERT( iObserver ); |
|
69 iObserver->ShutdownOperationComplete( this, aError ); |
|
70 } |