photosgallery/viewframework/commandhandlers/commandhandlerupnp/inc/glxcommandhandlershowviaupnp.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:    Upnp CommandHandler
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_GLXCOMMANDHANDLERSHOWVIAUPNP_H__
       
    22 #define C_GLXCOMMANDHANDLERSHOWVIAUPNP_H__
       
    23 
       
    24 
       
    25 //Includes
       
    26 #include <e32base.h>
       
    27 #include <glxmedialistcommandhandler.h>
       
    28 
       
    29 class CGlxUpnpRenderer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32   /**
       
    33    *  CommandHandler which handles the commands for Show/Stop of the Image/Video
       
    34    *
       
    35    * @lib glxupnpcommandhandler.lib
       
    36    * @internal reviewed 1/02/2007 by Kimmo Hoikka
       
    37    */   
       
    38 NONSHARABLE_CLASS( CGlxCommandHandlerShowViaUpnp ) : public CGlxMediaListCommandHandler
       
    39     {    
       
    40 public:
       
    41 
       
    42     //Constructors and Destructor    
       
    43     /**
       
    44     * NewL - Two-phase construction
       
    45     * @param aMediaListProvider object that provides the media list.
       
    46     * @param aUseHomeNetworkCascadeMenu enable the home network sub menu
       
    47     */
       
    48     IMPORT_C static CGlxCommandHandlerShowViaUpnp* 
       
    49       NewL(MGlxMediaListProvider* aMediaListProvider, TBool aUseHomeNetworkCascadeMenu);	
       
    50     /**
       
    51     * Destructor
       
    52     */
       
    53     IMPORT_C ~CGlxCommandHandlerShowViaUpnp();   
       
    54     
       
    55 public: //From CGlxMediaListCommandHandler
       
    56     
       
    57     /**
       
    58      * See @ref CGlxMediaListCommandHandler::DoExecuteL
       
    59      */
       
    60     TBool DoExecuteL(TInt aCommandId, MGlxMediaList& aList);
       
    61 
       
    62     /**
       
    63      * See @ref CGlxMediaListCommandHandler::DoIsDisabled
       
    64      */
       
    65     TBool DoIsDisabled(TInt aCommandId, MGlxMediaList& aList) const;	
       
    66     
       
    67 private:
       
    68     /**
       
    69     * First Phase Constructor
       
    70     * @param aMediaListProvider object that provides the media list.
       
    71     * @param aUseHomeNetworkCascadeMenu enable the home network sub menu
       
    72     */
       
    73     CGlxCommandHandlerShowViaUpnp(MGlxMediaListProvider* aMediaListProvider, 
       
    74     		                               TBool aUseHomeNetworkCascadeMenu);
       
    75     
       
    76     /**
       
    77     * Second-phase constructor
       
    78     */
       
    79     void ConstructL();
       
    80 
       
    81     /**
       
    82     * Add Command Handlers
       
    83     * @param aCommandId    
       
    84     */
       
    85      void AddUpnpCommandL();
       
    86     
       
    87 private:
       
    88     /**
       
    89      * If gallery is in the viewing state, as opposed to the
       
    90      * browsing state iFullScreen will be set to ETrue
       
    91      */
       
    92     TBool iFullScreen;
       
    93 
       
    94     /**
       
    95      * Set on construction, If ETrue then
       
    96      * the home network cascade menu (sub menu)
       
    97      * will be enabled.
       
    98      */
       
    99     TBool iUseHomeNetworkCascadeMenu;
       
   100     };
       
   101 
       
   102 #endif