|
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: Inline code of CBtuiPluginInterface class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // ----------------------------------------------------------------------------- |
|
20 // Empty implementations of 3 pure virtual functions |
|
21 // defined in base class CGSBaseView |
|
22 // ----------------------------------------------------------------------------- |
|
23 inline void CBtuiPluginInterface::NewContainerL() |
|
24 { |
|
25 } |
|
26 inline void CBtuiPluginInterface::HandleListBoxSelectionL() |
|
27 { |
|
28 } |
|
29 inline CBtuiPluginInterface::CBtuiPluginInterface() |
|
30 { |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // Destructor |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 inline CBtuiPluginInterface::~CBtuiPluginInterface() |
|
38 { |
|
39 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CBtuiPluginInterface::NewL |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 inline CBtuiPluginInterface* CBtuiPluginInterface::NewL( |
|
47 TUid aImplementationUid, MBtuiPluginViewActivationObserver* aObserver) |
|
48 { |
|
49 TInt32 keyOffset = _FOFF( CBtuiPluginInterface, iDtor_ID_Key ); |
|
50 TAny* ptr = REComSession::CreateImplementationL( aImplementationUid, keyOffset, aObserver); |
|
51 |
|
52 return reinterpret_cast< CBtuiPluginInterface* >( ptr ) ; |
|
53 } |
|
54 |
|
55 // ----------------------------------------------------------------------------- |
|
56 // CBtuiPluginInterface::NewL |
|
57 // offer a default implementation to make it non-pure virtual. |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 inline void CBtuiPluginInterface::GetCaptionL( TDes& aCaption ) const |
|
61 { |
|
62 _LIT( NO_CAPTION,"no caption to offer" ); |
|
63 aCaption.Copy(NO_CAPTION); |
|
64 return; |
|
65 } |
|
66 |
|
67 // ----------------------------------------------------------------------------- |
|
68 // CBtuiPluginInterface::SetCOD |
|
69 // only used for derived add-on plugins out of BTUI |
|
70 // ----------------------------------------------------------------------------- |
|
71 // |
|
72 inline void CBtuiPluginInterface::SetCOD(TBTDeviceClass& aCOD) |
|
73 { |
|
74 iCOD = aCOD; |
|
75 } |
|
76 inline TBTDeviceClass CBtuiPluginInterface::GetCOD() const |
|
77 { |
|
78 return iCOD; |
|
79 } |