83
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-2007 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: Soft notifier renderer.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef C_AISOFTNOTIFERRENDERER_H
|
|
20 |
#define C_AISOFTNOTIFERRENDERER_H
|
|
21 |
|
|
22 |
// System includes
|
|
23 |
#include <e32base.h>
|
|
24 |
#include <AknSoftNotifier.h>
|
|
25 |
|
|
26 |
// User includes
|
|
27 |
#include "ainativerenderer.h"
|
|
28 |
|
|
29 |
// Forward declarations
|
|
30 |
class CHsContentPublisher;
|
|
31 |
class CAknSoftNotifier;
|
|
32 |
|
|
33 |
namespace AiNativeUiController
|
|
34 |
{
|
|
35 |
/**
|
|
36 |
* Dialog renderer.
|
|
37 |
*
|
|
38 |
* Used to show CAknSoftNotifier on screen.
|
|
39 |
*
|
|
40 |
* @since S60 3.2
|
|
41 |
*/
|
|
42 |
NONSHARABLE_CLASS( CAiNotifierRenderer ) : public CAiNativeRenderer
|
|
43 |
{
|
|
44 |
public:
|
|
45 |
|
|
46 |
static CAiNotifierRenderer* NewLC();
|
|
47 |
|
|
48 |
virtual ~CAiNotifierRenderer();
|
|
49 |
|
|
50 |
// from base class CAiNativeRenderer
|
|
51 |
|
|
52 |
void DoPublishL( CHsContentPublisher& aPlugin, TInt aContent, TInt aResource, TInt aIndex );
|
|
53 |
|
|
54 |
void DoCleanL( CHsContentPublisher& aPlugin, TInt aContent );
|
|
55 |
|
|
56 |
private:
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Add a notification
|
|
60 |
*/
|
|
61 |
void AddNotification( TAknSoftNotificationType aType );
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Remove a notification
|
|
65 |
*/
|
|
66 |
void RemoveNotification( TAknSoftNotificationType aType );
|
|
67 |
|
|
68 |
void ConstructL();
|
|
69 |
|
|
70 |
static TInt NWLostDelayCallBack(TAny* aParam);
|
|
71 |
|
|
72 |
CAiNotifierRenderer();
|
|
73 |
|
|
74 |
private: // data
|
|
75 |
|
|
76 |
/**
|
|
77 |
* Notifier service
|
|
78 |
* Own
|
|
79 |
*/
|
|
80 |
CAknSoftNotifier* iSoftNotifier;
|
|
81 |
|
|
82 |
/**
|
|
83 |
* Timer to delay the showing of the notification if needed
|
|
84 |
* Own
|
|
85 |
*/
|
|
86 |
CPeriodic *iTimer;
|
|
87 |
};
|
|
88 |
|
|
89 |
} // namespace AiNativeUiController
|
|
90 |
|
|
91 |
#endif // C_AISOFTNOTIFERRENDERER_H
|