~canonical-dx-team/unity/unity.fix-684114

« back to all changes in this revision

Viewing changes to libunity/unity-place-activation.vala

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2011-01-19 08:59:58 UTC
  • mfrom: (749.1.3 libunityectomy)
  • Revision ID: mikkel.kamstrup@gmail.com-20110119085958-n9u4hwv0ny6xk5ju
Merge Mikkel's branch: lp:~unity-team/unity/libunityectomy

 * Remove libunity from the source tree. Long live lp:libunity !

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2010 Canonical, Ltd.
3
 
 *
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.
7
 
 *
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.
12
 
 *
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/>.
16
 
 *
17
 
 * Authored by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
18
 
 *
19
 
 */
20
 
 
21
 
/*
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
25
 
 * both Vala and C.
26
 
 *
27
 
 */
28
 
 
29
 
using GLib;
30
 
 
31
 
namespace Unity.Place {
32
 
 
33
 
  /**
34
 
   * UnityPlaceActivation:
35
 
   *
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.
39
 
   */
40
 
  [DBus (name = "com.canonical.Unity.Activation")]
41
 
  public interface Activation : GLib.Object
42
 
  {
43
 
    /**
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.
47
 
     *
48
 
     * You can use the ActivationStatus enumeration to have type safe
49
 
     * return values.
50
 
     */
51
 
    public async abstract uint32 activate (string uri) throws IOError;
52
 
  }
53
 
  
54
 
  /**
55
 
   * Enumeration of return values for Activation.activate().
56
 
   */
57
 
  public enum ActivationStatus
58
 
  {
59
 
    NOT_ACTIVATED,
60
 
    ACTIVATED_SHOW_DASH,
61
 
    ACTIVATED_HIDE_DASH
62
 
  }
63
 
 
64
 
} /* namespace */