videocollection/mpxmyvideoscollection/tsrc/mpxmvcolltest/inc/VCXMyVideosTestServiceEmu.h
branchRCL_3
changeset 57 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
56:839377eedc2b 57:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2002 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:   Class to emulate IPTV services and ECG content.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 #ifndef VCXMYVIDEOSTESTSERVICEEMU_H
       
    20 #define VCXMYVIDEOSTESTSERVICEEMU_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 _LIT( KVcxTestServiceName1, "OOPS" ); // http://193.65.182.78/oops.xml
       
    28 _LIT( KVcxTestServiceName2, "NokiaVideos" ); // http://193.65.182.78/nokia_vod.xml
       
    29 _LIT( KVcxTestServiceName3, "Enginetestingfeed" ); // http://193.65.182.78/testingfeed_iptvengine.xml
       
    30 _LIT( KVcxTestServiceName4, "SmallVideos" ); // http://193.65.182.78/misc/smallvideos/smallvideos.xml
       
    31 _LIT( KVcxTestServiceName5, "Miscvideos" ); // http://193.65.182.78/miscvideos.xml
       
    32 
       
    33 // MACROS
       
    34 //#define ?macro ?macro_def
       
    35 
       
    36 // FORWARD DECLARATIONS
       
    37 
       
    38 // DATA TYPES
       
    39 //enum ?declaration
       
    40 //typedef ?declaration
       
    41 //extern ?data_type;
       
    42 
       
    43 // CLASS DECLARATION
       
    44 
       
    45 class CVCXMyVideosTestContent : public CBase
       
    46     {
       
    47     public:  // Constructors and destructor
       
    48         /**
       
    49         * Two-phased constructor.
       
    50         */
       
    51         static CVCXMyVideosTestContent* NewL( TInt aServiceId, TInt aContentId, const TPtrC& aUrl, const TPtrC& aTitle );
       
    52 
       
    53         /**
       
    54         * Destructor.
       
    55         */
       
    56         virtual ~CVCXMyVideosTestContent();
       
    57 
       
    58     private: // New functions
       
    59 
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CVCXMyVideosTestContent();
       
    67 
       
    68         /**
       
    69         * By default Symbian 2nd phase constructor is private.
       
    70         */
       
    71         void ConstructL( TInt aServiceId, TInt aContentId, const TPtrC& aUrl, const TPtrC& aTitle );
       
    72 
       
    73     public:    // Data
       
    74 
       
    75         HBufC* iUrl;
       
    76         HBufC* iTitle;
       
    77         TInt iServiceId;
       
    78         TInt iContentId;
       
    79     };
       
    80 
       
    81 /**
       
    82 *  CVCXMyVideosTestServiceEmu test class
       
    83 *  ?other_description_lines
       
    84 *
       
    85 *  @lib ?library
       
    86 *  @since ?Series60_version
       
    87 */
       
    88 class CVCXMyVideosTestServiceEmu : public CBase
       
    89     {
       
    90     public:  // Constructors and destructor
       
    91 
       
    92         /**
       
    93         * Two-phased constructor.
       
    94         */
       
    95         static CVCXMyVideosTestServiceEmu* NewL();
       
    96 
       
    97         /**
       
    98         * Destructor.
       
    99         */
       
   100         virtual ~CVCXMyVideosTestServiceEmu();
       
   101 
       
   102     public: // New functions
       
   103 
       
   104         TInt GetServiceIdL( const TDesC& aServiceName, TInt& aServiceId );
       
   105 
       
   106         const TPtrC GetContentUrlL( TInt aServiceId, TInt aContentId );
       
   107 
       
   108         const TPtrC GetContentTitleL( TInt aServiceId, TInt aContentId );
       
   109 
       
   110     public: // Functions from base classes
       
   111 
       
   112     private: // New functions
       
   113 
       
   114         void AddServiceContentL( const TDesC& aServiceName, TInt aContentId, const TDesC& aUrl, const TDesC& aTitle );
       
   115 
       
   116     private:
       
   117 
       
   118         /**
       
   119         * C++ default constructor.
       
   120         */
       
   121         CVCXMyVideosTestServiceEmu( );
       
   122 
       
   123         /**
       
   124         * By default Symbian 2nd phase constructor is private.
       
   125         */
       
   126         void ConstructL( );
       
   127 
       
   128     private:    // Data
       
   129 
       
   130         RPointerArray<CVCXMyVideosTestContent> iContents;
       
   131     };
       
   132 
       
   133 #endif      // VCXMYVIDEOSTESTSERVICEEMU_H
       
   134 
       
   135 // End of File