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 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CGlobalWaitNote : public CActive |
|
24 { |
|
25 public: |
|
26 class MGlobalWaitNoteClient |
|
27 { |
|
28 public: |
|
29 virtual void WaitNoteCancelled() = 0; |
|
30 }; |
|
31 static CGlobalWaitNote* NewL (MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue); |
|
32 static CGlobalWaitNote* NewLC(MGlobalWaitNoteClient& aOwner, TBool aCancellable = ETrue); |
|
33 |
|
34 public: |
|
35 virtual ~CGlobalWaitNote(); |
|
36 void StartL(const TDesC& aText); |
|
37 void StopL(); |
|
38 |
|
39 protected: |
|
40 void ConstructL(); |
|
41 void RunL() ; |
|
42 void DoCancel(); |
|
43 |
|
44 private: |
|
45 CGlobalWaitNote(MGlobalWaitNoteClient& aOwner, TBool aCancellable); |
|
46 |
|
47 private: |
|
48 MGlobalWaitNoteClient& iOwner; |
|
49 CAknGlobalNote* iWaitNote; |
|
50 TInt iWaitNoteId; |
|
51 TBool iCancellable; |
|
52 TRequestStatus iStatus; |
|
53 }; |