ncdengine/provider/client/inc/ncdsilentinstalloperationproxy.h
changeset 4 32704c33136d
child 44 329d304c1aa1
equal deleted inserted replaced
-1:000000000000 4:32704c33136d
       
     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:   CNcdSilentInstallOperationProxy declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_NCDSILENTINSTALLOPERATIONPROXY_H	
       
    20 #define C_NCDSILENTINSTALLOPERATIONPROXY_H	
       
    21 
       
    22 #include <e32cmn.h>
       
    23 
       
    24 // For silent install options and options package
       
    25 #include <SWInstDefs.h>
       
    26 
       
    27 #include "ncdinstalloperationproxy.h"
       
    28 
       
    29 
       
    30 
       
    31 class CNcdSilentInstallOperationProxy : public CNcdInstallOperationProxy
       
    32     {
       
    33 public:
       
    34 
       
    35     /**
       
    36      * Constructor
       
    37      *
       
    38      * @param aSession is the session that is used between
       
    39      *                 the proxy and the server.
       
    40      * @param aDownloadType Download type
       
    41      * @param aHandle is the handle that identifies the serverside
       
    42      *                object that this proxy uses.
       
    43      * @param aRemoveHandler An observer that is called during destruction.
       
    44      * @param aNode The node this operation was started from.
       
    45      * @param aInstallOptions These options are used for the silent install.
       
    46      */    
       
    47     static CNcdSilentInstallOperationProxy* NewLC( MCatalogsClientServer& aSession,                        
       
    48                         TInt aHandle,
       
    49                         MNcdOperationProxyRemoveHandler* aRemoveHandler,
       
    50                         CNcdNodeProxy* aNode,
       
    51                         CNcdNodeManagerProxy* aNodeManager,
       
    52                         MNcdInstallOperationObserver* aObserver,
       
    53                         MNcdInstallationService& aInstallationService,
       
    54                         const SwiUI::TInstallOptions& aInstallOptions );
       
    55 
       
    56 
       
    57 protected: // CActive
       
    58 
       
    59     /**
       
    60      * @see CActive::DoCancel
       
    61      */    
       
    62     void DoCancel();
       
    63 
       
    64     
       
    65 protected:
       
    66 
       
    67     /**
       
    68      * Constructor
       
    69      *
       
    70      * @see NewLC
       
    71      */
       
    72     CNcdSilentInstallOperationProxy( MNcdInstallationService& aInstallationService,
       
    73                                      const SwiUI::TInstallOptions& aInstallOptions );
       
    74     
       
    75     virtual ~CNcdSilentInstallOperationProxy();
       
    76 
       
    77 
       
    78     /**
       
    79      * ConstructL
       
    80      *
       
    81      * @param aSession is the session that is used between
       
    82      *                 the proxy and the server.
       
    83      * @param aHandle is the handle that identifies the serverside
       
    84      *                object that this proxy uses.
       
    85      * @param aRemoveHandler An observer that is called during destruction.
       
    86      * @param aNode The node this operation was started from.
       
    87      */
       
    88     void ConstructL( MCatalogsClientServer& aSession,
       
    89                     TInt aHandle,
       
    90                     MNcdOperationProxyRemoveHandler* aRemoveHandler,
       
    91                     CNcdNodeProxy* aNode,
       
    92                     CNcdNodeManagerProxy* aNodeManager,
       
    93                     MNcdInstallOperationObserver* aObserver );
       
    94     
       
    95 
       
    96     /**
       
    97      * @see CNcdInstallOperationProxy::UseInstallServiceL
       
    98      */
       
    99     virtual void UseInstallServiceL( const CNcdFileInfo& aFile );
       
   100     
       
   101     /**
       
   102      * @return const SwiUI::TInstallOptionsPckg& Contains the install options 
       
   103      * for silent install in a data buffer.
       
   104      */
       
   105     const SwiUI::TInstallOptionsPckg& SilentInstallOptionsPackage() const;
       
   106     
       
   107     
       
   108 private: // new methods
       
   109 
       
   110     // Prevent these if not implemented
       
   111     CNcdSilentInstallOperationProxy( const CNcdSilentInstallOperationProxy& aObject );
       
   112     CNcdSilentInstallOperationProxy& operator =( const CNcdSilentInstallOperationProxy& aObject );
       
   113     
       
   114 
       
   115 private: // data
       
   116 
       
   117     // This will contain the install options for silent install in a data buffer.
       
   118     SwiUI::TInstallOptionsPckg iInstallOptionsPackage;
       
   119 
       
   120     };
       
   121 
       
   122 #endif // C_NCDSILENTINSTALLOPERATIONPROXY_H