~hikiko/mir/mir.unity8-desktop-session

« back to all changes in this revision

Viewing changes to include/server/mir/shell/session.h

  • Committer: Stephen M. Webb
  • Date: 2014-02-25 20:15:07 UTC
  • mfrom: (61.1.1 trusty-proposed)
  • Revision ID: stephen.webb@canonical.com-20140225201507-cicfzmdznvr059b2
merged from Ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright © 2012 Canonical Ltd.
 
2
 * Copyright © 2012-2014 Canonical Ltd.
3
3
 *
4
4
 * This program is free software: you can redistribute it and/or modify it
5
5
 * under the terms of the GNU General Public License version 3,
7
7
 *
8
8
 * This program is distributed in the hope that it will be useful,
9
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the
11
11
 * GNU General Public License for more details.
12
12
 *
13
13
 * You should have received a copy of the GNU General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
14
 * along with this program.   If not, see <http://www.gnu.org/licenses/>.
15
15
 *
16
16
 * Authored By: Robert Carr <racarr@canonical.com>
17
17
 */
22
22
#include "mir/frontend/session.h"
23
23
#include "mir/shell/snapshot.h"
24
24
 
 
25
#include <sys/types.h>
 
26
 
25
27
namespace mir
26
28
{
27
 
 
28
29
namespace shell
29
30
{
30
31
class Surface;
34
35
public:
35
36
    virtual std::string name() const = 0;
36
37
    virtual void force_requests_to_complete() = 0;
 
38
    virtual pid_t process_id() const = 0;
37
39
 
38
40
    virtual void take_snapshot(SnapshotCallback const& snapshot_taken) = 0;
39
41
    virtual std::shared_ptr<Surface> default_surface() const = 0;
40
42
    virtual void set_lifecycle_state(MirLifecycleState state) = 0;
41
43
};
42
 
 
43
44
}
44
45
}
45
46