ncdengine/provider/client/inc/ncdrightsobjectoperationproxy.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     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 "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:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCD_RIGHTS_OBJECT_OPERATION_PROXY_H	
       
    20 #define C_NCD_RIGHTS_OBJECT_OPERATION_PROXY_H
       
    21 
       
    22 #include "ncdoperationimpl.h"
       
    23 #include "ncdbaseoperationproxy.h"
       
    24 #include "ncdrightsobjectoperation.h"
       
    25 
       
    26 
       
    27 class MNcdRightsObjectOperationObserver;
       
    28 
       
    29 class CNcdRightsObjectOperationProxy : 
       
    30     public CNcdOperation< MNcdRightsObjectOperation >
       
    31     {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Constructor.
       
    36      *
       
    37      * @param aSession is the session that is used between
       
    38      *                 the proxy and the server.
       
    39      * @param aNodeManager
       
    40      * @param aHandle is the handle that identifies the serverside
       
    41      *                object that this proxy uses.
       
    42      * @param aRemoveHandler An observer that is called during destruction.
       
    43      * @param aObserver Observer to receive operation progress.
       
    44      */    
       
    45     static CNcdRightsObjectOperationProxy* NewL(
       
    46         MCatalogsClientServer& aSession,
       
    47         CNcdNodeManagerProxy* aNodeManager,
       
    48         TInt aHandle,
       
    49         MNcdOperationProxyRemoveHandler& aRemoveHandler,
       
    50         MNcdRightsObjectOperationObserver& aObserver );
       
    51 
       
    52     /**
       
    53      * Constructor.
       
    54      *
       
    55      * @param aSession is the session that is used between
       
    56      *                 the proxy and the server.
       
    57      * @param aNodeManager
       
    58      * @param aHandle is the handle that identifies the serverside
       
    59      *                object that this proxy uses.
       
    60      * @param aRemoveHandler An observer that is called during destruction.
       
    61      * @param aObserver Observer to receive operation progress.
       
    62      */    
       
    63     static CNcdRightsObjectOperationProxy* NewLC(
       
    64         MCatalogsClientServer& aSession,
       
    65         CNcdNodeManagerProxy* aNodeManager,
       
    66         TInt aHandle,
       
    67         MNcdOperationProxyRemoveHandler& aRemoveHandler,
       
    68         MNcdRightsObjectOperationObserver& aObserver );
       
    69 
       
    70 public: // From MNcdOperation
       
    71 
       
    72     /**
       
    73      * @see MNcdOperation::OperationType()
       
    74      */
       
    75     TNcdInterfaceId OperationType() const;
       
    76 
       
    77 protected: // Constructor and destructor
       
    78 
       
    79     /**
       
    80      * Default constructor protected.
       
    81      */
       
    82     CNcdRightsObjectOperationProxy( MNcdRightsObjectOperationObserver& aObserver );
       
    83     
       
    84     /**
       
    85      * Destructor.
       
    86      */
       
    87     virtual ~CNcdRightsObjectOperationProxy();
       
    88 
       
    89     /**
       
    90      * ConstructL
       
    91      */
       
    92     void ConstructL(
       
    93         MCatalogsClientServer& aSession,
       
    94         CNcdNodeManagerProxy* aNodeManager,
       
    95         TInt aHandle,
       
    96         MNcdOperationProxyRemoveHandler& aRemoveHandler );
       
    97     
       
    98 protected: // From CNcdBaseOperationProxy
       
    99 
       
   100     /**
       
   101      * @see CNcdBaseOperationProxy::ProgressCallback()
       
   102      */
       
   103     void ProgressCallback();
       
   104     
       
   105     
       
   106     /**
       
   107      * @see CNcdBaseOperationProxy::QueryReceivedCallback()
       
   108      */
       
   109     void QueryReceivedCallback( CNcdQuery* aQuery );
       
   110     
       
   111     
       
   112     /**
       
   113      * @see CNcdBaseOperationProxy::CompleteCallback()
       
   114      */
       
   115     void CompleteCallback( TInt aError );
       
   116         
       
   117     
       
   118 private: // data
       
   119 
       
   120     /** Operation observer, for callbacks. */    
       
   121     MNcdRightsObjectOperationObserver& iObserver;
       
   122     
       
   123     };
       
   124 
       
   125 #endif // C_NCD_RIGHTS_OBJECT_OPERATION_PROXY_H