equal
deleted
inserted
replaced
32 #include "DialogWrapper.h" |
32 #include "DialogWrapper.h" |
33 |
33 |
34 using namespace Swi; |
34 using namespace Swi; |
35 |
35 |
36 const static TInt KWaitTime = 3000000; // 2 secs |
36 const static TInt KWaitTime = 3000000; // 2 secs |
|
37 const TInt KMimeTextLength = 64; |
37 |
38 |
38 // ----------------------------------------------------------------------- |
39 // ----------------------------------------------------------------------- |
39 // Two phased construction |
40 // Two phased construction |
40 // ----------------------------------------------------------------------- |
41 // ----------------------------------------------------------------------- |
41 // |
42 // |
112 User::LeaveIfError( iFs.Connect() ); |
113 User::LeaveIfError( iFs.Connect() ); |
113 User::LeaveIfError( iApaSession.Connect() ); |
114 User::LeaveIfError( iApaSession.Connect() ); |
114 iFs.ShareProtected(); |
115 iFs.ShareProtected(); |
115 iUidArrayIndex = 0; |
116 iUidArrayIndex = 0; |
116 iSilentUninstaller = NULL; |
117 iSilentUninstaller = NULL; |
117 iState = EUninstallerStateIdle; |
118 iState = EUninstallerStateIdle; |
118 // Alloc descriptor for mime type sis/sisx |
119 |
119 iMime = SwiUI::KSisxMimeType().AllocL(); |
120 // Alloc descriptor for mime type sis/sisx |
|
121 iMime = HBufC::NewL( KMimeTextLength ); |
|
122 TPtr iMimePtr = iMime->Des(); |
|
123 iMimePtr.Copy( SwiUI::KSisxMimeType ); |
|
124 |
120 // Note this will create new instance for dialog class and |
125 // Note this will create new instance for dialog class and |
121 // also new dialog watcher AO for uninstaller. |
126 // also new dialog watcher AO for uninstaller. |
122 // Since uninstaller is used rarely this is not big issue. |
127 // Since uninstaller is used rarely this is not big issue. |
123 // In future dialog class could be added to CProgramStatus class |
128 // In future dialog class could be added to CProgramStatus class |
124 // member from where both installer and uninstaller could us it. |
129 // member from where both installer and uninstaller could us it. |