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:48 (time stamp) |
15 // on Fri, 26 Mar 2010 16:16:13 (time stamp) |
16 // |
16 // |
17 // |
17 // |
18 |
18 |
19 /** |
19 /** |
20 @file |
20 @file |
79 |
79 |
80 /*virtual*/ void CSwitchRoleCommand::Match(const THCIEventBase& aEvent, TBool& aMatchesCmd, TBool& aConcludesCmd, TBool& aContinueMatching) const |
80 /*virtual*/ void CSwitchRoleCommand::Match(const THCIEventBase& aEvent, TBool& aMatchesCmd, TBool& aConcludesCmd, TBool& aContinueMatching) const |
81 { |
81 { |
82 if (aEvent.EventCode() == ERoleChangeEvent) |
82 if (aEvent.EventCode() == ERoleChangeEvent) |
83 { |
83 { |
84 aMatchesCmd = ETrue; |
84 TRoleChangeEvent& event = TRoleChangeEvent::Cast(aEvent); |
85 aConcludesCmd = ETrue; |
85 if (event.BDADDR() == BDADDR()) |
86 aContinueMatching = EFalse; |
86 { |
|
87 aMatchesCmd = ETrue; |
|
88 aConcludesCmd = ETrue; |
|
89 aContinueMatching = EFalse; |
|
90 } |
87 } |
91 } |
88 // Command Status Event and default Command Complete Event matching |
92 // Command Status Event and default Command Complete Event matching |
89 // is implemented in the base class. If we haven't matched already |
93 // is implemented in the base class. If we haven't matched already |
90 // then we should try the default matching. |
94 // then we should try the default matching. |
91 if (!aMatchesCmd) |
95 if (!aMatchesCmd) |