equal
deleted
inserted
replaced
1 // Copyright (c) 2005-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 // |
|
15 |
|
16 #include <obex.h> |
|
17 #include "obexserverstatemachine.h" |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 |
|
23 Disconnected State |
|
24 This is the ground state for the machine: transport is disconnected, operation is EOpIdle |
|
25 Machine will move to TransportConnnected state on receiving a TransportUp |
|
26 */ |
|
27 |
|
28 TObexServerStateDisconnected::TObexServerStateDisconnected() |
|
29 { |
|
30 #ifdef __FLOG_ACTIVE |
|
31 _LIT8(KName, "Disconnected"); |
|
32 iName = KName; |
|
33 #endif |
|
34 } |
|
35 |
|
36 void TObexServerStateDisconnected::Entry(CObexServerStateMachine& aContext) |
|
37 { |
|
38 aContext.Owner().SetCurrentOperation(CObex::EOpIdle); |
|
39 } |
|
40 |
|
41 void TObexServerStateDisconnected::TransportUp(CObexServerStateMachine& aContext) |
|
42 { |
|
43 aContext.ChangeState(CObexServerStateMachine::ETransportConnected); |
|
44 } |
|
45 |
|
46 void TObexServerStateDisconnected::Reset(CObexServerStateMachine& /*aContext*/) |
|
47 { |
|
48 } |
|
49 |
|