~unity-team/unity-api/fwdport-mirsurfaceitem

« back to all changes in this revision

Viewing changes to test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp

  • Committer: CI Train Bot
  • Author(s): Daniel d'Andrada
  • Date: 2015-08-04 15:26:07 UTC
  • mfrom: (174.2.2 app-state-handling)
  • Revision ID: ci-train-bot@canonical.com-20150804152607-3pb0fsirhd8wa4k3
Let users of the API suspend & resume individual apps at will

API Changes:
- Removed ApplicationManagerInterface.forceDashActive
- Removed ApplicationManagerInterface.suspended
- Added ApplicationInfoInterface.requestedState
Approved by: PS Jenkins bot, Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
    return QColor(0,0,0,0);
127
127
}
128
128
 
 
129
ApplicationInfoInterface::RequestedState MockApplicationInfo::requestedState() const
 
130
{
 
131
    return RequestedRunning;
 
132
}
 
133
 
 
134
void MockApplicationInfo::setRequestedState(RequestedState)
 
135
{
 
136
}
 
137
 
129
138
Qt::ScreenOrientations MockApplicationInfo::supportedOrientations() const
130
139
{
131
140
    return Qt::PortraitOrientation | Qt::LandscapeOrientation;