ui/viewmanagement/statehandler/src/glxliststate.cpp
branchRCL_3
changeset 59 8e5f6eea9c9f
equal deleted inserted replaced
57:ea65f74e6de4 59:8e5f6eea9c9f
       
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 #include <glxliststate.h>
       
    19 #include <glxcommandhandlers.hrh>
       
    20 #include <QDebug>
       
    21 
       
    22 GlxListState::GlxListState(GlxState *preState) : GlxState(GLX_LISTVIEW_ID, preState)
       
    23 {
       
    24     if ( preState )
       
    25         qDebug("GlxListState::GlxListState pre state id = %d", preState->id());
       
    26 }
       
    27 
       
    28 void GlxListState::eventHandler(qint32 &id)
       
    29 {
       
    30     qDebug("GlxListState::eventHandler action id = %d", id);
       
    31     switch(id) {
       
    32     case EGlxCmdAlbumListOpen :
       
    33     case EGlxCmdFetcherAlbumListOpen:
       
    34 	    id = EGlxCmdHandled;
       
    35 	    break ;
       
    36 	
       
    37     default :
       
    38 	    break;
       
    39 	}	
       
    40 }
       
    41 
       
    42 void GlxListState::setTranstionParameter(NavigationDir dir, GlxEffect &effect, GlxViewEffect &viewEffect)
       
    43 {
       
    44     qDebug("GlxListState::setTranstionParameter dir = %d", dir);
       
    45     if ( dir == NO_DIR) {
       
    46         effect = GRID_TO_ALBUMLIST ;
       
    47         viewEffect = BOTH_VIEW ;
       
    48     }
       
    49     else {
       
    50         effect = NO_EFFECT;
       
    51         viewEffect = NO_VIEW;
       
    52     }
       
    53 }
       
    54