videofeeds/clientapi/inc/CIptvMyVideosTotalVideoLengthObserver.h
branchRCL_3
changeset 23 befca0ec475f
parent 0 96612d01cf9f
equal deleted inserted replaced
22:839377eedc2b 23:befca0ec475f
       
     1 /*
       
     2 * Copyright (c) 2006 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 for completed total video length requests.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIPTVMYVIDEOSTOTALVIDEOLENGTHOBSERVER_H
       
    21 #define CIPTVMYVIDEOSTOTALVIDEOLENGTHOBSERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class MIptvMyVideosClientObserver;
       
    30 class RIptvClientSession;
       
    31 
       
    32 /**
       
    33  * Observer for completed total video length requests.
       
    34  *
       
    35  * @lib IptvClientApi.dll
       
    36  */
       
    37 class CIptvMyVideosTotalVideoLengthObserver : public CActive
       
    38     {
       
    39     public:
       
    40 
       
    41         /**
       
    42          * Two-phased constructor.
       
    43          *
       
    44          * @param aClientObserver Observer.
       
    45          * @param aSession        Server client session.         
       
    46          */
       
    47         static CIptvMyVideosTotalVideoLengthObserver* NewL(MIptvMyVideosClientObserver& aClientObserver, RIptvClientSession& aSession);
       
    48 
       
    49         /**
       
    50          * Destructor.
       
    51          */ 
       
    52         ~CIptvMyVideosTotalVideoLengthObserver();
       
    53         
       
    54         /**
       
    55          * Sets this object active. At the same time the total video length request
       
    56          * is sent so request will be completed when total video length is counted.
       
    57          */
       
    58         void SetActiveL();
       
    59         
       
    60     public: // From CActive
       
    61         
       
    62         /**
       
    63          * Called when request completes.
       
    64          */        
       
    65         void RunL();
       
    66         
       
    67         /**
       
    68          * Called when request needs to be cancelled.
       
    69          */        
       
    70         void DoCancel();
       
    71         
       
    72     protected:
       
    73 
       
    74         /**
       
    75          * Constructor.
       
    76          *
       
    77          * @param aClientObserver Observer.
       
    78          * @param aSession        Server client session.         
       
    79          */
       
    80         CIptvMyVideosTotalVideoLengthObserver(MIptvMyVideosClientObserver& aClientObserver, RIptvClientSession& aSession);
       
    81         
       
    82         /**
       
    83          * EPOC constructor.
       
    84          */
       
    85         void ConstructL();
       
    86         
       
    87     protected: // Data
       
    88         
       
    89         MIptvMyVideosClientObserver& iClientObserver;
       
    90         RIptvClientSession&          iSession;
       
    91         HBufC8*                      iMsg;
       
    92         TPtr8                        iMsgPtr;        
       
    93     };
       
    94 
       
    95 #endif // CIPTVMYVIDEOSTOTALVIDEOLENGTHOBSERVER_H
       
    96 
       
    97 // End of File