~ps-jenkins/qtubuntu/latestsnapshot-0.52+13.10.20130912.1-0ubuntu1

« back to all changes in this revision

Viewing changes to tests/Application.qml

  • Committer: Tarmac
  • Author(s): Gerry Boland
  • Date: 2013-09-10 13:12:34 UTC
  • mfrom: (170.2.15 using-new-api)
  • Revision ID: tarmac-20130910131234-bzowv55avwej97i5
Implement ApplicationManager API as defined in unity-api. This requires renaming QML plugin to Unity.Application, removing the ApplicationListModel class and supplying just one model of applications running.

Approved by PS Jenkins bot, Daniel d'Andrada.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
//    }
30
30
//
31
31
// Here is how to start a new process:
32
 
//    ApplicationManager.startProcess("/usr/share/applications/snowshoe.desktop")
 
32
//    ApplicationManager.startProcess("snowshoe")
33
33
//
34
34
// In order to pass additional arguments, a second optional argument can be used:
35
 
//    ApplicationManager.startProcess("/usr/share/applications/snowshoe.desktop",
36
 
//                                    [ "http://www.ubuntu.com" ])
 
35
//    ApplicationManager.startProcess("snowshoe", [ "http://www.ubuntu.com" ])
37
36
//
38
37
// An application can be stopped by using:
39
38
//     ApplicationManager.stopProcess(application)
48
47
//         --desktop_file_hint=/usr/share/applications/goodhope.desktop --stage_hint=main_stage
49
48
 
50
49
import QtQuick 2.0
51
 
import Ubuntu.Application 0.1
 
50
import Unity.Application 0.1
52
51
 
53
52
Rectangle {
54
53
    id: surface