mmsharing/mmshui/tsrc/ut_ui/inc/musuireceiveobserveradapter.h
branchRCL_3
changeset 33 bc78a40cd63c
parent 0 f0cf47e981f9
equal deleted inserted replaced
32:73a1feb507fb 33:bc78a40cd63c
       
     1 /*
       
     2 * Copyright (c) 2005 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 Applications Event Observer Interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MUSUIRECEIVEOBSERVERADAPTER_H__
       
    21 #define __MUSUIRECEIVEOBSERVERADAPTER_H__
       
    22 
       
    23 #include "musuidefinitions.h"
       
    24 #include "musuireceiveobserver.h"
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <aknappui.h>
       
    28 //#include <badesca.h>
       
    29 
       
    30 class CMusUiReceiveObserverAdapter : public MMusUiReceiveObserver
       
    31     {
       
    32 
       
    33     public:
       
    34     
       
    35         CMusUiReceiveObserverAdapter();
       
    36         ~CMusUiReceiveObserverAdapter();
       
    37 
       
    38         void ShowErrorDialog( const TDesC& aPrompt );
       
    39 
       
    40         void ShowErrorDialogL( const TDesC& aMessage );
       
    41 
       
    42         void ShowInvitationQueryL( const TDesC& aQuery );
       
    43 
       
    44         void DismissInvitationQuery( TBool aDelete );
       
    45 
       
    46         void ShowWaitDialogL( const TDesC& aPrompt );
       
    47 
       
    48         void DismissWaitDialogL( );
       
    49 
       
    50         void ShowInformationDialogL( TInt aResourceId );
       
    51 
       
    52         void ShowNaviPaneIconL( TMusUiNaviMediaDecorator aIcon,
       
    53                                         TBool aVisible );
       
    54 
       
    55         void ShowStatusPaneL( TBool aVisible );
       
    56 
       
    57         void ChangeOrientationL(
       
    58                                 CAknAppUiBase::TAppUiOrientation aOrientation );
       
    59 
       
    60         void UpdateSessionTime(  const TDesC& aSessionTime );
       
    61 
       
    62         void SetVolume( TBool aUp );
       
    63 
       
    64         void HandleError( TInt aError );
       
    65 
       
    66         void HandleExitL();
       
    67 
       
    68 
       
    69         enum TMusUiReceiveObserverFuncion
       
    70             {
       
    71             ENone,                          // default value
       
    72             EShowErrorDialog,
       
    73             EShowErrorDialogL,
       
    74             EShowInvitationQueryL,
       
    75             EDismissInvitationQuery,
       
    76             EShowWaitDialogL,
       
    77             EDismissWaitDialogL,
       
    78             EShowInformationDialogL,
       
    79             EShowNaviPaneIconL,
       
    80             EShowStatusPaneL,
       
    81             EChangeOrientationL,
       
    82             EUpdateSessionTime,
       
    83             ESetVolume,
       
    84             EHandleError,
       
    85             EHandleExitL
       
    86             };
       
    87 
       
    88 
       
    89 
       
    90         TMusUiReceiveObserverFuncion iCalledObserver;
       
    91 
       
    92         // Return values
       
    93         TBool iBoolReturn;
       
    94 
       
    95         // Error code
       
    96         TInt iErrorCode;
       
    97 
       
    98         TMusUiNaviMediaDecorator iIcon;
       
    99 
       
   100         CAknAppUiBase::TAppUiOrientation iOrientation;
       
   101 
       
   102         HBufC* iAddress;
       
   103 
       
   104         TInt iError;
       
   105         TInt iShowErrorDialogErrorCode;
       
   106         TBool iVisible;
       
   107         TInt iResourceId;
       
   108 
       
   109     };
       
   110 
       
   111 #endif 
       
   112 
       
   113 // end of file