internetradio2.0/uiinc/irbacksteppingservicewrapper.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     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:  Wrapper for Back Stepping Service
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CIRBACKSTEPPINGSERVICEWRAPPER_H
       
    20 #define CIRBACKSTEPPINGSERVICEWRAPPER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <vwsdef.h>
       
    24 
       
    25 class MLiwInterface;
       
    26 class CLiwGenericParamList;
       
    27 class CLiwServiceHandler;
       
    28 
       
    29 /**
       
    30  *  Back Stepping (BS) Service wrapper for Internet Radio.
       
    31  */
       
    32 class CIRBackSteppingServiceWrapper : public CBase
       
    33     {
       
    34 
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Static constructor.
       
    39      *
       
    40      * @param aUid Application UID.
       
    41      */
       
    42     static CIRBackSteppingServiceWrapper* NewL( TUid aUid );
       
    43 
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47      ~CIRBackSteppingServiceWrapper();
       
    48 
       
    49     /**
       
    50      * Forwards view activation event to BS Service.
       
    51      *
       
    52      * @param   aViewId View id of the view where back is called.
       
    53      * @param   aEnter Indicates if it is entry or exit activation.
       
    54      */
       
    55     void HandleViewActivationEventL( const TVwsViewId aViewId, TBool aEnter );
       
    56 
       
    57     /**
       
    58      * Forwards back command to BS Service.
       
    59      *
       
    60      * @param   aViewId View id of the view where back is called.
       
    61      * @return  Returns Etrue if BS Service consumed the command, otherwise returns EFalse.
       
    62      */
       
    63     TBool HandleBackCommandL( const TVwsViewId aViewId );
       
    64 
       
    65 private:
       
    66 
       
    67     /**
       
    68      * C++ default constructor.
       
    69      */
       
    70     CIRBackSteppingServiceWrapper();
       
    71 
       
    72     /**
       
    73      * 2nd phase constructor
       
    74      *
       
    75      * @param aUid Application UID.
       
    76      */
       
    77     void ConstructL( TUid aUid );
       
    78 
       
    79     /**
       
    80      * Initializes BS Service.
       
    81      *
       
    82      * @param aUid Application UID.
       
    83      */
       
    84     void InitializeL( TUid aUid );
       
    85 
       
    86     /**
       
    87      * Handles the result of a LIW command
       
    88      *
       
    89      * @return Returns ETrue if LIW command executed, otherwise returns EFalse.
       
    90      */
       
    91     TBool HandleResultL();
       
    92 
       
    93 private: // data
       
    94 
       
    95     /**
       
    96      * AIW Service Handler.
       
    97      * Own.
       
    98      */
       
    99     CLiwServiceHandler* iServiceHandler;
       
   100 
       
   101     /**
       
   102      * BS Service interface returned by LIW.
       
   103      * Own.
       
   104      */
       
   105     MLiwInterface* iBsInterface;
       
   106 
       
   107     /**
       
   108      * In param list.
       
   109      * Not own.
       
   110      */
       
   111     CLiwGenericParamList* iInParamList;
       
   112 
       
   113     /**
       
   114      * Out param list.
       
   115      * Not own.
       
   116      */
       
   117     CLiwGenericParamList* iOutParamList;
       
   118     };
       
   119 
       
   120 #endif // CIRBACKSTEPPINGSERVICEWRAPPER_H