51
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Implementation of Rem Con bearer plugin.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@file
|
|
20 |
@internalComponent
|
|
21 |
*/
|
|
22 |
|
|
23 |
#include <remcon/remconbearerplugin.h>
|
|
24 |
#include <ecom/ecom.h>
|
|
25 |
#include <remcon/bearerparams.h>
|
|
26 |
#include <bluetooth/logger.h>
|
|
27 |
|
|
28 |
#ifdef __FLOG_ACTIVE
|
|
29 |
_LIT8(KLogComponent, LOG_COMPONENT_REMCON_SERVER);
|
|
30 |
#endif
|
|
31 |
|
|
32 |
EXPORT_C CRemConBearerPlugin::~CRemConBearerPlugin()
|
|
33 |
{
|
|
34 |
LOG_FUNC
|
|
35 |
REComSession::DestroyedImplementation(iInstanceId);
|
|
36 |
}
|
|
37 |
|
|
38 |
EXPORT_C CRemConBearerPlugin::CRemConBearerPlugin(TBearerParams& aParams)
|
|
39 |
: iObserver(aParams.Observer()),
|
|
40 |
iImplementationUid(aParams.ImplementationUid())
|
|
41 |
{
|
|
42 |
LOG_FUNC
|
|
43 |
}
|
|
44 |
|
|
45 |
EXPORT_C CRemConBearerPlugin* CRemConBearerPlugin::NewL(TBearerParams& aParams)
|
|
46 |
{
|
|
47 |
CRemConBearerPlugin* self = reinterpret_cast<CRemConBearerPlugin*>(
|
|
48 |
REComSession::CreateImplementationL(
|
|
49 |
aParams.ImplementationUid(),
|
|
50 |
_FOFF(CRemConBearerPlugin, iInstanceId),
|
|
51 |
(TAny*)&aParams)
|
|
52 |
);
|
|
53 |
|
|
54 |
return self;
|
|
55 |
}
|
|
56 |
|
|
57 |
EXPORT_C MRemConBearerObserver& CRemConBearerPlugin::Observer()
|
|
58 |
{
|
|
59 |
return iObserver;
|
|
60 |
}
|
|
61 |
|
|
62 |
EXPORT_C TUid CRemConBearerPlugin::Uid() const
|
|
63 |
{
|
|
64 |
return iImplementationUid;
|
|
65 |
}
|