2
* Copyright (C) 2010 Canonical, Ltd.
4
* This library is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Lesser General Public License
6
* version 3.0 as published by the Free Software Foundation.
8
* This library is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU Lesser General Public License version 3.0 for more details.
13
* You should have received a copy of the GNU Lesser General Public
14
* License along with this library. If not, see
15
* <http://www.gnu.org/licenses/>.
17
* Authored by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
22
* IMPLEMENTATION NOTE:
23
* We want the generatedd C API to be nice and not too Vala-ish. We must
24
* anticipate that place daemons consuming libunity will be written in
31
namespace Unity.Place {
34
* UnityPlaceActivation:
36
* Interface for async launching of URIs. Instances implementing
37
* this interface can be registered with a Unity.Place.Controller by
38
* calling set_activation (activation) on the controller object.
40
[DBus (name = "com.canonical.Unity.Activation")]
41
public interface Activation : GLib.Object
44
* Returns 0 if the URI has not been activated, 1 if it has been
45
* activated and the dash should not hide, and 2 if the URI has
46
* been activated and the dash should hide.
48
* You can use the ActivationStatus enumeration to have type safe
51
public async abstract uint32 activate (string uri) throws IOError;
55
* Enumeration of return values for Activation.activate().
57
public enum ActivationStatus