ui/commandhandlers/commandhandlerbase/src/glxmodelcommandhandler.cpp
changeset 24 99ad1390cd33
child 36 6481344a6d67
equal deleted inserted replaced
23:74c9f037fd5d 24:99ad1390cd33
       
     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 #include <glxmediamodel.h>
       
    19 #include <glxmodelcommandhandler.h>
       
    20 #include <glxmodelparm.h>
       
    21 
       
    22 GlxModelCommandHandler::GlxModelCommandHandler()
       
    23     {
       
    24     }
       
    25 
       
    26 GlxModelCommandHandler::~GlxModelCommandHandler()
       
    27     {
       
    28     }
       
    29 
       
    30 void GlxModelCommandHandler::executeCommand(int commandId, int collectionId,QList<QModelIndex> indexList)
       
    31     {
       
    32     GlxModelParm modelParm (collectionId, 0);
       
    33     GlxMediaModel* mediaModel = new GlxMediaModel (modelParm);
       
    34     doHandleUserAction(mediaModel,indexList);
       
    35     delete mediaModel;
       
    36     }