33
|
1 |
/*
|
|
2 |
* Copyright (c) 2002,2003 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 |
* CPsuiWaitingObs class implements the virtual methods of
|
|
16 |
* MPsetCallWaitingObserver. Commands are redirected to CPsuiNoteMaster,
|
|
17 |
* which is responsible for actually showing the notes.
|
|
18 |
*
|
|
19 |
*/
|
|
20 |
|
|
21 |
|
|
22 |
#ifndef CPSUIWAITINGOBS_H
|
|
23 |
#define CPSUIWAITINGOBS_H
|
|
24 |
|
|
25 |
// INCLUDES
|
|
26 |
#include <mpsetcallwaitingobs.h>
|
|
27 |
#include "psuiconstants.h"
|
|
28 |
|
|
29 |
// FORWARD DECLARATION
|
|
30 |
class CPsuiResourceLoader;
|
|
31 |
class CPsuiContainer;
|
|
32 |
class PSetCallWaiting;
|
|
33 |
class AknStaticNoteDialog;
|
|
34 |
|
|
35 |
// CLASS DECLARATION
|
|
36 |
|
|
37 |
/**
|
|
38 |
* CPsuiWaitingObs class implements the virtual methods of
|
|
39 |
* MPsetCallWaitingObserver. Commands are redirected to CPsuiNoteMaster,
|
|
40 |
* which is responsible for actually showing the notes.
|
|
41 |
* @lib psui.lib
|
|
42 |
* @since 1.0
|
|
43 |
*/
|
|
44 |
class CPsuiWaitingObs : public CBase,
|
|
45 |
public MPsetCallWaitingObserver
|
|
46 |
{
|
|
47 |
public: // Constructor
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Symbian OS two-phased constructor.
|
|
51 |
*
|
|
52 |
* @param aContainer Container object
|
|
53 |
* @return CPsuiWaitingObs pointer
|
|
54 |
*/
|
|
55 |
IMPORT_C static CPsuiWaitingObs* NewL( CPsuiContainer& aContainer );
|
|
56 |
|
|
57 |
public: // Functions from base classes
|
|
58 |
|
|
59 |
/**
|
|
60 |
* From MPsetCallWaitingObserver, handles status notes
|
|
61 |
*
|
|
62 |
* @param aStatus Status of call waiting
|
|
63 |
* @param aBsc List of basic service groups
|
|
64 |
*/
|
|
65 |
void HandleCallWaitingGetStatusL(
|
|
66 |
const MPsetCallWaiting::TGetCallWaitingStatus aStatus,
|
|
67 |
TUint8 aBsc[KPSUIMaxBscNumber] );
|
|
68 |
|
|
69 |
/**
|
|
70 |
* From MPsetCallWaitingObserver, handles call waiting change notes
|
|
71 |
*
|
|
72 |
* @param aSetting Call waiting request type (activation/cancellation)
|
|
73 |
* @param aResult DEPRECATED
|
|
74 |
*/
|
|
75 |
void HandleCallWaitingChangedL(
|
|
76 |
const MPsetCallWaiting::TSetCallWaiting aSetting,
|
|
77 |
const TInt aResult );
|
|
78 |
|
|
79 |
/**
|
|
80 |
* From MPsetCallWaitingObserver, handles requesting notes.
|
|
81 |
*
|
|
82 |
* @param aOngoing If ETrue, there is an active request
|
|
83 |
* @param aInterrupted If ETrue, means that notemaster should be
|
|
84 |
* immediately deleted.
|
|
85 |
*/
|
|
86 |
void HandleCWRequestingL(
|
|
87 |
TBool aOngoing,
|
|
88 |
TBool aInterrupted = EFalse );
|
|
89 |
|
|
90 |
/**
|
|
91 |
* From MPsetCallWaitingObserver, handles call waiting errors.
|
|
92 |
*
|
|
93 |
* @param aReason Reason for error
|
|
94 |
*/
|
|
95 |
void HandleCWErrorL( TInt aReason );
|
|
96 |
|
|
97 |
/**
|
|
98 |
* From MPsetCallWaitingObserver, defines reference to requesting object.
|
|
99 |
*
|
|
100 |
* @param aEngineContact Reference to the Phone Settings
|
|
101 |
*/
|
|
102 |
void SetEngineContact( MPsetCallWaiting& aEngineContact );
|
|
103 |
|
|
104 |
private: //private constructor
|
|
105 |
|
|
106 |
void ConstructL( CPsuiContainer& aContainer );
|
|
107 |
|
|
108 |
private: // member variables
|
|
109 |
|
|
110 |
// Container object
|
|
111 |
CPsuiContainer* iContainer;
|
|
112 |
TBool iCallWaitingDistinguishEnabled;
|
|
113 |
};
|
|
114 |
#endif // CPSUIWAITINGOBS_H
|