qtinternetradio/irqcommon/inc/irviewdefinitions.h
changeset 0 09774dfdd46b
child 3 ee64f059b8e1
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 IRVIEWDEFINITIONS_H
       
    18 #define IRVIEWDEFINITIONS_H
       
    19 
       
    20 enum TIRViewId
       
    21 {
       
    22     EIRView_InvalidId = -1,
       
    23     EIRView_MainView,
       
    24     EIRView_CategoryView,
       
    25     EIRView_StationsView,
       
    26     EIRView_PlayingView,
       
    27     EIRView_FavoritesView,
       
    28     EIRView_HistoryView,
       
    29     EIRView_StationDetailsView,
       
    30     EIRView_SettingsView,
       
    31 	EIRView_OpenWebAddressView,
       
    32 	EIRView_SearchView,
       
    33 	EIRView_SearchResultView,
       
    34 	EIRView_SongHistoryView,
       
    35 	EIRView_PlsView,
       
    36     EIRView_ViewCount
       
    37 };
       
    38 
       
    39 enum TIRViewParameter
       
    40 {
       
    41     EIRViewPara_InvalidId = -1,
       
    42     EIRViewPara_Genre,
       
    43     EIRViewPara_Language,
       
    44     EIRViewPara_Country,
       
    45     EIRViewPara_PopularStations,
       
    46     EIRViewPara_CategoryStations,
       
    47     EIRViewPara_SearchResults,
       
    48     EIRViewPara_ViewCounts
       
    49 };
       
    50 
       
    51 enum TIRHandleResult
       
    52 {
       
    53     EIR_DoDefault,
       
    54     EIR_NoDefault
       
    55 };
       
    56 
       
    57 enum TIRViewCommand
       
    58 {
       
    59     EIR_ViewCommand_ACTIVATED,
       
    60     EIR_ViewCommand_DEACTIVATE,
       
    61     EIR_ViewCommand_EffectFinished,
       
    62     EIR_ViewCommand_MAX
       
    63 };
       
    64 
       
    65 enum TIRViewCommandReason
       
    66 {
       
    67     EIR_ViewCommandReason_Show,
       
    68     EIR_ViewCommandReason_Hide,  //a new view becomes current view, old view is deactivated and push into view stack
       
    69     EIR_ViewCommandReason_Back   //current view is deactivated, the top view in view stack becomes current view
       
    70 };
       
    71 
       
    72 enum TIRUseNetworkReason
       
    73 {
       
    74     EIR_UseNetwork_NoReason,
       
    75     EIR_UseNetwork_SelectItem,
       
    76     EIR_UseNetwork_StartingView,
       
    77     EIR_UseNetwork_OpenWebAddress,
       
    78     EIR_UseNetwork_StartSearch,
       
    79     EIR_UseNetwork_DownloadLogo,
       
    80     EIR_UseNetwork_LoadCategory,
       
    81     EIR_UseNetwork_PlayStation
       
    82 };
       
    83 
       
    84 #endif