|
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 the License "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: Feeds application instance. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "FeedsApplication.h" |
|
20 #include "FeedsDocument.h" |
|
21 #include "FeedsViews.h" |
|
22 #include "LeakTracker.h" |
|
23 |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CFeedsApplication::~CFeedsApplication |
|
27 // |
|
28 // Deconstructor. |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 CFeedsApplication::CFeedsApplication() |
|
32 { |
|
33 // Create the LeakTracker instance. |
|
34 #ifdef TRACK_LEAKS |
|
35 TRAP_IGNORE(gLeakTracker = CLeakTracker::NewL(_L("Test App"))); |
|
36 #endif |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CFeedsApplication::~CFeedsApplication |
|
41 // |
|
42 // Deconstructor. |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 CFeedsApplication::~CFeedsApplication() |
|
46 { |
|
47 #ifdef TRACK_LEAKS |
|
48 delete gLeakTracker; |
|
49 gLeakTracker = NULL; |
|
50 #endif |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CFeedsApplication::CreateDocumentL() |
|
55 // |
|
56 // Create an Feeds document, and return a pointer to it |
|
57 // ----------------------------------------------------------------------------- |
|
58 // |
|
59 CApaDocument* CFeedsApplication::CreateDocumentL() |
|
60 { |
|
61 return( static_cast< CApaDocument* >( CFeedsDocument::NewL( *this ) ) ); |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CFeedsApplication::AppDllUid() |
|
66 // |
|
67 // Returns application UID |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 TUid CFeedsApplication::AppDllUid() const |
|
71 { |
|
72 return TUid::Uid(EFeedsAppUid); |
|
73 } |