|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "ASYStubMainServiceBase.h" |
|
19 |
|
20 #include "AsyStubObserver.h" |
|
21 |
|
22 |
|
23 #ifndef EKA2 |
|
24 GLDEF_C TInt E32Dll( TDllReason ) |
|
25 { |
|
26 return KErrNone; |
|
27 } |
|
28 #endif |
|
29 |
|
30 // |
|
31 // ---------------------------------------------------------------------------------- |
|
32 // CASYStubMainServiceBase::CASYStubMainServiceBase() |
|
33 // ---------------------------------------------------------------------------------- |
|
34 // |
|
35 CASYStubMainServiceBase::CASYStubMainServiceBase() |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 // |
|
41 // ---------------------------------------------------------------------------------- |
|
42 // CASYStubMainServiceBase::NewL() |
|
43 // ---------------------------------------------------------------------------------- |
|
44 CASYStubMainServiceBase* CASYStubMainServiceBase::NewL() |
|
45 { |
|
46 return new ( ELeave ) CASYStubMainServiceBase(); |
|
47 } |
|
48 |
|
49 // |
|
50 // ---------------------------------------------------------------------------------- |
|
51 // CASYStubMainServiceBase::~CASYStubMainServiceBase() |
|
52 // ---------------------------------------------------------------------------------- |
|
53 CASYStubMainServiceBase::~CASYStubMainServiceBase() |
|
54 { |
|
55 } |
|
56 |
|
57 // |
|
58 // ---------------------------------------------------------------------------------- |
|
59 // CASYStubMainServiceBase::StartL() |
|
60 // ---------------------------------------------------------------------------------- |
|
61 TInt CASYStubMainServiceBase::StartL() |
|
62 { |
|
63 iService = new ( ELeave ) CASYStubService(); |
|
64 CleanupStack::PushL( iService ); |
|
65 iService->ConstructL(); |
|
66 CleanupStack::Pop(); |
|
67 CASYStubObserver* subscribeObserver = CASYStubObserver::NewL(*iService); |
|
68 subscribeObserver->IssueRequest(); |
|
69 this->Signal(); |
|
70 return KErrNone; |
|
71 } |
|
72 |
|
73 // |
|
74 // ---------------------------------------------------------------------------------- |
|
75 // CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL() |
|
76 // ---------------------------------------------------------------------------------- |
|
77 void CASYStubMainServiceBase::AsyStubMainServicePointerReceivedL() |
|
78 { |
|
79 } |
|
80 |
|
81 |
|
82 // |
|
83 // ---------------------------------------------------------------------------------- |
|
84 // CASYStubMainServiceBase::GetAndRemoveCapability() |
|
85 // ---------------------------------------------------------------------------------- |
|
86 TTFCapability CASYStubMainServiceBase::GetAndRemoveCapability() |
|
87 { |
|
88 return iService->GetAndRemoveCapability(); |
|
89 } |
|
90 |
|
91 |
|
92 |
|
93 |
|
94 |