bthci/hci2implementations/CommandsEvents/symbian/src/writestoredlinkkeycommand.cpp
equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // This file was generated automatically from the template commandsource.tmpl |
14 // This file was generated automatically from the template commandsource.tmpl |
15 // on Thu, 29 May 2008 15:17:53 (time stamp) |
15 // on Wed, 07 Apr 2010 11:59:29 (time stamp) |
16 // |
16 // |
17 // |
17 // |
18 |
18 |
19 /** |
19 /** |
20 @file |
20 @file |
36 |
36 |
37 // Factory methods |
37 // Factory methods |
38 |
38 |
39 EXPORT_C CWriteStoredLinkKeyCommand* CWriteStoredLinkKeyCommand::NewL(TUint8 aNumKeysToWrite, const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey) |
39 EXPORT_C CWriteStoredLinkKeyCommand* CWriteStoredLinkKeyCommand::NewL(TUint8 aNumKeysToWrite, const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey) |
40 { |
40 { |
41 CWriteStoredLinkKeyCommand* self = new (ELeave) CWriteStoredLinkKeyCommand(aNumKeysToWrite, aBDADDR, aLinkKey); |
41 CWriteStoredLinkKeyCommand* self = new (ELeave) CWriteStoredLinkKeyCommand(aNumKeysToWrite); |
42 CleanupStack::PushL(self); |
42 CleanupStack::PushL(self); |
43 self->CHCICommandBase::BaseConstructL(); |
43 self->ConstructL(aBDADDR, aLinkKey); |
44 CleanupStack::Pop(self); |
44 CleanupStack::Pop(self); |
45 return self; |
45 return self; |
46 } |
46 } |
47 |
47 |
48 EXPORT_C CWriteStoredLinkKeyCommand* CWriteStoredLinkKeyCommand::NewL() |
48 EXPORT_C CWriteStoredLinkKeyCommand* CWriteStoredLinkKeyCommand::NewL() |
54 return self; |
54 return self; |
55 } |
55 } |
56 |
56 |
57 // Constructors |
57 // Constructors |
58 |
58 |
59 CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand(TUint8 aNumKeysToWrite, const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey) |
59 CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand(TUint8 aNumKeysToWrite) |
60 : CHCICommandBase(KWriteStoredLinkKeyOpcode) |
60 : CHCICommandBase(KWriteStoredLinkKeyOpcode) |
61 , iNumKeysToWrite(aNumKeysToWrite) |
61 , iNumKeysToWrite(aNumKeysToWrite) |
62 , iBDADDR(aBDADDR) |
|
63 , iLinkKey(aLinkKey) |
|
64 { |
62 { |
65 SetExpectsCommandStatusEvent(EFalse); |
63 SetExpectsCommandStatusEvent(EFalse); |
66 } |
64 } |
67 |
65 |
68 CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand() |
66 CWriteStoredLinkKeyCommand::CWriteStoredLinkKeyCommand() |
69 : CHCICommandBase(KWriteStoredLinkKeyOpcode) |
67 : CHCICommandBase(KWriteStoredLinkKeyOpcode) |
70 { |
68 { |
71 SetExpectsCommandStatusEvent(EFalse); |
69 SetExpectsCommandStatusEvent(EFalse); |
|
70 } |
|
71 |
|
72 void CWriteStoredLinkKeyCommand::ConstructL(const RArray< TBTDevAddr >& aBDADDR, const RArray< TBTLinkKey >& aLinkKey) |
|
73 { |
|
74 CHCICommandBase::BaseConstructL(); |
|
75 iBDADDR = aBDADDR; |
|
76 iLinkKey = aLinkKey; |
72 } |
77 } |
73 |
78 |
74 // Destructor |
79 // Destructor |
75 CWriteStoredLinkKeyCommand::~CWriteStoredLinkKeyCommand() |
80 CWriteStoredLinkKeyCommand::~CWriteStoredLinkKeyCommand() |
76 { |
81 { |