ncdengine/provider/deviceinteraction/inc/ncdsilentinstallactiveobserver.h
branchRCL_3
changeset 26 8b7f4e561641
parent 25 7333d7932ef7
equal deleted inserted replaced
25:7333d7932ef7 26:8b7f4e561641
    21 
    21 
    22 
    22 
    23 #include <e32base.h>
    23 #include <e32base.h>
    24 #include <f32file.h>
    24 #include <f32file.h>
    25 // For silent install
    25 // For silent install
    26 #include <usif/sif/sif.h>
    26 #include <SWInstApi.h> 
    27 
       
    28 
       
    29 
    27 
    30 class MNcdAsyncSilentInstallObserver;
    28 class MNcdAsyncSilentInstallObserver;
    31 
    29 
    32 
    30 
    33 /**
    31 /**
    68 
    66 
    69     /**
    67     /**
    70      * Sets this object active for observing a silent install operation.
    68      * Sets this object active for observing a silent install operation.
    71      * 
    69      * 
    72      * @param aFileName Installation file name.
    70      * @param aFileName Installation file name.
    73      * @param aSilentInstallOptions Silent installation options.
    71      * @param aSilentInstallOptionsPckg Silent installation options.
    74      */
    72      */
    75     void StartToObserveL( const TDesC& aFileName,
    73     void StartToObserveL( const TDesC& aFileName,
    76                           const Usif::COpaqueNamedParams* aSilentInstallOptions );
    74                           const SwiUI::TInstallOptionsPckg& aSilentInstallOptionsPckg );
    77 
    75 
    78 
    76 
    79     /**
    77     /**
    80      * Sets this object active for observing a silent install operation.
    78      * Sets this object active for observing a silent install operation.
    81      * 
    79      * 
    82      * @param aFile Installation file handle.
    80      * @param aFile Installation file handle.
    83      * @param aSilentInstallOptions Silent installation options.
    81      * @param aSilentInstallOptionsPckg Silent installation options.
    84      */
    82      */
    85     void StartToObserveL( RFile& aFile,
    83     void StartToObserveL( RFile& aFile,
    86                           const Usif::COpaqueNamedParams* aSilentInstallOptions );
    84                           const SwiUI::TInstallOptionsPckg& aSilentInstallOptionsPckg );
    87 
    85 
    88 
    86 
    89     /**
    87     /**
    90      * Cancels the asynchronous silent install operation.
    88      * Cancels the asynchronous silent install operation.
    91      * This will also close the silent launcher.
    89      * This will also close the silent launcher.
   147     /**
   145     /**
   148      * @return SwiUI::RSWInstSilentLauncher& The launcher
   146      * @return SwiUI::RSWInstSilentLauncher& The launcher
   149      * that handles the installation operations that this
   147      * that handles the installation operations that this
   150      * class object observes. Ownerhsip is not transferred.
   148      * class object observes. Ownerhsip is not transferred.
   151      */
   149      */
   152     Usif::RSoftwareInstall& SilentLauncher();
   150     SwiUI::RSWInstSilentLauncher& SilentLauncher();
       
   151 
   153 
   152 
   154     /**
   153     /**
   155      * Converts the given error code if necessary.
   154      * Converts the given error code if necessary.
   156      * This can be used to simplify error codes for responses.
   155      * This can be used to simplify error codes for responses.
   157      *
   156      *
   175     // by calling its callback function.
   174     // by calling its callback function.
   176     MNcdAsyncSilentInstallObserver& iObserver;
   175     MNcdAsyncSilentInstallObserver& iObserver;
   177 
   176 
   178     // The silent launcher handles the install operations that
   177     // The silent launcher handles the install operations that
   179     // this class object observes. 
   178     // this class object observes. 
   180     // SwiUI::RSWInstSilentLauncher iSilentLauncher;
   179     SwiUI::RSWInstSilentLauncher iSilentLauncher;
   181     Usif::RSoftwareInstall iInstaller;
       
   182     Usif::COpaqueNamedParams* iResults;
       
   183     Usif::COpaqueNamedParams* iArguments;
       
   184     
   180     
       
   181     SwiUI::TServerRequest iCancelCode;
       
   182 
   185 };
   183 };
   186 
   184 
   187 #endif // NCD_SILENT_INSTALL_ACTIVE_OBSERVER_H
   185 #endif // NCD_SILENT_INSTALL_ACTIVE_OBSERVER_H