videofeeds/clientapi/inc/CIptvMyVideosCopyOrMoveObserver.h
changeset 0 96612d01cf9f
equal deleted inserted replaced
-1:000000000000 0:96612d01cf9f
       
     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 completion of copy or move requests.*
       
    15 */
       
    16 
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CIPTVMYVIDEOSCOPYORMOVEOBSERVER_H
       
    21 #define CIPTVMYVIDEOSCOPYORMOVEOBSERVER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MIptvMyVideosClientObserver;
       
    28 class RIptvClientSession;
       
    29 class CIptvMyVideosGlobalFileId;
       
    30 class CIptvMyVideosGlobalFolderId;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35  * Observer for completion of copy or move requests.
       
    36  *
       
    37  * @lib IptvClientApi.dll
       
    38  */
       
    39 class CIptvMyVideosCopyOrMoveObserver : public CActive
       
    40     {
       
    41     public:
       
    42 
       
    43         /**
       
    44          * Two-phased constructor.
       
    45          *
       
    46          * @param aClientObserver Observer.
       
    47          * @param aSession        Server client session.         
       
    48          */
       
    49         static CIptvMyVideosCopyOrMoveObserver* NewL(MIptvMyVideosClientObserver& aClientObserver, RIptvClientSession& aSession);
       
    50         
       
    51         /**
       
    52          * Destructor.
       
    53          */
       
    54         virtual ~CIptvMyVideosCopyOrMoveObserver();
       
    55 
       
    56         /**
       
    57          * Sends copy/move request to server and sets this object active.
       
    58          * Request is completed when server has handled the copy/move operation.
       
    59          *
       
    60          * @param aCommand        Message to send.
       
    61          * @param aSourceFileId   Source file's global file Id.
       
    62          * @param aTargetFolderId Target folder's global folder Id.
       
    63          */
       
    64         void SetActiveL(TUint16 aCommand, CIptvMyVideosGlobalFileId& aSourceFileId, CIptvMyVideosGlobalFolderId& aTargetFolderId);
       
    65         
       
    66         /**
       
    67          * Sends copy/move request to server and sets this object active.
       
    68          * Request is completed when server has handled the copy/move operation.         
       
    69          *
       
    70          * @param aCommand        Message to send.
       
    71          * @param aSourceFolderId Source folder's global folder Id.
       
    72          * @param aTargetFolderId Target folder's global folder Id.         
       
    73          */
       
    74         void SetActiveL(TUint16 aCommand, CIptvMyVideosGlobalFolderId& aSourceFolderId, CIptvMyVideosGlobalFolderId& aTargetFolderId);
       
    75         
       
    76     public: // From CActive
       
    77         
       
    78         /**
       
    79          * Called when request is completed.
       
    80          */
       
    81         void RunL();
       
    82         
       
    83         /**
       
    84          * Called when request needs to be cancelled.
       
    85          */
       
    86         void DoCancel();
       
    87 
       
    88     protected:
       
    89 
       
    90         /**
       
    91          * Constructor.
       
    92          *
       
    93          * @param aClientObserver Observer.
       
    94          * @param aSession        Server client session.         
       
    95          */
       
    96         CIptvMyVideosCopyOrMoveObserver(MIptvMyVideosClientObserver& aClientObserver, RIptvClientSession& aSession);
       
    97            
       
    98         /**
       
    99          * EPOC constructor.
       
   100          */
       
   101         void ConstructL();
       
   102 
       
   103     protected: // Data.
       
   104 
       
   105         MIptvMyVideosClientObserver& iClientObserver;
       
   106         RIptvClientSession&          iSession;
       
   107         HBufC8*                      iMsg;
       
   108         TPtr8                        iMsgPtr;        
       
   109     };
       
   110 
       
   111 #endif // CIPTVMYVIDEOSCOPYORMOVEOBSERVER_H
       
   112 
       
   113 // End of File