ui/commandhandlers/commoncommandhandlers/inc/glxcommandhandlereditimage.h
changeset 55 fb37077c270f
equal deleted inserted replaced
49:f291796e213d 55:fb37077c270f
       
     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 GlxCommandHandlerEditImage_H_
       
    19 #define GlxCommandHandlerEditImage_H_
       
    20 
       
    21 
       
    22 #include <glxmodelcommandhandler.h>
       
    23 #include <xqappmgr.h>               // for XQApplicationManager
       
    24 
       
    25 #ifdef BUILD_COMMONCOMMANDHANDLERS
       
    26 #define GLX_COMMONCOMMANDHANDLERS_EXPORT Q_DECL_EXPORT
       
    27 #else
       
    28 #define GLX_COMMONCOMMANDHANDLERS_EXPORT Q_DECL_IMPORT
       
    29 #endif
       
    30 
       
    31 //Forward Declaration
       
    32 class XQAiwRequest;
       
    33 
       
    34 class GLX_COMMONCOMMANDHANDLERS_EXPORT GlxCommandHandlerEditImage : public GlxModelCommandHandler
       
    35 {
       
    36   Q_OBJECT
       
    37   
       
    38 public:
       
    39     GlxCommandHandlerEditImage();
       
    40     ~GlxCommandHandlerEditImage();
       
    41     void executeCommand(int commandId,int collectionId, QList<QModelIndex> indexList = QList<QModelIndex>() );
       
    42     void doHandleUserAction(GlxMediaModel* model,QList<QModelIndex> indexList) const ;
       
    43 
       
    44 public slots:
       
    45     void handleOk(const QVariant& result);
       
    46     void handleError(int errorCode, const QString& errorMessage);
       
    47     void storeItems(const QModelIndex &parent, int start, int end);
       
    48 
       
    49 private:
       
    50     void clearMediaModel();
       
    51     
       
    52 private:
       
    53     XQAiwRequest* mReq;
       
    54     XQApplicationManager mAppmgr;
       
    55 	GlxMediaModel* mMediaModel;
       
    56 };
       
    57 
       
    58 
       
    59 #endif /* GlxCommandHandlerEditImage_H_ */