mpxplugins/viewplugins/views/upnpplaybackdialog/inc/mpxupnpplaybackdialoglayout.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 dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CMPXUPNPPLAYBACKDIALOGLAYOUT_H
       
    20 #define C_CMPXUPNPPLAYBACKDIALOGLAYOUT_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 mpxupnpplaybackdialog.dll
       
    31 *  @since S60 v3.0
       
    32 */
       
    33 NONSHARABLE_CLASS( CMPXUPnPPlaybackDialogLayout ) : 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 CMPXUPnPPlaybackDialogLayout* NewL();
       
    44 
       
    45     /**
       
    46      * Two-phased constructor.
       
    47      *
       
    48      * @since 3.0
       
    49      * @return Pointer to newly created object.
       
    50      */
       
    51     static CMPXUPnPPlaybackDialogLayout* NewLC();
       
    52 
       
    53     /**
       
    54      * Destructor.
       
    55      */
       
    56     ~CMPXUPnPPlaybackDialogLayout();
       
    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 private:
       
    82 
       
    83     /**
       
    84      * C++ default constructor.
       
    85      */
       
    86     CMPXUPnPPlaybackDialogLayout();
       
    87 
       
    88     /**
       
    89      * By default Symbian 2nd phase constructor is private.
       
    90      */
       
    91     void ConstructL();
       
    92     };
       
    93 
       
    94 #endif  // C_CMPXUPNPPLAYBACKDIALOGLAYOUT_H
       
    95 
       
    96 // End of file