|
1 /* |
|
2 * Copyright (c) 2009-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: CDisplayContextBase class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // SYSTEM INCLUDES |
|
20 #include <cfcontextobject.h> |
|
21 |
|
22 // USER INCLUDES |
|
23 #include "displayservicebase.h" |
|
24 #include "displaysourcecontextdef.h" |
|
25 #include "trace.h" |
|
26 |
|
27 // ======== MEMBER FUNCTIONS ======== |
|
28 |
|
29 // --------------------------------------------------------------------------- |
|
30 // C++ destructor. |
|
31 // --------------------------------------------------------------------------- |
|
32 // |
|
33 CDisplayServiceBase::~CDisplayServiceBase() |
|
34 { |
|
35 FUNC_LOG; |
|
36 |
|
37 iThread.Close(); |
|
38 delete iContext; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // C++ constructor. |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 CDisplayServiceBase::CDisplayServiceBase( TDisplayServiceType aType, |
|
46 MCFContextInterface& aCF ): |
|
47 iCF( aCF ), |
|
48 iType( aType ) |
|
49 { |
|
50 FUNC_LOG; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // Symbian 2nd phase constructor. |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 void CDisplayServiceBase::ConstructL() |
|
58 { |
|
59 FUNC_LOG; |
|
60 |
|
61 iContext = CCFContextObject::NewL(); |
|
62 } |
|
63 |
|
64 //------------------------------------------------------------------------------ |
|
65 // CDisplayServiceBase::DisplayServiceType |
|
66 //------------------------------------------------------------------------------ |
|
67 // |
|
68 TInt CDisplayServiceBase::DisplayServiceType() const |
|
69 { |
|
70 FUNC_LOG; |
|
71 |
|
72 return iType; |
|
73 } |
|
74 |
|
75 // End of file |