mpxplugins/viewplugins/views/upnpplaybackview/inc/mpxupnpplaybackviewlayout.h
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  An interface providing skin and layout data for upnp playback view.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CMPXUPNPPLAYBACKVIEWLAYOUT_H
       
    20 #define C_CMPXUPNPPLAYBACKVIEWLAYOUT_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include "mpxcommonplaybackviewlayout.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 *  An interface providing skin and layout data for playback view.
       
    29 *
       
    30 *  @lib mpxplaybackview.dll
       
    31 *  @since S60 v3.0
       
    32 */
       
    33 NONSHARABLE_CLASS( CMPXUPnPPlaybackViewLayout ) : public CMPXCommonPlaybackViewLayout
       
    34     {
       
    35 public:
       
    36 
       
    37     /**
       
    38      * Two-phased constructor.
       
    39      *
       
    40      * @since 3.0
       
    41      * @return Pointer to newly created object.
       
    42      */
       
    43     static CMPXUPnPPlaybackViewLayout* NewL();
       
    44 
       
    45     /**
       
    46      * Two-phased constructor.
       
    47      *
       
    48      * @since 3.0
       
    49      * @return Pointer to newly created object.
       
    50      */
       
    51     static CMPXUPnPPlaybackViewLayout* NewLC();
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     ~CMPXUPnPPlaybackViewLayout();
       
    57 
       
    58     /**
       
    59      * Get layout data for an graphical indicator.
       
    60      *
       
    61      * @since 3.0
       
    62      * @param aParentRect Parent control's rect
       
    63      * @param  aIndicator Enumeration value identifying the indicator
       
    64      * @return Layout data
       
    65      */
       
    66     TRect IndicatorLayout(
       
    67         const TRect& aParentRect,
       
    68         TMPXPbvIndicator aIndicator );
       
    69 
       
    70     /**
       
    71      * Get the bitmap and mask for a given indicator.
       
    72      *
       
    73      * @since 3.0
       
    74      * @param  aIndicator   Enumeration value identifying the indicator
       
    75      * @return CGulIcon     Indicator graphic and mask. Ownership 
       
    76      *                      transferred to caller.
       
    77      */
       
    78     CGulIcon* GetIndicatorIconMaskL(
       
    79         TMPXPbvIndicator aIndicator );
       
    80 
       
    81     /**
       
    82      * Sets whether we should use podcast or normal playback album art icon
       
    83      *
       
    84      * @since 3.1
       
    85      * @param  aPodcastAlbumArt true if we're playing a podcast
       
    86      * @return void
       
    87      */
       
    88         
       
    89     void SetAlbumArtLayout(TBool aPodcastAlbumArt);
       
    90 
       
    91 private:
       
    92 
       
    93     /**
       
    94      * C++ default constructor.
       
    95      */
       
    96     CMPXUPnPPlaybackViewLayout();
       
    97 
       
    98     /**
       
    99      * By default Symbian 2nd phase constructor is private.
       
   100      */
       
   101     void ConstructL();
       
   102     
       
   103 private:    // Data
       
   104 
       
   105     TBool iPodcastAlbumArt;
       
   106     };
       
   107 
       
   108 #endif  // C_CMPXUPNPPLAYBACKVIEWLAYOUT_H
       
   109 
       
   110 // End of file