videofeeds/clientapi/inc/CIptvLiveTvClient.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:    IP LiveTv TV Client API header file*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __CIPTV_LIVE_TV_CLIENT_H
       
    22 #define __CIPTV_LIVE_TV_CLIENT_H
       
    23 
       
    24 
       
    25 // INCLUDES
       
    26 #include <e32base.h>
       
    27 #include "RIptvClientSession.h"
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  IP LiveTv TV Client API
       
    35 *
       
    36 *  @lib IptvClientApi.dll
       
    37 *  @since
       
    38 */
       
    39 class CIptvLiveTvClient : public CBase
       
    40     {
       
    41             
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         */
       
    47         static IMPORT_C CIptvLiveTvClient* NewL();
       
    48         
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         IMPORT_C virtual ~CIptvLiveTvClient();
       
    53 
       
    54     public: // New functions
       
    55 		/**
       
    56 		* Issues update EPG command, asynchronous
       
    57 		* @param aStatus request status
       
    58 		*/
       
    59 		IMPORT_C void UpdateEPG( TUint32 aServiceProviderId, TRequestStatus& aStatus );
       
    60 		
       
    61 		/**
       
    62 		* Issues add service id command, asynchronous
       
    63 		* @param aStatus request status
       
    64 		*/
       
    65 		IMPORT_C void AddServiceIdL( TUint32 aServiceId, TRequestStatus& aStatus );
       
    66 
       
    67 		/**	
       
    68 		* Update channel object's order number. Synchronous.
       
    69 		* @param aServiceId Service provider id.
       
    70 		* @param aChannelId Channel id.
       
    71 		* @param aOrder New order number for channel.
       
    72 		* @return KErrNone if update was ok, otherwise system-wide error codes.
       
    73 		*/
       
    74 		IMPORT_C TInt UpdateChannelOrderL( const TUint32 aServiceId, 
       
    75 										   const TInt64 aChannelId,
       
    76 									 	   const TUint32 aOrder );
       
    77 		/**
       
    78 		* Sets used IAP. Synchronous method.
       
    79 		* @param aIap is id of iap to use. 
       
    80 		* @param aStatus request status
       
    81 		*/
       
    82 		IMPORT_C TInt SetIapL( TUint32 aIap );		
       
    83 		
       
    84     private:
       
    85 
       
    86         /**
       
    87         * C++ default constructor.
       
    88         */
       
    89         CIptvLiveTvClient();
       
    90 
       
    91         /**
       
    92         * By default Symbian 2nd phase constructor is private.
       
    93         */
       
    94         void ConstructL();
       
    95 
       
    96 
       
    97     private: // Data
       
    98 
       
    99         /**
       
   100         * iSession, the server session.
       
   101         */
       
   102         RIptvClientSession iSession;
       
   103 
       
   104         /**
       
   105         * iMsg Heap object for IPC messaging.
       
   106         */
       
   107         HBufC8* iMsg;
       
   108 
       
   109         /**
       
   110         * iMsgPtr Passed to RIptvClientSession 
       
   111         *          Points to iMsg heap object.
       
   112         */
       
   113         TPtr8   iMsgPtr;
       
   114     };
       
   115 
       
   116 #endif // __CIPTV_LIVE_TV_CLIENT_H
       
   117 // End of File