blob: 3c6dcfdeb6fbbeb103d7faac553178178a7ca7d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
function Controller()
{
installer.autoRejectMessageBoxes
this.componentSelectionCounter = 0
}
Controller.prototype.UpdaterSelectedCallback = function()
{
tabController.setCurrentTab( TabController.PACKAGE_MANAGER )
}
Controller.prototype.ComponentSelectionPageCallback = function()
{
if ( this.componentSelectionCounter == 0 ) {
print( "first time, uninstall" )
var page = gui.pageWidgetByObjectName( "ComponentSelectionPage" )
page.deselectComponent( "com.nokia.sdk.doc.qtcreator" )
gui.clickButton( buttons.NextButton, 3000 )
this.componentSelectionCounter += 1
} else {
print( "second time, click cancel" )
gui.clickButton( buttons.CancelButton )
}
}
Controller.prototype.ReadyForInstallationPageCallback = function()
{
gui.clickButton( buttons.NextButton )
}
Controller.prototype.FinishedPageCallback = function()
{
gui.clickButton( buttons.CommitButton )
}
|