60
|
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: Defines class CNcnSNNotifier.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef NCNSNNOTIFIER_H
|
|
21 |
#define NCNSNNOTIFIER_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <e32base.h>
|
|
25 |
#include <AknNotifyStd.h>
|
|
26 |
#include <secondarydisplay/NcnSecondaryDisplayAPI.h>
|
|
27 |
#include "MNcnNotifier.h"
|
|
28 |
|
|
29 |
// CLASS DECLARATION
|
|
30 |
class CAknSoftNotifier;
|
|
31 |
class CAknSoftNotificationParameters;
|
|
32 |
class TVwsViewId;
|
|
33 |
class CRepository;
|
|
34 |
/**
|
|
35 |
* Notifies Avkon notifier about new items and idle state status.
|
|
36 |
*/
|
|
37 |
class CNcnSNNotifier : public CBase
|
|
38 |
{
|
|
39 |
public: // Constructor and destructor
|
|
40 |
|
|
41 |
/**
|
|
42 |
* Two-phased constructor.
|
|
43 |
*/
|
|
44 |
static CNcnSNNotifier* NewL();
|
|
45 |
|
|
46 |
/**
|
|
47 |
* Destructor.
|
|
48 |
*/
|
|
49 |
virtual ~CNcnSNNotifier();
|
|
50 |
|
|
51 |
public:
|
|
52 |
|
|
53 |
/**
|
|
54 |
* Informs Avkon soft notifier about received items.
|
|
55 |
*/
|
|
56 |
void NewItems(
|
|
57 |
const MNcnNotifier::TNcnNotificationType aNotificationType,
|
|
58 |
const TInt aAmount );
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Informs the notifier subsystem about the current idle state status.
|
|
62 |
*/
|
|
63 |
void IdleState( TBool aCurrentState );
|
|
64 |
|
|
65 |
private:
|
|
66 |
|
|
67 |
/**
|
|
68 |
* C++ default constructor.
|
|
69 |
*/
|
|
70 |
CNcnSNNotifier();
|
|
71 |
|
|
72 |
/**
|
|
73 |
* By default Symbian OS constructor is private.
|
|
74 |
*/
|
|
75 |
void ConstructL();
|
|
76 |
|
|
77 |
private:
|
|
78 |
/**
|
|
79 |
* Shows new items.
|
|
80 |
*/
|
|
81 |
void ShowNewItemsL(
|
|
82 |
const TAknSoftNotificationType aNotificationType,
|
|
83 |
const TInt aAmount );
|
|
84 |
|
|
85 |
/**
|
|
86 |
* Custom notification.
|
|
87 |
*/
|
|
88 |
void ShowCustomNotificationL(
|
|
89 |
const TAknSoftNotificationType aNotificationType,
|
|
90 |
const TInt aAmount );
|
|
91 |
|
|
92 |
/**
|
|
93 |
* Normal notification.
|
|
94 |
*/
|
|
95 |
void ShowDefaultNotificationL(
|
|
96 |
const TAknSoftNotificationType aNotificationType,
|
|
97 |
const TInt aAmount );
|
|
98 |
|
|
99 |
CAknSoftNotificationParameters* VoicemailNoteParametersL(
|
|
100 |
const TAknSoftNotificationType aNotificationType,
|
|
101 |
const TBool aAmountKnown );
|
|
102 |
/**
|
|
103 |
* Creates grouped notification parameters.
|
|
104 |
*/
|
|
105 |
CAknSoftNotificationParameters* CreateNotificationParametersLC(
|
|
106 |
const TAknSoftNotificationType aNotificationType,
|
|
107 |
TBool aAmountKnown );
|
|
108 |
|
|
109 |
/**
|
|
110 |
* Hides the note.
|
|
111 |
*/
|
|
112 |
void DoInformIdleStateL( TBool aCurrentState );
|
|
113 |
|
|
114 |
/**
|
|
115 |
* Converts NCN soft note type to avkon type
|
|
116 |
*/
|
|
117 |
TAknSoftNotificationType ConvertNCNTypeToAvkonType(
|
|
118 |
const MNcnNotifier::TNcnNotificationType aNotification ) const;
|
|
119 |
|
|
120 |
/**
|
|
121 |
* Converts NCN soft note type to secondary display type
|
|
122 |
*/
|
|
123 |
SecondaryDisplay::TSecondaryDisplayNcnListDialogs ConvertNCNTypeToSecondaryDisplayType(
|
|
124 |
const MNcnNotifier::TNcnNotificationType aNotification ) const;
|
|
125 |
|
|
126 |
private: // data
|
|
127 |
CAknSoftNotifier* iNotifier;
|
|
128 |
|
|
129 |
friend class CNcnlist_SNNotifier;
|
|
130 |
|
|
131 |
CRepository* iMuiuSettings;
|
|
132 |
};
|
|
133 |
|
|
134 |
#endif // NCNSNNOTIFIER_H
|
|
135 |
|
|
136 |
// End of File
|