videofeeds/vcnsuiengine/inc/vcxnscontentaccess.h
branchRCL_3
changeset 57 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
56:839377eedc2b 57:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2008 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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_VCXNSVODCONTENTACCESS_H
       
    22 #define C_VCXNSVODCONTENTACCESS_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 #include <e32base.h>
       
    27 #include "vcxnscontent.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMPXMedia;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * CVcxNsContentAccess
       
    36  * 
       
    37  * @lib vcxnsuiengine.lib
       
    38  */
       
    39 class CVcxNsContentAccess: public CBase
       
    40     {
       
    41     
       
    42 public:
       
    43     
       
    44     virtual ~CVcxNsContentAccess();
       
    45     
       
    46     static CVcxNsContentAccess* NewL();
       
    47     
       
    48     /**
       
    49      * SetUrlL
       
    50      * @param aUrl Url
       
    51      */
       
    52     void SetUrlL( const TDesC& aUrl );
       
    53     
       
    54     /**
       
    55      * GetUrl
       
    56      * @return Url
       
    57      */
       
    58     const TDesC& GetUrl();
       
    59 
       
    60     /**
       
    61      * Set mpx media
       
    62      * @param aMpxMedia Mpx media object
       
    63      */
       
    64     void SetMpxMediaL( CMPXMedia* aMpxMedia );
       
    65     
       
    66     /**
       
    67      * Get mpx media
       
    68      * @return  Mpx media object
       
    69      */
       
    70     CMPXMedia* GetMpxMedia();
       
    71 
       
    72     /**
       
    73      * Content access' type
       
    74      */
       
    75     CVcxNsContent::TVcxNsContentAccessType iType;
       
    76 
       
    77     /**        
       
    78      * Mpx media id. needed just before the actual mpx item is loaded.
       
    79      * Used only with local videos.
       
    80      */
       
    81     TUint32 iMpxId;
       
    82 
       
    83     /**        
       
    84      * Index of the content access data in server side.
       
    85      */
       
    86     TUint32 iIndex;
       
    87     
       
    88     /**        
       
    89      * Last play position, used only with stream,
       
    90      * MPX collection stores the local video pos.
       
    91      */
       
    92     TUint32 iLastPosition;
       
    93 
       
    94 private:
       
    95 
       
    96     CVcxNsContentAccess();
       
    97     
       
    98     /**
       
    99      * Url
       
   100      */
       
   101     HBufC* iUrl;
       
   102     
       
   103     /**        
       
   104      * Mpx media data.
       
   105      * Used only with local videos.
       
   106      */
       
   107     CMPXMedia* iMpxMedia;
       
   108 
       
   109     };
       
   110 
       
   111 #endif // C_VCXNSVODCONTENTACCESS_H