internetradio2.0/irisdsclient/inc/misdsresponseobserver.h
changeset 14 896e9dbc5f19
equal deleted inserted replaced
12:608f67c22514 14:896e9dbc5f19
       
     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:  The implementation for presentation elements.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MISDSRESPONSEOBSERVER
       
    20 #define MISDSRESPONSEOBSERVER
       
    21 
       
    22 #include <e32def.h>
       
    23 
       
    24 class CIRBrowseCatagoryItems;
       
    25 class CIRBrowseChannelItems;
       
    26 class CIRIsdsPreset;
       
    27 class CIROTAUpdate;
       
    28 
       
    29 /**
       
    30  * MIsdsResponseObserver
       
    31  * passes events and responses body data recived from isds server with this interface.
       
    32  * An instance of this class must be provided for construction of 
       
    33  * CIRIsdsClient.
       
    34  */
       
    35 class MIsdsResponseObserver
       
    36     {
       
    37 public:
       
    38     /**
       
    39      * MIsdsResponseObserver::IsdsErrorL()
       
    40      * Used to Indiacte error in retrieving data from Isds
       
    41      * @param aErrCode- contains error code
       
    42      */
       
    43     virtual void IsdsErrorL(TInt aErrCode) = 0;
       
    44 
       
    45     /**
       
    46      * MIsdsResponseObserver::IsdsCatogoryDataReceivedL()
       
    47      * Called when catogory information is recieved from ISDS
       
    48      * @param aParsedStructure - contains catogory info
       
    49      */
       
    50 	virtual void IsdsCatogoryDataReceivedL(
       
    51 		CArrayPtrFlat<CIRBrowseCatagoryItems> & aParsedStructure) = 0;
       
    52 
       
    53     /**
       
    54      * MIsdsResponseObserver::IsdsChannelDataReceivedL()
       
    55      * Called when channel information is recieved from ISDS
       
    56      * @param aParsedStructure - contains Channel info
       
    57      */
       
    58     virtual void IsdsChannelDataReceivedL(
       
    59             CArrayPtrFlat<CIRBrowseChannelItems> & aParsedStructure) = 0;
       
    60 
       
    61     /**
       
    62      * MIsdsResponseObserver::IsdsPresetDataReceivedL()
       
    63      * Called when preset information is recieved from ISDS
       
    64      * @param aParsedStructure - contains Preset info
       
    65      */
       
    66     virtual void IsdsPresetDataReceivedL(
       
    67             CArrayPtrFlat<CIRIsdsPreset> & aParsedStructure) = 0;
       
    68 
       
    69     /**
       
    70      * MIsdsResponseObserver::IsdsIRIDRecieved()
       
    71      * Called to provide IRID
       
    72      * @param aIRID  - contains IRID recived from Isds
       
    73      */
       
    74     virtual void IsdsIRIDRecieved(const TDesC& aIRID)=0;
       
    75 
       
    76     /**
       
    77      * MIsdsResponseObserver::IsdsOtaInfoRecieved()
       
    78      * called back when OTA info is recieved and Ui needs to be intimated
       
    79      * @param CIROTAUpdate&,the ota information 
       
    80      */
       
    81     virtual void IsdsOtaInfoRecieved(CIROTAUpdate &aOtaData)=0;
       
    82 
       
    83     /**
       
    84      * MIsdsResponseObserver::IsdsPresetRemovedL()
       
    85      * called back when the preset that is synced was removed from isds
       
    86      * @param TInt,the preset id
       
    87      */
       
    88     virtual void IsdsPresetRemovedL(TInt aId)=0;
       
    89 
       
    90     /**
       
    91      * MIsdsResponseObserver::IsdsPresetChangedL()
       
    92      * called back when the preset that is synced has been changed in the isds
       
    93      * @param CIRIsdsPreset&,the new preset data
       
    94      */
       
    95     virtual void IsdsPresetChangedL(CIRIsdsPreset& aPreset)=0;
       
    96 
       
    97     /**
       
    98      * MIsdsResponseObserver::IsdsPresetNoChangeL()
       
    99      * called back when the preset that is synced has not been changed
       
   100      */
       
   101     virtual void IsdsPresetNoChangeL()=0;
       
   102 
       
   103     };
       
   104 
       
   105 #endif // MISDSRESPONSEOBSERVER