|
1 /* |
|
2 * Copyright (c) 2006 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: Interface class for displaying notifications. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __UINOTIFY_H__ |
|
19 #define __UINOTIFY_H__ |
|
20 |
|
21 |
|
22 /** |
|
23 * This class specifies the console output functions. It |
|
24 * can be used in conjunction with any class that want to |
|
25 * display notifications in output window of the container. |
|
26 */ |
|
27 class MUINotify |
|
28 { |
|
29 public: |
|
30 |
|
31 /** |
|
32 * Displays the descriptor as text (with attributes) on the console |
|
33 * @param the text to be displayed |
|
34 * @param attributes e.g. CEikGlobalTextEditor::EItalic |
|
35 */ |
|
36 virtual void PrintNotify(const TDesC& aMessage, TUint aAttributes = 0) = 0; |
|
37 |
|
38 /** |
|
39 * Displays the descriptor as text (with attributes) on the console |
|
40 * @param the text to be displayed |
|
41 * @param attributes e.g. CEikGlobalTextEditor::EItalic |
|
42 */ |
|
43 virtual void PrintNotify(const TDesC8& aMessage, TUint aAttributes = 0) = 0; |
|
44 |
|
45 /** |
|
46 * Displays the integer as a decimal number on the console |
|
47 * @param aNumber the number to be displayed |
|
48 */ |
|
49 virtual void PrintNotify(TInt aNumber) = 0; |
|
50 |
|
51 /** |
|
52 * Displays an error message |
|
53 * @param aErrMessage error message text |
|
54 * @param aErrCode error code number |
|
55 */ |
|
56 virtual void ErrorNotify(const TDesC& aErrMessage, TInt aErrCode) = 0; |
|
57 |
|
58 /** |
|
59 * Notify user with a message |
|
60 * @param aMessage message associated |
|
61 */ |
|
62 virtual void PopupNotify(const TDesC& aMessage) = 0; |
|
63 |
|
64 /** |
|
65 * Displays the text in the 'status' window |
|
66 * @param aStatus new status description text |
|
67 */ |
|
68 virtual void SetStatus(const TDesC& aStatus) = 0; |
|
69 }; |
|
70 |
|
71 #endif |