videoplayer_plat/videoplayer_startup_api/inc/videoplayercustommessage.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2006-2007 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:   Defines custom message for videoplayer application.
       
    15 *
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef VIDEOPLAYERCUSTOMMESSAGE_H
       
    22 #define VIDEOPLAYERCUSTOMMESSAGE_H
       
    23 
       
    24 // INCLUDES
       
    25 
       
    26 #include <e32base.h>
       
    27 
       
    28 // CONSTANTS
       
    29 
       
    30 /**
       
    31  * Minimum length of this object in bytes, can be used to check length of 
       
    32  * parameter string that is passed to applications and should be this object.
       
    33  */
       
    34 const TInt KVideoPlayerCustomMessageMinLength = 20;
       
    35 
       
    36 /**
       
    37  * Max length of name.
       
    38  */
       
    39 const TInt KVideoPlayerMsgMaxName = 255;   
       
    40 
       
    41 /**
       
    42  * Max length of path.
       
    43  */
       
    44 const TInt KVideoPlayerMaxPath( 2048 );
       
    45 
       
    46 // CLASS DECLARATION
       
    47 
       
    48 /**
       
    49  * Data class for VideoPlayer custom message.
       
    50  */
       
    51 class TVideoPlayerCustomMessage
       
    52     {
       
    53     public: // Data types.
       
    54 
       
    55         /**        
       
    56          * Video name
       
    57          */
       
    58         TBuf<KVideoPlayerMsgMaxName>    iName;
       
    59            
       
    60         /** 
       
    61          * Path to the thumbnail or icon for the video 
       
    62          */
       
    63         TBuf<KMaxPath>                  iIcon;
       
    64   
       
    65         /** 
       
    66          * Where the video content is located. URL or filename ( including path ) 
       
    67          */
       
    68         TBuf<KVideoPlayerMaxPath>       iContent;
       
    69         
       
    70     };
       
    71 
       
    72 #endif // VIDEOPLAYERCUSTOMMESSAGE_H