qtinternetradio/irqcommon/inc/irqenums.h
changeset 0 09774dfdd46b
child 5 0930554dc389
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     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 #ifndef IRQENUMS_H_
       
    18 #define IRQENUMS_H_
       
    19 
       
    20 #define RETURN_IF_ERR(err)  if( EIRQErrorNone != (err) ) \
       
    21   return EIRQErrorGeneral;
       
    22 
       
    23 enum IRQError
       
    24 {
       
    25     EIRQErrorNone = 0,
       
    26     EIRQErrorGeneral = -1000,
       
    27     EIRQErrorBadParameter,
       
    28     EIRQErrorOutOfMemory,
       
    29     EIRQErrorOpenInstanceFailed,
       
    30     EIRQErrorNotFound,
       
    31     EIRQErrorAlreadyExist,
       
    32     EIRQErrorCouldNotConnect,
       
    33     EIRQErrorTimeOut,
       
    34     EIRQErrorServiceUnavailable,
       
    35     EIRQErrorCorrupt,
       
    36     EIRQErrorFull,
       
    37     
       
    38     //player engine errors
       
    39     EIRQPlayerErrorGeneral,
       
    40     EIRQPlayerErrorConnectingFailed,   //Failed to connect to station
       
    41     EIRQPlayerErrorConnectionLost,     //Connection lost
       
    42     EIRQPlayerErrorAudioDeviceLost,    //Audio device is occupied by another app with higher priority
       
    43     EIRQPlayerErrorSetStereoFailed,    //Set setero effect failed
       
    44     EIRQPlayerErrorServerFull,
       
    45     EIRQPlayerErrorTimeOut
       
    46 };
       
    47 
       
    48 enum IRQTerminatedType
       
    49 {
       
    50     EIRQUnknownTermination = -1,
       
    51     //terminated by user
       
    52     EIRQUserTerminated = 0,
       
    53     //no connection to the server
       
    54     EIRQNoConnectionToServer,
       
    55     //no connection to the network
       
    56     EIRQNoConnectionToNetwork
       
    57 };
       
    58 
       
    59 enum IRQConnectedFrom
       
    60 {
       
    61     //when session started straight from station details in iSDS
       
    62     EIRQIsds = 0,
       
    63     //when session started from a station details saved to iRAPP favorites and the station is not from iSDS (channel_Id = 0 )
       
    64     EIRQPresetAdhoc,
       
    65     //when session started from a station details saved to iRAPP favorites and the station is from iSDS (channel_ID is iSDS channel_ID)
       
    66     EIRQPresetIsds,
       
    67     //when session started from iRAPP 'station play history' and the station is not from iSDS (channel_Id = 0 )
       
    68     EIRQHistoryAdhoc,
       
    69     //when session started from iRAPP 'station play history' and the station is from iSDS (channel_ID is iSDS channel_ID )
       
    70     EIRQHistoryIsds,
       
    71     //when session started from manually entered stream url
       
    72     EIRQAdhocManual,
       
    73     //when iRAPP session started/triggered from any iRAPP external client e.g. Browser or SMS/MMS
       
    74     EIRQAdhocExternal,
       
    75     // Max value
       
    76     EIRQConnectedFromMaxValue
       
    77 };
       
    78 
       
    79 enum IRQNmsType
       
    80 {
       
    81     //find in music shop 
       
    82     EIRQFind = 0,
       
    83     //launch music shop
       
    84     EIRQLaunch
       
    85 };
       
    86 
       
    87 enum IRQPreferredQuality
       
    88 {
       
    89     EIRQStandardQuality = 0,
       
    90     EIRQHighQuality
       
    91 };
       
    92 
       
    93 #endif /* IRQERROR_H_ */
       
    94