radioengine/engine/api/mradiordsdataobserver.h
branchRCL_3
changeset 19 cce62ebc198e
equal deleted inserted replaced
18:1a6714c53019 19:cce62ebc198e
       
     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 MRADIORDSDATAOBSERVER_H
       
    19 #define MRADIORDSDATAOBSERVER_H
       
    20 
       
    21 // System includes
       
    22 #include <e32std.h>
       
    23 
       
    24 // Class declaration
       
    25 NONSHARABLE_CLASS( MRadioRdsDataObserver )
       
    26     {
       
    27 public:
       
    28 
       
    29     /**
       
    30      * Notifies of the status of RDS signal
       
    31      */
       
    32     virtual void RdsAvailable( TUint32 aFrequency, TBool aAvailable ) = 0;
       
    33 
       
    34     /**
       
    35      * Notifies of the beginning of Alternate Frequency search
       
    36      */
       
    37     virtual void RdsAfSearchBegin() = 0;
       
    38 
       
    39     /**
       
    40      * Notifies of the completed Alternate Frequency search
       
    41      *
       
    42      * @param aFrequency The new frequency
       
    43      * @param aError A standard system error code
       
    44      */
       
    45     virtual void RdsAfSearchEnd( TUint32 aFrequency, TInt aError ) = 0;
       
    46 
       
    47     /**
       
    48      * Notifies of the changed Alternate Frequency search state
       
    49      *
       
    50      * @param aEnabled ETrue if AF search was enabled, otherwise EFalse
       
    51      */
       
    52     virtual void RdsAfSearchStateChange( TBool aEnabled ) = 0;
       
    53 
       
    54     /**
       
    55      * Programme Service data available
       
    56      *
       
    57      * @param aProgramService The new Programme Service data
       
    58      */
       
    59     virtual void RdsDataProgrammeService( TUint32 aFrequency, const TDesC& aProgramService ) = 0;
       
    60 
       
    61     /**
       
    62      * Radio text data available
       
    63      *
       
    64      * @param aRt The new radio text data
       
    65      */
       
    66     virtual void RdsDataRadioText( TUint32 aFrequency, const TDesC& aRt ) = 0;
       
    67 
       
    68     /**
       
    69      * Radio text plus data available.
       
    70      *
       
    71      * @param aRtPlusClass The class of the radio text plus data. Radio text plus classes are
       
    72      *                     specified in TRdsRTplusClass enumeration.
       
    73      * @param aRtPlusData The new radio text plus data.
       
    74      */
       
    75     virtual void RdsDataRadioTextPlus( TUint32 aFrequency, const TInt aRtPlusClass, const TDesC& aRtPlusData ) = 0;
       
    76 
       
    77     /**
       
    78      * Radio genre available
       
    79      */
       
    80     virtual void RdsDataGenre( TUint32 aFrequency, const TInt aGenre ) = 0;
       
    81 
       
    82     /**
       
    83      * Radio PI code available
       
    84      */
       
    85     virtual void RdsDataPiCode( TUint32 aFrequency, const TInt aPiCode ) = 0;
       
    86 
       
    87     };
       
    88 
       
    89 #endif // MRADIORDSDATAOBSERVER_H