ncdengine/provider/client/inc/ncdcreateaccesspointoperationproxy.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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_NCDCREATEACCESSPOINTOPERATIONPROXY_H	
       
    20 #define C_NCDCREATEACCESSPOINTOPERATIONPROXY_H	
       
    21 
       
    22 #include "ncdoperationimpl.h"
       
    23 #include "ncdbaseoperationproxy.h"
       
    24 #include "ncdcreateaccesspointoperation.h"
       
    25 
       
    26 
       
    27 class MNcdCreateAccessPointOperationObserver;
       
    28 
       
    29 class CNcdCreateAccessPointOperationProxy : 
       
    30     public CNcdOperation< MNcdCreateAccessPointOperation >
       
    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 CNcdCreateAccessPointOperationProxy* NewL(
       
    46         MCatalogsClientServer& aSession,
       
    47         CNcdNodeManagerProxy* aNodeManager,
       
    48         TInt aHandle,
       
    49         MNcdOperationProxyRemoveHandler& aRemoveHandler,
       
    50         MNcdCreateAccessPointOperationObserver& 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 CNcdCreateAccessPointOperationProxy* NewLC(
       
    64         MCatalogsClientServer& aSession,
       
    65         CNcdNodeManagerProxy* aNodeManager,
       
    66         TInt aHandle,
       
    67         MNcdOperationProxyRemoveHandler& aRemoveHandler,
       
    68         MNcdCreateAccessPointOperationObserver& aObserver );
       
    69 
       
    70 public: // From MNcdOperation
       
    71 
       
    72     /**
       
    73      * @see MNcdOperation::OperationType()
       
    74      */
       
    75     TNcdInterfaceId OperationType() const;
       
    76     
       
    77 public: // From MNcdCreateAccessPointOperation
       
    78 
       
    79     /**
       
    80      * @see MNcdOperation::AccessPoint()
       
    81      */
       
    82     TUint32 AccessPoint() const;
       
    83 
       
    84         
       
    85 
       
    86 protected: // Constructor and destructor
       
    87 
       
    88     /**
       
    89      * Default constructor protected.
       
    90      */
       
    91     CNcdCreateAccessPointOperationProxy( MNcdCreateAccessPointOperationObserver& aObserver );
       
    92     
       
    93     /**
       
    94      * Destructor.
       
    95      */
       
    96     virtual ~CNcdCreateAccessPointOperationProxy();
       
    97 
       
    98     /**
       
    99      * ConstructL
       
   100      */
       
   101     void ConstructL(
       
   102         MCatalogsClientServer& aSession,
       
   103         CNcdNodeManagerProxy* aNodeManager,
       
   104         TInt aHandle,
       
   105         MNcdOperationProxyRemoveHandler& aRemoveHandler );
       
   106     
       
   107 protected: // From CNcdBaseOperationProxy
       
   108 
       
   109     /**
       
   110      * @see CNcdBaseOperationProxy::ProgressCallback()
       
   111      */
       
   112     void ProgressCallback();
       
   113     
       
   114     
       
   115     /**
       
   116      * @see CNcdBaseOperationProxy::QueryReceivedCallback()
       
   117      */
       
   118     void QueryReceivedCallback( CNcdQuery* aQuery );
       
   119     
       
   120     
       
   121     /**
       
   122      * @see CNcdBaseOperationProxy::CompleteCallback()
       
   123      */
       
   124     void CompleteCallback( TInt aError );
       
   125     
       
   126     void HandleCompletedMessage(
       
   127         TNcdOperationMessageCompletionId aCompletionId,
       
   128         RReadStream& aReadStream,
       
   129         TInt aDataLength );
       
   130     
       
   131         
       
   132     
       
   133 private: // data
       
   134 
       
   135     /** Operation observer, for callbacks. */    
       
   136     MNcdCreateAccessPointOperationObserver& iObserver;
       
   137     TUint32 iAccessPoint;    
       
   138     };
       
   139 
       
   140 #endif // C_NCDCREATEACCESSPOINTOPERATIONPROXY_H