equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009-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: |
|
15 * Declaration of CGlobalWaitNoteObserver class. |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef __GLOBALWAITNOTE_H__ |
|
21 #define __GLOBALWAITNOTE_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class CGlobalWaitNote : public CActive |
|
26 { |
|
27 public: |
|
28 class MGlobalWaitNoteClient |
|
29 { |
|
30 public: |
|
31 virtual void WaitNoteCancelled() = 0; |
|
32 }; |
|
33 static CGlobalWaitNote* NewL (MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue); |
|
34 static CGlobalWaitNote* NewLC(MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue); |
|
35 |
|
36 public: |
|
37 virtual ~CGlobalWaitNote(); |
|
38 void ShowNoteL(const TDesC& aText); |
|
39 void CancelNoteL(); |
|
40 |
|
41 private: |
|
42 void ConstructL(); |
|
43 void RunL(); |
|
44 void DoCancel(); |
|
45 |
|
46 private: |
|
47 CGlobalWaitNote(MGlobalWaitNoteClient& aOwner, TBool aCancellable); |
|
48 |
|
49 private: |
|
50 MGlobalWaitNoteClient& iOwner; |
|
51 CAknGlobalNote* iWaitNote; |
|
52 TInt iWaitNoteId; |
|
53 TBool iCancellable; |
|
54 TRequestStatus iStatus; |
|
55 }; |
|
56 |
|
57 #endif |