photosgallery/controllers/fetcher/inc/glxfetchercommandhandler.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-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:    Commandhandler that requests the marking commandhandler to 
       
    15 *                mark items onto the medialist during multiple selection
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef GLXFETCHERCOMMANDHANDLER_H_
       
    23 #define GLXFETCHERCOMMANDHANDLER_H_
       
    24 
       
    25 #include <glxmedialistcommandhandler.h>
       
    26 #include <glxcommandhandlermarking.h>
       
    27 
       
    28 //Forward Decleration
       
    29 class MGlxTitleObserver;
       
    30 
       
    31 /**
       
    32 *  CGlxFetcherCommandHandler
       
    33 * 
       
    34 */
       
    35 class CGlxFetcherCommandHandler : public CGlxMediaListCommandHandler
       
    36                          
       
    37 {
       
    38 public:
       
    39     /**
       
    40      * Two-phase constructor NewL
       
    41      * @param aMediaListProvider Medialist provider
       
    42      * @param aTitleObserver Title observer 
       
    43      */
       
    44     static CGlxFetcherCommandHandler* NewL(MGlxMediaListProvider 
       
    45             *aMediaListProvider ,MGlxTitleObserver* aTitleObserver);
       
    46 
       
    47     /**
       
    48      * Destructor 
       
    49      */
       
    50     ~CGlxFetcherCommandHandler(); 
       
    51 
       
    52 public: 
       
    53     /// From CGlxMediaListCommandHandler
       
    54     /// See @ref CGlxMediaListCommandHandler::ExecuteL */
       
    55     TBool DoExecuteL(TInt aCommandId, MGlxMediaList& aList);
       
    56 
       
    57 protected:  
       
    58     /** See @ref CGlxMediaListCommandHandler */
       
    59     TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;
       
    60     
       
    61 private:
       
    62     /** 
       
    63      *  ConstructorL
       
    64      */
       
    65     void ConstructL();
       
    66     
       
    67     /** 
       
    68      *  Default Constructor
       
    69      */
       
    70     CGlxFetcherCommandHandler(MGlxMediaListProvider* aMediaListProvider,
       
    71         MGlxTitleObserver* aTitleObserver );
       
    72 
       
    73 private:    
       
    74     // (Not owned)
       
    75     MGlxMediaListProvider* iMediaListProvider;
       
    76     MGlxTitleObserver* iTitleObserver;
       
    77     
       
    78     // (Owned)
       
    79     CGlxCommandHandlerMarking* iCommandhandlerMarking;         
       
    80     };
       
    81 #endif /*GLXFETCHERCOMMANDHANDLER_H_*/