videofeeds/clientapi/inc/CIptvVodContentUpdateObserver.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     1 /*
       
     2 * Copyright (c) 2004-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:    Observer VoD content downloading*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIPTVVODCONTENTUPDATEOBSERVER_H
       
    21 #define CIPTVVODCONTENTUPDATEOBSERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MIptvVodContentClientObserver;
       
    28 class RIptvClientSession;
       
    29 
       
    30 /**
       
    31 *  VoD ECG content API
       
    32 *
       
    33 *  @lib IptvClientApi.lib
       
    34 *  @since Engine 1.0
       
    35 */
       
    36 
       
    37 // CLASS DECLARATION
       
    38 class CIptvVodContentUpdateObserver : public CActive
       
    39     {
       
    40     public:
       
    41         /**
       
    42          * Two-phased constructor.
       
    43          * @param 
       
    44          */
       
    45         IMPORT_C static CIptvVodContentUpdateObserver* NewL(MIptvVodContentClientObserver& aObserver, RIptvClientSession& aSession, TIptvServiceId aServiceId);
       
    46 
       
    47         /**
       
    48          * Destructor.
       
    49          */
       
    50         virtual ~CIptvVodContentUpdateObserver();
       
    51 
       
    52     public:
       
    53         /**
       
    54          * Handles an active object’s request completion event.
       
    55          */
       
    56         void RunL();
       
    57 
       
    58         /**
       
    59          * Implements cancellation of an outstanding request.
       
    60          */
       
    61         void DoCancel();
       
    62                                 
       
    63     private: // New functions           
       
    64         /**
       
    65         * C++ default constructor.
       
    66         */
       
    67         CIptvVodContentUpdateObserver(MIptvVodContentClientObserver& aObserver, RIptvClientSession& aSession, TIptvServiceId aServiceId);
       
    68 
       
    69         /**
       
    70         * By default Symbian 2nd phase constructor is private.
       
    71         * @param 
       
    72         */
       
    73         void ConstructL();
       
    74 
       
    75     private:
       
    76         /**
       
    77         * Send observer request to server.
       
    78         */
       
    79         void SendObserverRequestL();
       
    80                   
       
    81     private: // Data members
       
    82         /**
       
    83         * Reference to MIptvVodContentClientObserver.
       
    84         */
       
    85         MIptvVodContentClientObserver& iObserver;
       
    86 
       
    87         /**
       
    88         * Reference to RIptvClientSession.
       
    89         */
       
    90         RIptvClientSession& iSession;
       
    91         
       
    92         /**
       
    93         * iObserverMsg Heap object to restore memory for IPC messaging.
       
    94         */
       
    95         HBufC8* iObserverMsg;
       
    96 
       
    97         /**
       
    98         * iObserverMsgPtr Passed to RIptvClientSession object to store the sent and received data.
       
    99         * Points to iData heap object.
       
   100         */
       
   101         TPtr8 iObserverMsgPtr;
       
   102 
       
   103         /**
       
   104         * Service id.
       
   105         */
       
   106         TIptvServiceId iServiceId;
       
   107     };
       
   108 
       
   109 #endif  // CIPTVVODCONTENTUPDATEOBSERVER_H