|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * This class is a BTSapServer's state for Init state |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "BTSapServerState.h" |
|
23 #include "debug.h" |
|
24 |
|
25 CBTSapServerState::TStateInit::TStateInit(CBTSapServerState& aServerState) |
|
26 : TState(aServerState) |
|
27 { |
|
28 } |
|
29 |
|
30 // --------------------------------------------------------- |
|
31 // Enter |
|
32 // --------------------------------------------------------- |
|
33 void CBTSapServerState::TStateInit:: Enter(TRequestStatus& aStatus) |
|
34 { |
|
35 BTSAP_TRACE_OPT(KBTSAP_TRACE_STM, BTSapPrintTrace(_L("[BTSap] SM: TStateInit: Enter"))); |
|
36 iStatus = &aStatus; |
|
37 aStatus = KRequestPending; |
|
38 } |
|
39 |
|
40 // -------------------------------------------------------------------------------------------- |
|
41 // Complete |
|
42 // set next state |
|
43 // -------------------------------------------------------------------------------------------- |
|
44 // |
|
45 TBTSapServerState CBTSapServerState::TStateInit::Complete(TInt /*aReason*/) |
|
46 { |
|
47 BTSAP_TRACE_OPT(KBTSAP_TRACE_STM, BTSapPrintTrace(_L("[BTSap] SM: TStateInit: Complete"))); |
|
48 return EStateNotConnected; |
|
49 } |
|
50 |
|
51 void CBTSapServerState::TStateInit::Cancel() |
|
52 { |
|
53 BTSAP_TRACE_OPT(KBTSAP_TRACE_STM, BTSapPrintTrace(_L("[BTSap] SM: TStateInit: Cancel"))); |
|
54 |
|
55 User::RequestComplete(iStatus, KErrCancel); |
|
56 } |
|
57 |
|
58 // End of File |