|
1 /* |
|
2 * Copyright (c) 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: Mus Application's Sharing Observer Interface |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MUSUISHARINGOBSERVER_H |
|
21 #define MUSUISHARINGOBSERVER_H |
|
22 |
|
23 |
|
24 #include <e32cmn.h> |
|
25 #include <AknProgressDialog.h> |
|
26 |
|
27 class MMusUiSharingObserver |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 /* |
|
33 * Shows sychronous wait dialog with softkey R_AVKON_SOFTKEYS_CANCEL. |
|
34 * @param aPrompt Prompt text shown in dialog |
|
35 * @param aTimerInSeconds Timer in seconds when dialog is dismissed |
|
36 * automatically. Timer value 0 means that no timer is used. |
|
37 * @param aExpirationMessageResourceId is ID of resource indicating |
|
38 * the message to be shown if timer expires. Value 0 means that |
|
39 * no message is shown. |
|
40 * @return EFalse if dialog is dismissed by user pressing cancel |
|
41 * or by expiration of timer. ETrue if DismissWaitDialogL |
|
42 * is called with parameter ETrue; |
|
43 */ |
|
44 virtual TBool ShowWaitDialogL( |
|
45 const TDesC& aPrompt, |
|
46 TInt aTimerInSeconds = 0, |
|
47 TInt aExpirationMessageResourceId = 0 ) = 0; |
|
48 |
|
49 /* |
|
50 * Dismisses sychronous wait dialog shown by calling ShowWaitDialogL. |
|
51 * @param aReturnValue determines return value of function |
|
52 * ShowWaitDialogL. |
|
53 */ |
|
54 virtual void DismissWaitDialogL( TBool aReturnValue = ETrue ) = 0; |
|
55 |
|
56 /** |
|
57 * Set call back service of wait dialog |
|
58 * @param aCallback A pointer of class MProgressDialogCallback |
|
59 * which implemented DialogDismissedL |
|
60 */ |
|
61 virtual void SetWaitDialogCallbackL( MProgressDialogCallback* aCallback ) = 0; |
|
62 |
|
63 virtual void ShowStatusPaneTitleL() = 0; |
|
64 |
|
65 /** |
|
66 * |
|
67 */ |
|
68 virtual void EnableMiddleSoftkeyL( TInt aResourceId ) = 0; |
|
69 |
|
70 virtual void ActivateVolumeControlL( TInt aValue ) = 0; |
|
71 |
|
72 virtual void HighlightSelectedToolbarItem( TInt aCommand ) = 0; |
|
73 |
|
74 virtual void ReplaceToolbarCommand( TInt aOldCommand, |
|
75 TInt aNewCommand, |
|
76 TBool aSetNewCommandFocused ) = 0; |
|
77 |
|
78 virtual void RefreshAudioRoutingToolbarButton() = 0; |
|
79 |
|
80 virtual void UpdateSessionTime( const TDesC& aSessionTime ) = 0; |
|
81 |
|
82 }; |
|
83 |
|
84 #endif // MUSUISHARINGOBSERVER_H |
|
85 |
|
86 // end of file |