|
1 /* |
|
2 * Copyright (c) 2009 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 * |
|
16 */ |
|
17 |
|
18 #ifndef MUSUILIVESHARINGOBSERVERADAPTER_H |
|
19 #define MUSUILIVESHARINGOBSERVERADAPTER_H |
|
20 |
|
21 #include "musuidefinitions.h" |
|
22 #include "musuilivesharingobserver.h" |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <aknappui.h> |
|
26 #include <badesca.h> |
|
27 |
|
28 class CMusUiLiveSharingObserverAdapter : public MMusUiLiveSharingObserver |
|
29 { |
|
30 |
|
31 public: |
|
32 |
|
33 CMusUiLiveSharingObserverAdapter(); |
|
34 ~CMusUiLiveSharingObserverAdapter(); |
|
35 |
|
36 |
|
37 TBool SelectAddressDialogL( CDesCArray* aAddressArray, |
|
38 TDes& aSelectedAddress ); |
|
39 void ManualAddressEntryL( const TDesC& aAddress ); |
|
40 |
|
41 void ShowWaitDialogL( const TDesC& aPrompt ); |
|
42 |
|
43 void DismissWaitDialogL( ); |
|
44 |
|
45 void ShowErrorDialogL( const TDesC& aMessage ); |
|
46 |
|
47 void ShowInformationDialogL( TInt aResourceId ); |
|
48 |
|
49 void ShowLiveSharingPanesL(); |
|
50 |
|
51 void ChangeOrientationL( |
|
52 CAknAppUiBase::TAppUiOrientation aOrientation ); |
|
53 |
|
54 void ShowNaviPaneIconL( |
|
55 TMusUiNaviMediaDecorator aIcon, |
|
56 TBool aVisible ); |
|
57 |
|
58 void UpdateSessionTime( const TDesC& aSessionTime ); |
|
59 |
|
60 void SetVolume( TBool aUp ); |
|
61 |
|
62 void SetZoom( TBool aIn ); |
|
63 |
|
64 void HandleError( TInt aError ); |
|
65 |
|
66 void HandleExitL(); |
|
67 |
|
68 void CancelInvitationTimer(); |
|
69 |
|
70 |
|
71 enum TMusUiLiveSharingObserverFuncion |
|
72 { |
|
73 ENone, // default value |
|
74 ESelectAddressDialogL, |
|
75 EManualAddressEntryL, |
|
76 EShowWaitDialogL, |
|
77 EDismissWaitDialogL, |
|
78 EShowErrorDialogL, |
|
79 EShowInformationDialogL, |
|
80 EShowLiveSharingPanesL, |
|
81 EChangeOrientationL, |
|
82 EShowNaviPaneIconL, |
|
83 EUpdateSessionTime, |
|
84 ESetVolume, |
|
85 ESetZoom, |
|
86 EHandleError, |
|
87 EHandleExitL, |
|
88 ECancelInvitationTimer |
|
89 }; |
|
90 |
|
91 |
|
92 |
|
93 TMusUiLiveSharingObserverFuncion iCalledObserver; |
|
94 |
|
95 // Return values |
|
96 TBool iBoolReturn; |
|
97 |
|
98 // Error code |
|
99 TInt iErrorCode; |
|
100 |
|
101 TMusUiNaviMediaDecorator iIcon; |
|
102 |
|
103 CAknAppUiBase::TAppUiOrientation iOrientation; |
|
104 |
|
105 HBufC* iAddress; |
|
106 |
|
107 TInt iError; |
|
108 TInt iShowErrorDialogErrorCode; |
|
109 |
|
110 |
|
111 }; |
|
112 |
|
113 #endif |
|
114 |
|
115 // end of file |