~ubuntu-branches/ubuntu/precise/folks/precise

« back to all changes in this revision

Viewing changes to tools/inspect/command-debug.vala

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-06-10 11:28:11 UTC
  • mfrom: (1.2.11 upstream) (4.2.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110610112811-whyeodbo9mjezxfp
Tags: 0.5.2-1ubuntu1
* Merge with Debian experimental, remaining Ubuntu changes:
  - debian/control:
    + Add Vcs-Bzr link

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Philip Withnall
 
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 as published by
 
6
 * the Free Software Foundation, either version 2.1 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU Lesser General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU Lesser General Public License
 
15
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 
16
 *
 
17
 * Authors:
 
18
 *       Philip Withnall <philip@tecnocode.co.uk>
 
19
 */
 
20
 
 
21
using Folks;
 
22
using GLib;
 
23
 
 
24
private class Folks.Inspect.Commands.Debug : Folks.Inspect.Command
 
25
{
 
26
  public override string name
 
27
    {
 
28
      get { return "debug"; }
 
29
    }
 
30
 
 
31
  public override string description
 
32
    {
 
33
      get { return "Print debugging output from libfolks."; }
 
34
    }
 
35
 
 
36
  public override string help
 
37
    {
 
38
      get
 
39
        {
 
40
          return "debug    Print status information from libfolks.";
 
41
        }
 
42
    }
 
43
 
 
44
  public Debug (Client client)
 
45
    {
 
46
      base (client);
 
47
    }
 
48
 
 
49
  public override void run (string? command_string)
 
50
    {
 
51
      var debug = Folks.Debug.dup ();
 
52
      debug.emit_print_status ();
 
53
    }
 
54
}