contentstorage/cahandler/app/inc/caapphandler.h
changeset 66 32469d7d46ff
parent 61 8e5041d13c84
child 80 397d00875918
equal deleted inserted replaced
61:8e5041d13c84 66:32469d7d46ff
    22 
    22 
    23 // forward declarations
    23 // forward declarations
    24 class CEikonEnv;
    24 class CEikonEnv;
    25 class CCaInnerEntry;
    25 class CCaInnerEntry;
    26 class CCaUninstallOperation;
    26 class CCaUninstallOperation;
       
    27 class CCaUsifUninstallOperation;
    27 
    28 
    28 /**
    29 /**
    29  *  Command handler for application entries.
    30  *  Command handler for application entries.
    30  *
    31  *
    31  *  @lib caclient.lib
    32  *  @lib caclient.lib
    32  */
    33  */
    33 NONSHARABLE_CLASS( CCaAppHandler )
    34 NONSHARABLE_CLASS( CCaAppHandler ): public CBase
    34     {
    35     {
    35 
    36 
    36 public:
    37 public:
    37     /**
    38     /**
    38     * Allocates memory for and initializes CCaAppHandler object
    39     * Allocates memory for and initializes CCaAppHandler object
    70      * @param aParam command parameters
    71      * @param aParam command parameters
    71      * @param aViewId id of the view the application is to start in
    72      * @param aViewId id of the view the application is to start in
    72      */
    73      */
    73     void LaunchApplicationL( const TUid aUid, const TDesC8 &aParam,
    74     void LaunchApplicationL( const TUid aUid, const TDesC8 &aParam,
    74             TInt aViewId );
    75             TInt aViewId );
    75     
    76 
    76     /**
    77     /**
    77      * Closes application
    78      * Closes application
    78      * @param aEntry the entry represeting application to close
    79      * @param aEntry the entry represeting application to close
    79      */
    80      */
    80     void CloseApplicationL( CCaInnerEntry& aEntry );
    81     void CloseApplicationL( CCaInnerEntry& aEntry );
    81 
    82 
       
    83     /**
       
    84      * Uninstall application 
       
    85      * @param aEntry the entry represeting application to uninstall
       
    86      */
       
    87     void HandleRemoveL( CCaInnerEntry &aEntry );
       
    88 
       
    89     /**
       
    90      * Gets component id 
       
    91      * @param aEntry the entry 
       
    92      * @param aSoftwareType indicates software type
       
    93      * @return component id
       
    94      */
       
    95     TInt GetComponentIdL( const CCaInnerEntry &aEntry,
       
    96             const TDesC& aSoftwareType );
       
    97     
       
    98     /**
       
    99      * Start uninstall operation via usif 
       
   100      * @param aComponentId component id
       
   101      */
       
   102     void StartUsifUninstallL( TInt aComponentId );
       
   103 
       
   104     
       
   105     /**
       
   106      * Start uninstall operation via swi 
       
   107      * @param aEntry the entry 
       
   108      */
       
   109     void StartSwiUninstallL(CCaInnerEntry &aEntry );
       
   110 
       
   111     
    82 private:
   112 private:
    83     // data
   113     // data
    84 
   114 
    85     CEikonEnv* iEikEnv;
   115     CEikonEnv* iEikEnv;
    86     CCaUninstallOperation* iUninstallOperation;
   116     CCaUninstallOperation* iUninstallOperation;
       
   117     CCaUsifUninstallOperation* iUsifUninstallOperation;
    87     };
   118     };
    88 
   119 
    89 #endif // C_CAAPPHANDLER_H
   120 #endif // C_CAAPPHANDLER_H