33
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-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: Phone Server Utils.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef PHSRVUTILS_H
|
|
20 |
#define PHSRVUTILS_H
|
|
21 |
|
|
22 |
// DATA TYPES
|
|
23 |
|
|
24 |
/*
|
|
25 |
* EPhoneServerPanicNoWaitingRequestsToDeque No waiting requests.
|
|
26 |
* EPhoneServerPanicModeLogicFault Logic failure.
|
|
27 |
* EPhoneServerPanicCouldNotStartServer Server startup failure.
|
|
28 |
* EPhoneServerPanicSchedulerError Schedule failure.
|
|
29 |
* EPhoneServerPanicNoInitiatingCallObject Missing call object.
|
|
30 |
* EPhoneServerPanicExistingCallInitiatorFault Existing initiator fail.
|
|
31 |
* EPhoneServerPanicNoCallInitiatorFault Missing initiator failure.
|
|
32 |
* EPhoneServerPanicInitiatorHandleMisMatchFault Mismatch failure.
|
|
33 |
* EPhoneServerPanicNoPendingSendRequestFault Sending failure.
|
|
34 |
* EPhoneServerPanicNoPendingTimeOutRequestFault Timeout failure.
|
|
35 |
* EPhoneServerPanicUssdAutoReplyTimerAlreadyActive Timer already active.
|
|
36 |
* EPhoneServerPanicInvalidInitiatorPriority Initiator failure.
|
|
37 |
* EPhoneServerPanicCannotOpenPrimaryVoiceLine Primary line open failure.
|
|
38 |
* EPhoneServerPanicCouldNotRenameServerThread Renaming of thread failed.
|
|
39 |
* EPhoneServerPanicLineTypeInvalid Invalid line type.
|
|
40 |
* EPhoneServerPanicSharedDataConnectionFailure Shared data failure.
|
|
41 |
* EPhoneServerPanicSystemAgentConnectionFailure System agent failure.
|
|
42 |
* EPhoneServerPanicEmergencyCallRequestFailure Emergency call failure.
|
|
43 |
* EPhoneServerPanicExistingComHandInitiatorFault Existing ComHand fail.
|
|
44 |
* EPhoneServerPanicTooManyRequestsOngoing More than one req/subses.
|
|
45 |
* EPhoneServerPanicMissingComInitiator Com initiator missing
|
|
46 |
* EPhoneServerPanicMissingMessNegotiator Messenger negotiator missing
|
|
47 |
* EPhoneServerPanicMissingEmerNegotiator Emergency call negotiator missing
|
|
48 |
*
|
|
49 |
* EPhoneServerPanicLast Keep as last value!
|
|
50 |
*/
|
|
51 |
enum TPhoneServerPanic
|
|
52 |
{
|
|
53 |
EPhoneServerPanicNoWaitingRequestsToDeque = 0,
|
|
54 |
EPhoneServerPanicModeLogicFault = 1,
|
|
55 |
EPhoneServerPanicCouldNotStartServer = 2,
|
|
56 |
EPhoneServerPanicSchedulerError = 3,
|
|
57 |
EPhoneServerPanicNoInitiatingCallObject = 4,
|
|
58 |
EPhoneServerPanicExistingCallInitiatorFault = 5,
|
|
59 |
EPhoneServerPanicNoCallInitiatorFault = 6,
|
|
60 |
EPhoneServerPanicInitiatorHandleMisMatchFault = 7,
|
|
61 |
EPhoneServerPanicNoPendingSendRequestFault = 8,
|
|
62 |
EPhoneServerPanicNoPendingTimeOutRequestFault = 9,
|
|
63 |
EPhoneServerPanicUssdAutoReplyTimerAlreadyActive = 10,
|
|
64 |
EPhoneServerPanicInvalidInitiatorPriority = 11,
|
|
65 |
EPhoneServerPanicCannotOpenPrimaryVoiceLine = 12,
|
|
66 |
EPhoneServerPanicCouldNotRenameServerThread = 13,
|
|
67 |
EPhoneServerPanicLineTypeInvalid = 14,
|
|
68 |
EPhoneServerPanicSharedDataConnectionFailure = 15,
|
|
69 |
EPhoneServerPanicSystemAgentConnectionFailure = 16,
|
|
70 |
EPhoneServerPanicEmergencyCallRequestFailure = 17,
|
|
71 |
EPhoneServerPanicExistingComHandInitiatorFault = 18,
|
|
72 |
EPhoneServerPanicTooManyRequestsOngoing = 19,
|
|
73 |
EPhoneServerPanicMissingComInitiator = 20,
|
|
74 |
EPhoneServerPanicMissingMessNegotiator = 21,
|
|
75 |
EPhoneServerPanicMissingEmerNegotiator = 22,
|
|
76 |
|
|
77 |
EPhoneServerPanicLast // Keep as last!
|
|
78 |
};
|
|
79 |
|
|
80 |
// CLASS DECLARATION
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Phone Server utils class.
|
|
84 |
*
|
|
85 |
* @since 1.0
|
|
86 |
*/
|
|
87 |
class PhoneServerUtils
|
|
88 |
{
|
|
89 |
public: // New functions
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Panic function for Phone Server usage.
|
|
93 |
*
|
|
94 |
* @param aPanic Panic code.
|
|
95 |
*/
|
|
96 |
static void Panic( TPhoneServerPanic aPanic );
|
|
97 |
|
|
98 |
|
|
99 |
/**
|
|
100 |
* Panic the client using Phone Server.
|
|
101 |
* @since 2.6
|
|
102 |
*
|
|
103 |
* @param aPanic Panic code.
|
|
104 |
* @param aMessage The client to be paniced.
|
|
105 |
*/
|
|
106 |
static void PanicClient(
|
|
107 |
TPhoneServerPanic aPanic,
|
|
108 |
const RMessage2& aMessage );
|
|
109 |
};
|
|
110 |
|
|
111 |
|
|
112 |
#endif // PHSRVUTILS_H
|
|
113 |
|
|
114 |
|
|
115 |
// End of file
|