contentstorage/cahandler/app/inc/caapphandler.h
changeset 66 32469d7d46ff
parent 61 8e5041d13c84
child 80 397d00875918
--- a/contentstorage/cahandler/app/inc/caapphandler.h	Fri Apr 16 15:16:09 2010 +0300
+++ b/contentstorage/cahandler/app/inc/caapphandler.h	Mon May 03 12:48:45 2010 +0300
@@ -24,13 +24,14 @@
 class CEikonEnv;
 class CCaInnerEntry;
 class CCaUninstallOperation;
+class CCaUsifUninstallOperation;
 
 /**
  *  Command handler for application entries.
  *
  *  @lib caclient.lib
  */
-NONSHARABLE_CLASS( CCaAppHandler )
+NONSHARABLE_CLASS( CCaAppHandler ): public CBase
     {
 
 public:
@@ -72,18 +73,48 @@
      */
     void LaunchApplicationL( const TUid aUid, const TDesC8 &aParam,
             TInt aViewId );
-    
+
     /**
      * Closes application
      * @param aEntry the entry represeting application to close
      */
     void CloseApplicationL( CCaInnerEntry& aEntry );
 
+    /**
+     * Uninstall application 
+     * @param aEntry the entry represeting application to uninstall
+     */
+    void HandleRemoveL( CCaInnerEntry &aEntry );
+
+    /**
+     * Gets component id 
+     * @param aEntry the entry 
+     * @param aSoftwareType indicates software type
+     * @return component id
+     */
+    TInt GetComponentIdL( const CCaInnerEntry &aEntry,
+            const TDesC& aSoftwareType );
+    
+    /**
+     * Start uninstall operation via usif 
+     * @param aComponentId component id
+     */
+    void StartUsifUninstallL( TInt aComponentId );
+
+    
+    /**
+     * Start uninstall operation via swi 
+     * @param aEntry the entry 
+     */
+    void StartSwiUninstallL(CCaInnerEntry &aEntry );
+
+    
 private:
     // data
 
     CEikonEnv* iEikEnv;
     CCaUninstallOperation* iUninstallOperation;
+    CCaUsifUninstallOperation* iUsifUninstallOperation;
     };
 
 #endif // C_CAAPPHANDLER_H