76
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: Note util class.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef PHONENOTEUTIL_H
|
|
20 |
#define PHONENOTEUTIL_H
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <pevirtualengine.h>
|
|
25 |
#include "mphoneviewcommandhandle.h"
|
|
26 |
#include "tphonecmdparamglobalnote.h"
|
|
27 |
|
|
28 |
// CLASS DECLARATION
|
|
29 |
|
|
30 |
/**
|
|
31 |
* Note util class.
|
|
32 |
*
|
|
33 |
*/
|
|
34 |
class PhoneNoteUtil
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
|
|
38 |
/**
|
|
39 |
* Shows global info note.
|
|
40 |
*/
|
|
41 |
static void SendGlobalInfoNoteL(
|
|
42 |
TInt aResourceId, TBool aNotificationDialog );
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Shows global warning note.
|
|
46 |
*/
|
|
47 |
static void SendGlobalWarningNoteL(
|
|
48 |
TInt aResourceId, TBool aNotificationDialog );
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Shows global error note.
|
|
52 |
*/
|
|
53 |
static void SendGlobalErrorNoteL(
|
|
54 |
TInt aResourceId, TBool aNotificationDialog );
|
|
55 |
|
|
56 |
/**
|
|
57 |
* Shows global note.
|
|
58 |
*/
|
|
59 |
static void SendGlobalNoteL(
|
|
60 |
TInt aResourceId, TBool aNotificationDialog );
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Shows global note.
|
|
64 |
*/
|
|
65 |
static void SendGlobalNoteL(
|
|
66 |
TPhoneNotificationType aType, const TDesC& aText );
|
|
67 |
|
|
68 |
/**
|
|
69 |
* Shows note.
|
|
70 |
*/
|
|
71 |
static void ShowNoteL( TInt aResourceId );
|
|
72 |
|
|
73 |
/**
|
|
74 |
* Shows query.
|
|
75 |
*/
|
|
76 |
static void ShowQueryL( TInt aResourceId );
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Shows text query.
|
|
80 |
*/
|
|
81 |
static void ShowTextQueryL(
|
|
82 |
TInt aDialogResourceId,
|
|
83 |
TInt aDefaultCbaResourceId,
|
|
84 |
TInt aContentCbaResourceId,
|
|
85 |
TDes* aDataText,
|
|
86 |
TBool aSendKeyEnabled );
|
|
87 |
|
|
88 |
/**
|
|
89 |
* Default error handling.
|
|
90 |
*/
|
|
91 |
static void HandleErrorL( const TPEErrorInfo& aErrorInfo );
|
|
92 |
|
|
93 |
/**
|
|
94 |
* handles remote busy note.
|
|
95 |
*/
|
|
96 |
static void HandleRemoteBusyNoteL( TInt aCallId );
|
|
97 |
|
|
98 |
private:
|
|
99 |
|
|
100 |
/**
|
|
101 |
* Sets global notifier disabled.
|
|
102 |
*/
|
|
103 |
static void SetGlobalNotifierDisabledL(
|
|
104 |
MPhoneViewCommandHandle* aViewCommandHandle );
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Sets common global note params.
|
|
108 |
*/
|
|
109 |
static void SetCommonGlobalNoteParamsL(
|
|
110 |
TPhoneCmdParamGlobalNote& aGlobalNoteParam,
|
|
111 |
TInt aResourceId, TBool aNotificationDialog,
|
|
112 |
TPhoneNotificationType aNoteType,
|
|
113 |
TPhoneNotificationToneType aTone = EPhoneNoTone );
|
|
114 |
|
|
115 |
/**
|
|
116 |
* Returns view command handler.
|
|
117 |
*/
|
|
118 |
inline static MPhoneViewCommandHandle* ViewCommandHandle();
|
|
119 |
};
|
|
120 |
|
|
121 |
#endif // PHONENOTEUTIL_H
|
|
122 |
|
|
123 |
// End of File
|