ui/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraddtocontainer.h
changeset 23 74c9f037fd5d
child 24 99ad1390cd33
equal deleted inserted replaced
5:f7f0874bfe7d 23:74c9f037fd5d
       
     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 GLXCOMMANDHANDLERADDTOCONTAINER_H
       
    19 #define GLXCOMMANDHANDLERADDTOCONTAINER_H
       
    20 
       
    21 #include <QModelIndexList>
       
    22 #include <glxmpxcommandhandler.h>
       
    23 #include <QGraphicsWidget>
       
    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 class CMPXCollectionPath;
       
    31 class HbPushButton;
       
    32 class HbListView;
       
    33 class QGraphicsGridLayout;
       
    34 class GlxAlbumModel;
       
    35 class QGraphicsItem;
       
    36 
       
    37 class GLX_COMMONCOMMANDHANDLERS_EXPORT GlxCommandHandlerAddToContainer : public GlxMpxCommandHandler
       
    38 	{
       
    39 	Q_OBJECT    
       
    40 public:
       
    41     GlxCommandHandlerAddToContainer();
       
    42     ~GlxCommandHandlerAddToContainer();
       
    43     CMPXCommand* CreateCommandL(TInt aCommandId, MGlxMediaList& aMediaList, TBool& aConsume) const ;
       
    44     QModelIndexList GetSelectionList(GlxAlbumModel *model,bool *ok = 0) const;
       
    45 
       
    46 private:
       
    47     static TInt iSelectionCount;
       
    48     mutable bool mNewMediaAdded ;
       
    49     mutable CMPXCollectionPath* mTargetContainers ;
       
    50 
       
    51 private slots:    
       
    52 	void createNewMedia();
       
    53 	};
       
    54 
       
    55 class GlxQueryContentWidget :public QGraphicsWidget
       
    56 {
       
    57 	Q_OBJECT
       
    58 public:
       
    59     HbPushButton* mButton;
       
    60     HbListView* mListView;
       
    61     QGraphicsGridLayout *mGrid;
       
    62     GlxQueryContentWidget(QGraphicsItem* parent = 0);
       
    63     ~GlxQueryContentWidget();
       
    64 };
       
    65     
       
    66     
       
    67 #endif // GLXCOMMANDHANDLERADDTOCONTAINER_H