photosgallery/viewframework/commandhandlers/commoncommandhandlers/inc/glxcommandhandleraiwshareonovi.h
changeset 0 4e91876724a2
child 25 191387a8b767
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:    AIW Share On Ovi command handler ( Works only with ShareOnline application version 4.3 and above )
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef GLXCOMMANDHANDLERAIWSHAREONOVI_H_
       
    20 #define GLXCOMMANDHANDLERAIWSHAREONOVI_H_
       
    21 
       
    22 // INTERNAL INCLUDES
       
    23 #include "glxcommandhandleraiwbase.h"
       
    24 
       
    25 // FORWARD REFERENCES
       
    26 class MGlxMediaListProvider;
       
    27 
       
    28 /**
       
    29  *  CGlxCommandHandlerAiwShareOnOvi
       
    30  *
       
    31  *  Share on Ovi AIW command handler
       
    32  *
       
    33  *  @lib glxcommoncommandhandlers.lib
       
    34  */
       
    35 NONSHARABLE_CLASS (CGlxCommandHandlerAiwShareOnOvi)
       
    36     : public CGlxCommandHandlerAiwBase
       
    37     {
       
    38 public:
       
    39     /**
       
    40      * Two-phase constructor
       
    41      * @param aMediaListProvider object that provides the media list
       
    42      * @param aMenuResource The menu resource that the AIW command will be 
       
    43      *          implented in
       
    44      * @return Fully constructed command handler
       
    45      * @warning ConstructL of base class is called. If ConstructL is 
       
    46      *          implemented in this class, then care must be taken to call 
       
    47      *          CGlxCommandHandlerAiwBase::ConstructL
       
    48      */
       
    49     IMPORT_C static CGlxCommandHandlerAiwShareOnOvi* NewL(
       
    50         MGlxMediaListProvider* aMediaListProvider, TInt aMenuResource);
       
    51         
       
    52 protected: // From CGlxMediaListCommandHandler
       
    53     /**
       
    54      * See @ref CGlxMediaListCommandHandler::DoGetRequiredAttributesL
       
    55      */
       
    56     virtual void DoGetRequiredAttributesL(RArray<TMPXAttribute>& aAttributes, TBool aFilterUsingSelection) const;
       
    57 
       
    58 protected: // From CGlxCommandHandlerAiwBase
       
    59     virtual TBool AppendAiwParameterL(const TGlxMedia& aItem, 
       
    60                                      CGlxAiwServiceHandler& aAiwServiceHandler);
       
    61     virtual TInt CommandId() const;
       
    62     virtual TInt AiwCommandId() const ;
       
    63     virtual TInt AiwInterestResource() const ;
       
    64     virtual TInt CommandSpace() const ;
       
    65 
       
    66 private:
       
    67     /**
       
    68      * Constructor
       
    69      */
       
    70     CGlxCommandHandlerAiwShareOnOvi(MGlxMediaListProvider* aMediaListProvider, 
       
    71             TInt aMenuResource);
       
    72     };
       
    73 
       
    74 
       
    75 #endif /*GLXCOMMANDHANDLERAIWSHAREONOVI_H_*/