|
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: IMPS Connection UI Agent. |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <e32std.h> |
|
20 #include "cimpsconnectionuingagent.h" |
|
21 #include "CIMPSConnectionUiAgentImp.h" |
|
22 #include "IMPSCommonUiDebugPrint.h" |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 // Two-phased constructor. |
|
26 EXPORT_C CIMPSConnectionUiAgent* CIMPSConnectionUiAgent::NewL( TIMPSConnectionClient aClient ) |
|
27 { |
|
28 CIMPSConnectionUiAgent* self = new ( ELeave ) CIMPSConnectionUiAgent() ; |
|
29 CleanupStack::PushL( self ); |
|
30 self->ConstructL( aClient ); |
|
31 CleanupStack::Pop( self ); //self |
|
32 return self; |
|
33 } |
|
34 |
|
35 |
|
36 // Destructor |
|
37 EXPORT_C CIMPSConnectionUiAgent::~CIMPSConnectionUiAgent() |
|
38 { |
|
39 IMPSCUI_DP_TXT( "CIMPSConnectionUiAgent::~CIMPSConnectionUiAgent()" ); |
|
40 delete iImp; |
|
41 } |
|
42 |
|
43 |
|
44 // C++ constructor |
|
45 CIMPSConnectionUiAgent::CIMPSConnectionUiAgent() |
|
46 { |
|
47 IMPSCUI_DP_TXT( "CIMPSConnectionUiAgent::CIMPSConnectionUiAgent()" ); |
|
48 } |
|
49 |
|
50 |
|
51 // Symbian OS constructor |
|
52 void CIMPSConnectionUiAgent::ConstructL( TIMPSConnectionClient aClient ) |
|
53 { |
|
54 iImp = CIMPSConnectionUiAgentImp::NewL( aClient ); |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CIMPSConnectionUiAgent::StartServiceL() |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 EXPORT_C TInt CIMPSConnectionUiAgent::StartServiceL( TIMPSConnectionUiAgentService aService ) |
|
63 { |
|
64 IMPSCUI_DP( D_IMPSCUI_LIT( "CIMPSConnectionUiAgent::StartServiceL() [%d]" ), aService ); |
|
65 return iImp->StartServiceL( aService ); |
|
66 } |
|
67 |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CIMPSConnectionUiAgent::StopService() |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 EXPORT_C TInt CIMPSConnectionUiAgent::StopService( TIMPSConnectionUiAgentService aService ) |
|
74 { |
|
75 IMPSCUI_DP( D_IMPSCUI_LIT( "CIMPSConnectionUiAgent::StopService() [%d]" ), aService ); |
|
76 return iImp->StopService( aService ); |
|
77 } |
|
78 |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // CIMPSConnectionUiAgent::StopAllServices() |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C void CIMPSConnectionUiAgent::StopAllServices() |
|
85 { |
|
86 IMPSCUI_DP_TXT( "CIMPSConnectionUiAgent::StopAllServices()" ); |
|
87 iImp->StopAllServices(); |
|
88 } |
|
89 |
|
90 |
|
91 // ----------------------------------------------------------------------------- |
|
92 // CIMPSConnectionUiAgent::UseResourceFileL() |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 EXPORT_C void CIMPSConnectionUiAgent::UseResourceFileL( const TDesC& aNewResourceFile ) |
|
96 { |
|
97 IMPSCUI_DP_TXT( "CIMPSConnectionUiAgent::UseResourceFileL()" ); |
|
98 iImp->UseResourceFileL( aNewResourceFile ); |
|
99 } |
|
100 |
|
101 // End of File |
|
102 |
|
103 |
|
104 |
|
105 |